WorldContext constructor

WorldContext({
  1. required Sdl sdl,
  2. required Game game,
  3. required World world,
  4. CustomCommandsMap customCommands = const {},
  5. ConditionalFunctionsMap conditionalFunctions = const {},
  6. ErrorHandler? errorHandler,
})

Create an instance.

Implementation

WorldContext({
  required this.sdl,
  required this.game,
  required this.world,
  this.customCommands = const {},
  this.conditionalFunctions = const {},
  this.errorHandler,
})  : hapticDevices = [],
      preferencesDirectory = sdl.getPrefPath(
        world.globalOptions.orgName,
        world.globalOptions.appName,
      ),
      _audioBusses = {},
      _reverbs = {};