mooball
    Preparing search index...

    Class SetDiscPropertiesEvent

    The event message structure that is created when the host calls room.setDiscProperties or room.setPlayerDiscProperties function.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    byId: number

    Id of the player who triggered this event.

    data1: (number | null)[]

    Contains the floating point properties that are sent, in this order: [x, y, xspeed, yspeed, xgravity, ygravity, radius, bCoeff, invMass, damping] If any of these values are null, it means that that value is not modified.

    data2: (number | null)[]

    Contains the integer properties that are sent, in this order: [color, cMask, cGroup] If any of these values are null, it means that that value is not modified.

    eventType: OperationType

    Type of the event. Should not be modified.

    id: number

    Id of the disc/player whose properties are changed.

    type: boolean

    If true, this is triggered by room.setPlayerDiscProperties, and id is the player's id. Otherwise, this is triggered by room.setDiscProperties, and id is the disc's id.

    Methods