Class SyncListBool
A list of booleans that will be synchronized from server to clients.
Inherited Members
Namespace: UnityEngine.Networking
Assembly: com.unity.multiplayer-hlapi.Runtime.dll
Syntax
[Obsolete("The high level API classes are deprecated and will be removed in the future.")]
public class SyncListBool : SyncList<bool>, IList<bool>, ICollection<bool>, IEnumerable<bool>, IEnumerable
Methods
DeserializeItem(NetworkReader)
This method is used when deserializing SyncList items from a stream.
Declaration
protected override bool DeserializeItem(NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
NetworkReader | reader | Stream to read from. |
Returns
Type | Description |
---|---|
bool | New instance of the SyncList value type. |
Overrides
ReadInstance(NetworkReader)
Declaration
[Obsolete("ReadReference is now used instead")]
public static SyncListBool ReadInstance(NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
NetworkReader | reader |
Returns
Type | Description |
---|---|
SyncListBool |
ReadReference(NetworkReader, SyncListBool)
An internal function used for serializing SyncList member variables.
Declaration
public static void ReadReference(NetworkReader reader, SyncListBool syncList)
Parameters
Type | Name | Description |
---|---|---|
NetworkReader | reader | |
SyncListBool | syncList |
SerializeItem(NetworkWriter, bool)
This is used to write a value object from a SyncList to a stream.
Declaration
protected override void SerializeItem(NetworkWriter writer, bool item)
Parameters
Type | Name | Description |
---|---|---|
NetworkWriter | writer | Stream to write to. |
bool | item | Item to write. |
Overrides
WriteInstance(NetworkWriter, SyncListBool)
Declaration
public static void WriteInstance(NetworkWriter writer, SyncListBool items)
Parameters
Type | Name | Description |
---|---|---|
NetworkWriter | writer | |
SyncListBool | items |