mooball
    Preparing search index...

    Type Alias Player

    A class that defines a player inside a room state.

    type Player = {
        auth: string | null;
        avatar: string | null;
        avatarNumber: int;
        conn: string | null;
        cssVar: string | null;
        direction: number;
        disc: MovableDisc | null;
        energy: number;
        ext: Player | null;
        flag: string;
        headlessAvatar: string | null;
        id: int;
        identity: IdentityData | null;
        input: int;
        isAdmin: boolean;
        isKicking: boolean;
        kEnergyDrain: number;
        kEnergyGain: number;
        kickRateMaxTickCounter: int;
        kickRateMinTickCounter: int;
        name: string;
        ping: int;
        skin: Texture | null;
        sync: boolean;
        team: Team;
    }
    Index

    Properties

    auth: string | null

    Public auth string of this Player.

    avatar: string | null

    Client avatar of this Player.

    avatarNumber: int

    Avatar number of this Player. If no avatar is set, this number is shown.

    conn: string | null

    Connection string of this Player.

    cssVar: string | null

    The css variable name of this player that is used to render the player's name in the gui.

    direction: number

    The direction of this player.

    disc: MovableDisc | null

    Current disc of this Player, or null if this Player is not currently playing.

    energy: number

    The current energy level of this player. Should be between 0 and 1. Defaults to 1.

    ext: Player | null

    The extrapolated version of this Player, or null if the data is not available.

    flag: string

    Country code of this Player.

    headlessAvatar: string | null

    Headless avatar of this Player.

    id: int

    Id of this Player.

    identity: IdentityData | null

    The identity data of this player that is received from moo-hoo.com.

    input: int

    Current key-state of this Player.

    isAdmin: boolean

    Whether this Player is an admin or not.

    isKicking: boolean

    Whether this Player is currently kicking the ball or not.

    kEnergyDrain: number

    The energy decrement coefficient of this player when player.input!=0. Should be between 0 and 1. Defaults to 0.

    kEnergyGain: number

    The energy increment coefficient of this player when player.input==0. Should be between 0 and 1. Defaults to 0.

    kickRateMaxTickCounter: int

    Max tick counter for kick rate of this Player.

    kickRateMinTickCounter: int

    Min tick counter for kick rate of this Player.

    name: string

    Name of this Player.

    ping: int

    Current ping value of this Player.

    skin: Texture | null

    The texture of this player.

    sync: boolean

    Whether this Player is currently synchronized with the room's host or not.

    team: Team

    Team of this Player.