Wobbly Life Mod SDK
 
Loading...
Searching...
No Matches
ModWobblyLife.ModDynamicObject Class Reference

Defines a moveable (usually grabbable) object. This object is usually a non kinematic rigidbody. More...

Inheritance diagram for ModWobblyLife.ModDynamicObject:
ModWobblyLife.Network.ModNetworkBehaviour

Protected Member Functions

override void OnAssignNetworkBehaviour (object networkBehaviour)
 
override void ModReset ()
 When user clicks reset or first puts this component on a gameobject it will add a ModTransformSync so that it is synced (Position/Rotation/Scale) for all clients.
 
- Protected Member Functions inherited from ModWobblyLife.Network.ModNetworkBehaviour
virtual void OnAssignNetworkBehaviour (object networkBehaviour)
 
virtual void Awake ()
 
virtual void Start ()
 
virtual void Reset ()
 
virtual void OnDestroy ()
 
virtual void OnValidate ()
 
virtual void ModAwake ()
 Called on Awake.
 
virtual void ModStart ()
 Called on Start.
 
virtual void ModReset ()
 Called on Reset.
 
virtual void ModOnValidate ()
 Called on validate.
 
virtual void ModOnDestroy ()
 Called on OnDestroy.
 
virtual void RegisterRPCs (object networkObject)
 
virtual void NetworkStart (object networkObject)
 
virtual void NetworkPost (object networkObject)
 
virtual void ModRegisterRPCs (ModNetworkObject modNetworkObject)
 Called when you should register rpcs.
 
virtual void ModNetworkStart (ModNetworkObject modNetworkObject)
 Called when this object is ready on the network.
 
virtual void ModNetworkPost (ModNetworkObject modNetworkObject)
 Called after fully initalized the network.
 

Additional Inherited Members

- Public Member Functions inherited from ModWobblyLife.Network.ModNetworkBehaviour
delegate void ModNetworkBehaviourCallback (ModNetworkBehaviour modNetworkBehaviour)
 Delegate for a ModNetworkBehaviour.
 
delegate void ModNetworkBehaviourNetworkObjectCallback (ModNetworkObject modNetworkObject)
 Delegate for a ModNetworkObject.
 
delegate void ModNetworkBehaviourCallbackNetwork (ModNetworkBehaviour modNetworkBehaviour, Action< object > networkStartCallback, Action< object > registerRPCsCallback, Action< object > networkPostCallback)
 Internal use.
 
void AssignNetworkBehaviour (object networkBehaviour)
 
void ModPrepare (bool bIsPrefab)
 Internal use.
 
bool IsServer ()
 Returns whether you are the server.
 
bool IsConnected ()
 Returns whether you are connected.
 
Guid GetAssetId ()
 Returns the assetid.
 
string GetAssetIdRaw ()
 Returns the assetidraw.
 
void SetAssetId_Internal (string assetID)
 Sets the assetid.
 
object GetNetworkBehaviourRaw ()
 Returns the raw networkobject (Internal use)
 
- Public Attributes inherited from ModWobblyLife.Network.ModNetworkBehaviour
ModNetworkObject modNetworkObject
 The networkObject used for communication of this object.
 
- Protected Attributes inherited from ModWobblyLife.Network.ModNetworkBehaviour
object networkBehaviour
 
- Events inherited from ModWobblyLife.Network.ModNetworkBehaviour
static ModNetworkBehaviourCallbackNetwork onPrepare
 Internal use.
 
static ModNetworkBehaviourCallback onPreparePrefab
 Internal use.
 
ModNetworkBehaviourNetworkObjectCallback modNetworkStart
 
ModNetworkBehaviourNetworkObjectCallback modRegisterRPCs
 
ModNetworkBehaviourNetworkObjectCallback modNetworkPost
 
ModNetworkBehaviourCallback modOnDestroy
 

Detailed Description

Defines a moveable (usually grabbable) object. This object is usually a non kinematic rigidbody.

Member Function Documentation

◆ ModReset()

override void ModWobblyLife.ModDynamicObject.ModReset ( )
protectedvirtual

When user clicks reset or first puts this component on a gameobject it will add a ModTransformSync so that it is synced (Position/Rotation/Scale) for all clients.

Reimplemented from ModWobblyLife.Network.ModNetworkBehaviour.

◆ OnAssignNetworkBehaviour()

override void ModWobblyLife.ModDynamicObject.OnAssignNetworkBehaviour ( object  networkBehaviour)
protectedvirtual