Class NetworkList<T>
Event based NetworkVariable container for syncing Lists
Implements
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
[GenerateSerializationForGenericParameter(0)]
public class NetworkList<T> : NetworkVariableBase, IDisposable where T : unmanaged, IEquatable<T>
Type Parameters
Name | Description |
---|---|
T | The type for the list |
Constructors
Name | Description |
---|---|
Network |
Constructor method for NetworkList |
Network |
Properties
Name | Description |
---|---|
Count | |
this[int] | |
Last |
This is actually unused left-over from a previous interface |
Methods
Name | Description |
---|---|
Add(T) | |
Clear() | |
Contains(T) | |
Dispose() | Overridden IDisposable implementation. CAUTION: If you derive from this class and override the Dispose() method, you must always invoke the base.Dispose() method! |
Get |
|
Index |
|
Insert(int, T) | |
Is |
Gets Whether or not the container is dirty |
Read |
Reads delta from the reader and applies them to the internal value |
Read |
Reads the complete state from the reader and applies it |
Remove(T) | |
Remove |
|
Reset |
Resets the dirty state and marks the variable as synced / clean |
Write |
Writes the dirty changes, that is, the changes since the variable was last dirty, to the writer |
Write |
Writes the complete state of the variable to the writer |
Events
Name | Description |
---|---|
On |
The callback to be invoked when the list gets changed |