Skip to content

Commit e836e47

Browse files
committed
Added XML documentation to spawn handler delegates
1 parent 21d3de2 commit e836e47

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)