public static void ReadReference(NetworkReader reader, SyncListUInt syncList) { ushort num = reader.ReadUInt16(); syncList.Clear(); for (ushort num2 = 0; num2 < num; num2 = (ushort)(num2 + 1)) { syncList.AddInternal(reader.ReadPackedUInt32()); } }
/// <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, SyncListUInt syncList) { ushort count = reader.ReadUInt16(); syncList.Clear(); for (ushort i = 0; i < count; i++) { syncList.AddInternal(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, SyncListUInt syncList) { ushort num = reader.ReadUInt16(); syncList.Clear(); for (ushort index = 0; (int)index < (int)num; ++index) { syncList.AddInternal(reader.ReadPackedUInt32()); } }