55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
using System;
|
|
|
|
namespace UnityEngine.Networking
|
|
{
|
|
// Token: 0x0200006A RID: 106
|
|
public class SyncListBool : SyncList<bool>
|
|
{
|
|
// Token: 0x0600053B RID: 1339 RVA: 0x0001E679 File Offset: 0x0001C879
|
|
protected override void SerializeItem(NetworkWriter writer, bool item)
|
|
{
|
|
writer.Write(item);
|
|
}
|
|
|
|
// Token: 0x0600053C RID: 1340 RVA: 0x0001E684 File Offset: 0x0001C884
|
|
protected override bool DeserializeItem(NetworkReader reader)
|
|
{
|
|
return reader.ReadBoolean();
|
|
}
|
|
|
|
// Token: 0x0600053D RID: 1341 RVA: 0x0001E6A0 File Offset: 0x0001C8A0
|
|
[Obsolete("ReadReference is now used instead")]
|
|
public static SyncListBool ReadInstance(NetworkReader reader)
|
|
{
|
|
ushort num = reader.ReadUInt16();
|
|
SyncListBool syncListBool = new SyncListBool();
|
|
for (ushort num2 = 0; num2 < num; num2 += 1)
|
|
{
|
|
syncListBool.AddInternal(reader.ReadBoolean());
|
|
}
|
|
return syncListBool;
|
|
}
|
|
|
|
// Token: 0x0600053E RID: 1342 RVA: 0x0001E6E4 File Offset: 0x0001C8E4
|
|
public static void ReadReference(NetworkReader reader, SyncListBool syncList)
|
|
{
|
|
ushort num = reader.ReadUInt16();
|
|
syncList.Clear();
|
|
for (ushort num2 = 0; num2 < num; num2 += 1)
|
|
{
|
|
syncList.AddInternal(reader.ReadBoolean());
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600053F RID: 1343 RVA: 0x0001E720 File Offset: 0x0001C920
|
|
public static void WriteInstance(NetworkWriter writer, SyncListBool items)
|
|
{
|
|
writer.Write((ushort)items.Count);
|
|
for (int i = 0; i < items.Count; i++)
|
|
{
|
|
writer.Write(items[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|