classicborne
    Preparing search index...

    Class Ego

    I represent a drone's appearance.

    new Ego().setName("Zolpiden").setSkin("draggy").setScale([1.2, 1.1, 1.2])
    
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string

    The name of the entity. Limited to 64 characters.

    scale: Vector3

    The scale of the entity model.

    skin: string

    The skin of the entity. Limited to 64 characters.

    Methods

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

      Returns any

      The ego's data in the form of a plain old JavaScript object.

    • 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