Exemplo n.º 1
0
        /// <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());
            }
        }
Exemplo n.º 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());
            }
        }
Exemplo n.º 3
0
        /// <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());
            }
        }