WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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

@ElronMacBong

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. ;)

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