Skip to content

Commit e24e745

Browse files
committed
Added missing XML comments to prefab hash resolve calls
1 parent fbbb571 commit e24e745

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ internal static ulong GetPrefabHash(string prefabName)
5555
return 0;
5656
}
5757

58+
/// <summary>
59+
/// Gets the prefab index of a given prefab hash
60+
/// </summary>
61+
/// <param name="hash">The hash of the prefab</param>
62+
/// <returns>The index of the prefab</returns>
5863
public static int GetNetworkedPrefabIndexOfHash(ulong hash)
5964
{
6065
for (int i = 0; i < NetworkingManager.singleton.NetworkConfig.NetworkedPrefabs.Count; i++)
@@ -66,6 +71,11 @@ public static int GetNetworkedPrefabIndexOfHash(ulong hash)
6671
return -1;
6772
}
6873

74+
/// <summary>
75+
/// Gets the prefab index of a given prefab name
76+
/// </summary>
77+
/// <param name="name">The name of the prefab</param>
78+
/// <returns>The index of the prefab</returns>
6979
public static int GetNetworkedPrefabIndexOfName(string name)
7080
{
7181
for (int i = 0; i < NetworkingManager.singleton.NetworkConfig.NetworkedPrefabs.Count; i++)

0 commit comments

Comments
 (0)