classicborne
    Preparing search index...

    Class Ego

    I represent a drone's appearance.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: any
    scale: any
    skin: any

    Methods

    • Serializes the ego's properties into an object. This can be passed into an Ego constructor.

      Returns any

      An object containing the ego's name, skin and scale.

    • Sets the name of the entity. Limited to 64 characters.

      Some clients may use the name to determine the skin.

      Parameters

      • name: string

      Returns Ego

    • Sets the skin of the entity. Limited to 64 characters.

      What skin a string resolves to is dependent on the client. ClassiCube expects usernames to be ClassiCube accounts and fetches skins from its own servers. ClassiCube also supports loading custom skins by specifying a URL as the skin. For other clients, the skin string may resolve differently.

      Parameters

      • skin: string

        The skin identifier (e.g., username or URL).

      Returns Ego