WorldCommand constructor

WorldCommand({
  1. required String id,
  2. required String name,
  3. String? text,
  4. CustomSound? sound,
  5. ZoneTeleport? zoneTeleport,
  6. WalkingMode? walkingMode,
  7. String? customCommandName,
  8. List<CallCommand>? callCommands,
  9. StartConversation? startConversation,
  10. SetQuestStage? setQuestStage,
  11. ReturnToMainMenu? returnToMainMenu,
  12. ShowScene? showScene,
  13. PlayRumble? playRumble,
  14. String? url,
  15. String? customMenuId,
})

Create an instance.

Implementation

WorldCommand({
  required this.id,
  required this.name,
  this.text,
  this.sound,
  this.zoneTeleport,
  this.walkingMode,
  this.customCommandName,
  final List<CallCommand>? callCommands,
  this.startConversation,
  this.setQuestStage,
  this.returnToMainMenu,
  this.showScene,
  this.playRumble,
  this.url,
  this.customMenuId,
}) : callCommands = callCommands ?? [];