sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Class for a variable model. Holds information for the variable including name, ID, and type.

      Parameters

      • workspace: Blockly.Workspace

        The variable's workspace.

      • name: string

        The name of the variable. This is the user-visible name (e.g. 'my var' or '私の変数'), not the generated name.

      • Optionalopt_type: string

        The type of the variable like 'int' or 'string'. Does not need to be unique. Field_variable can filter variables based on their type. This will default to '' which is a specific type.

      • Optionalopt_id: string

        The unique ID of the variable. This will default to a UUID.

      Returns VariableModel__Class

    Properties

    name: string

    The name of the variable, typically defined by the user. It may be changed by the user.

    type: string

    The type of the variable, such as 'int' or 'sound_effect'. This may be used to build a list of variables of a specific type. By default this is the empty string '', which is a specific type.

    workspace: Blockly.Workspace

    The workspace the variable is in.

    Methods

    • Returns string

      The ID for the variable.