WorldCommand class

A command to make stuff happen in the world.

Annotations
  • @JsonSerializable.new()

Constructors

WorldCommand({required String id, required String name, String? text, CustomSound? sound, ZoneTeleport? zoneTeleport, WalkingMode? walkingMode, String? customCommandName, List<CallCommand>? callCommands, StartConversation? startConversation, SetQuestStage? setQuestStage, ReturnToMainMenu? returnToMainMenu, ShowScene? showScene, PlayRumble? playRumble, String? url, String? customMenuId})
Create an instance.
WorldCommand.fromJson(Map<String, dynamic> json)
Create an instance from a JSON object.
factory

Properties

callCommands List<CallCommand>
Call another command.
getter/setter pair
customCommandName String?
The name of a custom command to call.
getter/setter pair
customMenuId String?
The ID of a CustomMenu instance to show.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of this command.
final
name String
The name of this command.
getter/setter pair
playRumble PlayRumble?
Play a rumble effect.
getter/setter pair
returnToMainMenu ReturnToMainMenu?
Return to the main menu.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setQuestStage SetQuestStage?
Set a stage in a quest.
getter/setter pair
showScene ShowScene?
Show a scene.
getter/setter pair
sound CustomSound?
The sound to play.
getter/setter pair
startConversation StartConversation?
Start a conversation.
getter/setter pair
text String?
A message to show.
getter/setter pair
url String?
Open a URL.
getter/setter pair
walkingMode WalkingMode?
Set a new walking mode.
getter/setter pair
zoneTeleport ZoneTeleport?
Teleport to another zone.
getter/setter pair

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