File tree Expand file tree Collapse file tree
MLAPI/NetworkingManagerComponents/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,12 +24,19 @@ public static class SpawnManager
2424 /// A list of the spawned objects
2525 /// </summary>
2626 public static readonly List < NetworkedObject > SpawnedObjectsList = new List < NetworkedObject > ( ) ;
27-
27+ /// <summary>
28+ /// The delegate used when spawning a networked object
29+ /// </summary>
30+ /// <param name="position">The position to spawn the object at</param>
31+ /// <param name="rotation">The rotation to spawn the object with</param>
32+ /// <param name="disabled">Whether or not the object should be disabled, only true when spawning a scene delayed object</param>
2833 public delegate NetworkedObject SpawnHandlerDelegate ( Vector3 position , Quaternion rotation , bool disabled ) ;
29-
34+ /// <summary>
35+ /// The delegate used when destroying networked objects
36+ /// </summary>
37+ /// <param name="networkedObject">The networked object to be destroy</param>
3038 public delegate void DestroyHandlerDelegate ( NetworkedObject networkedObject ) ;
3139
32-
3340 internal static readonly Dictionary < ulong , SpawnHandlerDelegate > customSpawnHandlers = new Dictionary < ulong , SpawnHandlerDelegate > ( ) ;
3441 internal static readonly Dictionary < ulong , DestroyHandlerDelegate > customDestroyHandlers = new Dictionary < ulong , DestroyHandlerDelegate > ( ) ;
3542
You can’t perform that action at this time.
0 commit comments