LethalNetworkAPI.LethalNetworkVariable<TData> Class
OBSOLETE
This class is deprecated. Please use LNetworkVariable<TData> instead.
csharp
public sealed class LethalNetworkVariable<TData> : LethalNetworkAPI.Old.LethalNetworkDeprecated
Type Parameters
Type | Description |
---|---|
TData | The serializable data type of the variable. |
Inheritance
↳ System.Object
↳ LethalNetworkAPI.Old.LethalNetworkDeprecated
↳ LethalNetworkAPI.LethalNetworkVariable<TData>
Constructors
LethalNetworkVariable(string) DEPRECATED
Create a new server-owned network variable, unless otherwise specified with [PublicNetworkVariable]
.
Declaration
csharp
public LethalNetworkVariable(string identifier)
Parameters
Type | Name | Description |
---|---|---|
string | identifier | An identifier for the variable. |
Remarks
Identifiers are specific to a per-mod basis. MUST be used outside of patches.
Properties
Value DEPRECATED
Get or set the value of the variable.
Declaration
csharp
public TData Value { get; set; }
Events
OnValueChanged DEPRECATED
The callback to invoke when the variable's value changes.
Declaration
csharp
public event Action<TData>? OnValueChanged;
Type Parameters
Type | Description |
---|---|
TData | The received data. |