Class SceneObject
Manages registration and tracking of scene objects with unique IDs in FishMMO.
public class SceneObject
- Inheritance
-
SceneObject
- Inherited Members
Fields
Objects
Dictionary of all registered scene objects, keyed by their unique ID.
public static readonly Dictionary<long, ISceneObject> Objects
Field Value
Methods
IsRegistered(ISceneObject)
True when this exact object is the one currently registered under its own ID.
public static bool IsRegistered(ISceneObject sceneObject)
Parameters
sceneObjectISceneObjectThe object to test.
Returns
- bool
True if registered.
Register(ISceneObject, bool)
Registers a scene object, assigning a unique ID if not a client object.
public static void Register(ISceneObject sceneObject, bool asClient = false)
Parameters
sceneObjectISceneObjectThe scene object to register.
asClientboolIf true, do not assign an ID (server will assign).
Unregister(ISceneObject)
Unregisters a scene object, removing it from the dictionary.
public static void Unregister(ISceneObject sceneObject)
Parameters
sceneObjectISceneObjectThe scene object to unregister.