コード例 #1
0
ファイル: SyncList.cs プロジェクト: 334499p/Portfolio
        /// <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, SyncListBool syncList)
        {
            ushort count = reader.ReadUInt16();

            syncList.Clear();
            for (ushort i = 0; i < count; i++)
            {
                syncList.AddInternal(reader.ReadBoolean());
            }
        }
コード例 #2
0
        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());
            }
        }
コード例 #3
0
ファイル: SyncList.cs プロジェクト: 334499p/Portfolio
        static public SyncListBool ReadInstance(NetworkReader reader)
        {
            ushort count  = reader.ReadUInt16();
            var    result = new SyncListBool();

            for (ushort i = 0; i < count; i++)
            {
                result.AddInternal(reader.ReadBoolean());
            }
            return(result);
        }
コード例 #4
0
        public static SyncListBool ReadInstance(NetworkReader reader)
        {
            ushort       num   = reader.ReadUInt16();
            SyncListBool @bool = new SyncListBool();

            for (ushort i = 0; i < num; i = (ushort)(i + 1))
            {
                @bool.AddInternal(reader.ReadBoolean());
            }
            return(@bool);
        }
コード例 #5
0
        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);
        }