/// <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, SyncListString syncList)
        {
            ushort num = reader.ReadUInt16();

            syncList.Clear();
            for (ushort index = 0; (int)index < (int)num; ++index)
            {
                syncList.AddInternal(reader.ReadString());
            }
        }
示例#2
0
        /// <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, SyncListString syncList)
        {
            ushort count = reader.ReadUInt16();

            syncList.Clear();
            for (ushort i = 0; i < count; i++)
            {
                syncList.AddInternal(reader.ReadString());
            }
        }
        /// <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, SyncListString syncList)
        {
            ushort num = reader.ReadUInt16();

            syncList.Clear();
            for (ushort i = 0; i < num; i = (ushort)(i + 1))
            {
                syncList.AddInternal(reader.ReadString());
            }
        }
示例#4
0
        static public SyncListString ReadInstance(NetworkReader reader)
        {
            ushort count  = reader.ReadUInt16();
            var    result = new SyncListString();

            for (ushort i = 0; i < count; i++)
            {
                result.AddInternal(reader.ReadString());
            }
            return(result);
        }
        public static SyncListString ReadInstance(NetworkReader reader)
        {
            ushort         num            = reader.ReadUInt16();
            SyncListString syncListString = new SyncListString();

            for (ushort index = 0; (int)index < (int)num; ++index)
            {
                syncListString.AddInternal(reader.ReadString());
            }
            return(syncListString);
        }
        public static SyncListString ReadInstance(NetworkReader reader)
        {
            ushort         num = reader.ReadUInt16();
            SyncListString str = new SyncListString();

            for (ushort i = 0; i < num; i = (ushort)(i + 1))
            {
                str.AddInternal(reader.ReadString());
            }
            return(str);
        }
示例#7
0
        public static SyncListString ReadInstance(NetworkReader reader)
        {
            ushort         num            = reader.ReadUInt16();
            SyncListString syncListString = new SyncListString();

            for (ushort num2 = 0; num2 < num; num2 += 1)
            {
                syncListString.AddInternal(reader.ReadString());
            }
            return(syncListString);
        }