Interface IObjectEventHandler
Provides the events for GetEventDispatcher().
[OpenMpEventHandler]
public interface IObjectEventHandler : IEventHandler<IObjectEventHandler>
- Inherited Members
Methods
OnMoved(IObject)
Called when an object has finished moving.
void OnMoved(IObject objekt)
Parameters
objektIObjectThe object that moved.
OnObjectEdited(IPlayer, IObject, ObjectEditResponse, Vector3, Vector3)
Called when an object is edited by a player.
void OnObjectEdited(IPlayer player, IObject objekt, ObjectEditResponse response, Vector3 offset, Vector3 rotation)
Parameters
playerIPlayerThe player who edited the object.
objektIObjectThe object that was edited.
responseObjectEditResponseThe response of the edit operation.
offsetVector3The offset of the edited object.
rotationVector3The rotation of the edited object.
OnObjectSelected(IPlayer, IObject, int, Vector3)
Called when an object is selected by a player.
void OnObjectSelected(IPlayer player, IObject objekt, int model, Vector3 position)
Parameters
playerIPlayerThe player who selected the object.
objektIObjectThe object that was selected.
modelintThe model ID of the selected object.
positionVector3The position of the selected object.
OnPlayerAttachedObjectEdited(IPlayer, int, bool, ref ObjectAttachmentSlotData)
Called when a player edits an attached object.
void OnPlayerAttachedObjectEdited(IPlayer player, int index, bool saved, ref ObjectAttachmentSlotData data)
Parameters
playerIPlayerThe player who edited the attached object.
indexintThe index of the attachment slot.
savedboolA value indicating whether the changes were saved.
dataObjectAttachmentSlotDataThe data of the edited attachment slot.
OnPlayerObjectEdited(IPlayer, IPlayerObject, ObjectEditResponse, Vector3, Vector3)
Called when a player object is edited by a player.
void OnPlayerObjectEdited(IPlayer player, IPlayerObject objekt, ObjectEditResponse response, Vector3 offset, Vector3 rotation)
Parameters
playerIPlayerThe player who edited the object.
objektIPlayerObjectThe player object that was edited.
responseObjectEditResponseThe response of the edit operation.
offsetVector3The offset of the edited object.
rotationVector3The rotation of the edited object.
OnPlayerObjectMoved(IPlayer, IPlayerObject)
Called when a player object has finished moving.
void OnPlayerObjectMoved(IPlayer player, IPlayerObject objekt)
Parameters
playerIPlayerThe player associated with the object.
objektIPlayerObjectThe player object that moved.
OnPlayerObjectSelected(IPlayer, IPlayerObject, int, Vector3)
Called when a player object is selected by a player.
void OnPlayerObjectSelected(IPlayer player, IPlayerObject objekt, int model, Vector3 position)
Parameters
playerIPlayerThe player who selected the object.
objektIPlayerObjectThe player object that was selected.
modelintThe model ID of the selected object.
positionVector3The position of the selected object.