Playermanager

PlayerManager class

A class to access to all player entities on the game

Signature:

export declare class PlayerManager 

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the PlayerManager class.

Properties

PropertyModifiersTypeDescription
mainPlayerWrapperMain player of the game
opts{ isMuliplayer?: boolean; user?: any; }
playersRecord<string, PlayerWrapper>A record containing all the current players connected to the game