static public void WriteInstance(NetworkWriter writer, SyncListInt items) { writer.Write((ushort)items.Count); foreach (var item in items) { writer.WritePackedUInt32((uint)item); } }
public static void WriteInstance(NetworkWriter writer, SyncListInt items) { writer.Write((ushort)items.Count); for (int i = 0; i < items.Count; i++) { writer.WritePackedUInt32((uint)items[i]); } }
public static void WriteInstance(NetworkWriter writer, SyncListInt items) { writer.Write((ushort)items.Count); foreach (int num in (SyncList <int>)items) { writer.WritePackedUInt32((uint)num); } }
/// <summary> /// An internal function used for serializing SyncList member variables. /// </summary> /// <param name="reader"></param> /// <param name="syncList"></param> static public void ReadReference(NetworkReader reader, SyncListInt syncList) { ushort count = reader.ReadUInt16(); syncList.Clear(); for (ushort i = 0; i < count; i++) { syncList.AddInternal((int)reader.ReadPackedUInt32()); } }
public static void ReadReference(NetworkReader reader, SyncListInt syncList) { ushort num = reader.ReadUInt16(); syncList.Clear(); for (ushort num2 = 0; num2 < num; num2 = (ushort)(num2 + 1)) { syncList.AddInternal((int)reader.ReadPackedUInt32()); } }
/// <summary> /// <para>An internal function used for serializing SyncList member variables.</para> /// </summary> /// <param name="reader"></param> /// <param name="syncList"></param> public static void ReadReference(NetworkReader reader, SyncListInt syncList) { ushort num = reader.ReadUInt16(); syncList.Clear(); for (ushort index = 0; (int)index < (int)num; ++index) { syncList.AddInternal((int)reader.ReadPackedUInt32()); } }
static public SyncListInt ReadInstance(NetworkReader reader) { ushort count = reader.ReadUInt16(); var result = new SyncListInt(); for (ushort i = 0; i < count; i++) { result.AddInternal((int)reader.ReadPackedUInt32()); } return(result); }
public static SyncListInt ReadInstance(NetworkReader reader) { ushort num = reader.ReadUInt16(); SyncListInt num2 = new SyncListInt(); for (ushort i = 0; i < num; i = (ushort)(i + 1)) { num2.AddInternal((int)reader.ReadPackedUInt32()); } return(num2); }
public static SyncListInt ReadInstance(NetworkReader reader) { ushort num = reader.ReadUInt16(); SyncListInt syncListInt = new SyncListInt(); for (ushort num2 = 0; num2 < num; num2 = (ushort)(num2 + 1)) { syncListInt.AddInternal((int)reader.ReadPackedUInt32()); } return(syncListInt); }
public static SyncListInt ReadInstance(NetworkReader reader) { ushort num = reader.ReadUInt16(); SyncListInt syncListInt = new SyncListInt(); for (ushort index = 0; (int)index < (int)num; ++index) { syncListInt.AddInternal((int)reader.ReadPackedUInt32()); } return(syncListInt); }
public static void WriteInstance(NetworkWriter writer, SyncListInt items) { writer.Write((ushort)items.Count); IEnumerator <int> enumerator = items.GetEnumerator(); try { while (enumerator.MoveNext()) { int current = enumerator.Current; writer.WritePackedUInt32((uint)current); } } finally { if (enumerator == null) { } enumerator.Dispose(); } }