Skip to content
This repository was archived by the owner on May 9, 2021. It is now read-only.
This repository was archived by the owner on May 9, 2021. It is now read-only.

CustomGameEventManager.RegisterListener problem #6

Description

@ElronMacBong
export abstract class DevManager {
	private static RegisterListeners() {
		CustomGameEventManager.RegisterListener("devtools_get_mode", (playerID: number, event: table) => this.OnGetMode(playerID, event));
	}

	public static OnGetMode(playerID: number, event: table) {
		Log.Log(LogLevel.Debug, "DevManager", "OnGetMode", `playerID: ${playerID} event: ${event}`);
	}
}

This ends in the scenario that playerID is the event-table and event is nil.
Is it related to declartions or did i failed there anything?
And yes, i need that as abstract and static. ;)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions