@@ -20,37 +20,55 @@ namespace MLAPI
20
20
/// </summary>
21
21
public abstract partial class NetworkedBehaviour : MonoBehaviour
22
22
{
23
+ /// <summary>
24
+ /// Gets if the object is the the personal clients player object
25
+ /// </summary>
23
26
[ Obsolete ( "Use IsLocalPlayer instead" , false ) ]
24
27
public bool isLocalPlayer => IsLocalPlayer ;
25
28
/// <summary>
26
29
/// Gets if the object is the the personal clients player object
27
30
/// </summary>
28
31
public bool IsLocalPlayer => NetworkedObject . IsLocalPlayer ;
32
+ /// <summary>
33
+ /// Gets if the object is owned by the local player or if the object is the local player object
34
+ /// </summary>
29
35
[ Obsolete ( "Use IsOwner instead" , false ) ]
30
36
public bool isOwner => IsOwner ;
31
37
/// <summary>
32
38
/// Gets if the object is owned by the local player or if the object is the local player object
33
39
/// </summary>
34
40
public bool IsOwner => NetworkedObject . IsOwner ;
41
+ /// <summary>
42
+ /// Gets if we are executing as server
43
+ /// </summary>
35
44
[ Obsolete ( "Use IsServer instead" , false ) ]
36
45
protected bool isServer => IsServer ;
37
46
/// <summary>
38
47
/// Gets if we are executing as server
39
48
/// </summary>
40
49
protected bool IsServer => IsRunning && NetworkingManager . Singleton . IsServer ;
50
+ /// <summary>
51
+ /// Gets if we are executing as client
52
+ /// </summary>
41
53
[ Obsolete ( "Use IsClient instead" ) ]
42
54
protected bool isClient => IsClient ;
43
55
/// <summary>
44
56
/// Gets if we are executing as client
45
57
/// </summary>
46
58
protected bool IsClient => IsRunning && NetworkingManager . Singleton . IsClient ;
59
+ /// <summary>
60
+ /// Gets if we are executing as Host, I.E Server and Client
61
+ /// </summary>
47
62
[ Obsolete ( "Use IsHost instead" , false ) ]
48
63
protected bool isHost => IsHost ;
49
64
/// <summary>
50
65
/// Gets if we are executing as Host, I.E Server and Client
51
66
/// </summary>
52
67
protected bool IsHost => IsRunning && NetworkingManager . Singleton . IsHost ;
53
68
private bool IsRunning => NetworkingManager . Singleton != null && NetworkingManager . Singleton . IsListening ;
69
+ /// <summary>
70
+ /// Gets wheter or not the object has a owner
71
+ /// </summary>
54
72
[ Obsolete ( "Use IsOwnedByServer instead" , false ) ]
55
73
public bool isOwnedByServer => IsOwnedByServer ;
56
74
/// <summary>
@@ -61,6 +79,9 @@ public abstract partial class NetworkedBehaviour : MonoBehaviour
61
79
/// Contains the sender of the currently executing RPC. Useful for the convenience RPC methods
62
80
/// </summary>
63
81
protected uint ExecutingRpcSender { get ; private set ; }
82
+ /// <summary>
83
+ /// Gets the NetworkedObject that owns this NetworkedBehaviour instance
84
+ /// </summary>
64
85
[ Obsolete ( "Use NetworkedObject instead" , false ) ]
65
86
public NetworkedObject networkedObject => NetworkedObject ;
66
87
/// <summary>
@@ -79,6 +100,9 @@ public NetworkedObject NetworkedObject
79
100
}
80
101
81
102
private NetworkedObject _networkedObject = null ;
103
+ /// <summary>
104
+ /// Gets the NetworkId of the NetworkedObject that owns the NetworkedBehaviour instance
105
+ /// </summary>
82
106
[ Obsolete ( "Use NetworkId instead" , false ) ]
83
107
public ulong networkId => NetworkId ;
84
108
/// <summary>
0 commit comments