LevelStub class

A stub which can be used to create a basic level.

Stubs can also be used with more complimented invocations of level subclasses by simply accessing the ambiances and randomSounds properties.

Annotations
  • @JsonSerializable()

Constructors

LevelStub({AssetReference? music, List<Ambiance> ambiances = const [], List<RandomSound> randomSounds = const []})
Create an instance.
const
LevelStub.fromJson(Map<String, dynamic> json)
Create an instance from JSON.
factory

Properties

ambiances List<Ambiance>
The ambiances for this stub.
final
hashCode int
The hash code for this object.
no setterinherited
music AssetReference?
The music for this stub.
final
randomSounds List<RandomSound>
The random sounds for this stub.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert an instance to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited