Skip to content

Commit d3b3f60

Browse files
committed
Renamed Observer to Visibility
1 parent f8d2f12 commit d3b3f60

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

MLAPI/MonoBehaviours/Core/NetworkedObject.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,21 @@ internal set
8888
/// Gets if the object has yet been spawned across the network
8989
/// </summary>
9090
public bool IsSpawned { get; internal set; }
91-
91+
/// <summary>
92+
/// Gets if the object is a SceneObject, null if it's not yet spawned but is a scene object.
93+
/// </summary>
9294
public bool? IsSceneObject { get; internal set; }
9395

94-
public delegate bool ObserverDelegate(uint clientId);
96+
/// <summary>
97+
/// Delegate type for checking visibility
98+
/// </summary>
99+
/// <param name="clientId">The clientId to check visibility for</param>
100+
public delegate bool VisibilityDelegate(uint clientId);
95101

96102
/// <summary>
97103
/// Delegate invoked when the MLAPI needs to know if the object should be visible to a client, if null it will assume true
98104
/// </summary>
99-
public ObserverDelegate CheckObjectVisibility = null;
105+
public VisibilityDelegate CheckObjectVisibility = null;
100106

101107
/// <summary>
102108
/// Whether or not to destroy this object if it's owner is destroyed.

0 commit comments

Comments
 (0)