Level constructor
Level({
- required Game game,
- Map<
String, Command> ? commands, - AssetReference? music,
- List<
Ambiance> ? ambiances, - List<
RandomSound> ? randomSounds,
Create a level.
Implementation
Level({
required this.game,
final Map<String, Command>? commands,
this.music,
final List<Ambiance>? ambiances,
final List<RandomSound>? randomSounds,
}) : commands = commands ?? {},
commandNextRuns = [],
stoppedCommands = [],
ambiances = ambiances ?? [],
randomSounds = randomSounds ?? [],
ambiancePlaybacks = {},
randomSoundPlaybacks = {},
randomSoundNextPlays = [];