Interface PlayerOptions

Options to configure a Player

PlayerOptions

interface PlayerOptions {
    id: string;
    label: string;
    playerGameObject?: GameObject;
    showLabel?: boolean;
    socket: any;
}

Properties

id: string

ID of the player

label: string

Label of the player

playerGameObject?: GameObject

Player GameObject. (Optional, an empty object will be created if none is provided)

showLabel?: boolean

Whether to show the label of the player (default is false)

socket: any

Socket.io socket of the player

Generated using TypeDoc