Nocturna
    Preparing search index...

    Interface SelectObjectCallback

    SelectObjectCallback is an interface for callbacks used when selecting an object as a target for an action (e.g., placing a spike or rocket).

    interface SelectObjectCallback {
        onSelect(object: GameObject, playerTargetId: string): boolean;
    }

    Implemented by

    Index

    Methods

    Methods

    • Called when an object is selected for the action.

      Parameters

      • object: GameObject

        The selected GameObject.

      • playerTargetId: string

        The ID of the target player.

      Returns boolean

      True if the selection is valid and the action is performed, false otherwise.