예제 #1
0
        public override bool OnSerialize(NetworkWriter writer, bool forceAll)
        {
            if (forceAll)
            {
                SyncListInt.WriteInstance(writer, m_values);
                return(true);
            }

            bool flag = false;

            if (((int)syncVarDirtyBits & 1) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                SyncListInt.WriteInstance(writer, m_values);
            }

            if (!flag)
            {
                writer.WritePackedUInt32(syncVarDirtyBits);
            }
            return(flag);
        }
예제 #2
0
        public override bool OnSerialize(NetworkWriter writer, bool forceAll)
        {
            if (forceAll)
            {
                SyncListInt.WriteInstance(writer, m_barrierIdSync);
                SyncListInt.WriteInstance(writer, m_movementStatesSync);
                SyncListInt.WriteInstance(writer, m_visionStatesSync);
                return(true);
            }

            bool flag = false;

            if (((int)syncVarDirtyBits & 1) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                SyncListInt.WriteInstance(writer, m_barrierIdSync);
            }

            if (((int)syncVarDirtyBits & 2) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                SyncListInt.WriteInstance(writer, m_movementStatesSync);
            }

            if (((int)syncVarDirtyBits & 4) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                SyncListInt.WriteInstance(writer, m_visionStatesSync);
            }

            if (!flag)
            {
                writer.WritePackedUInt32(syncVarDirtyBits);
            }
            return(flag);
        }
예제 #3
0
        public override bool OnSerialize(NetworkWriter writer, bool forceAll)
        {
            if (forceAll)
            {
                SyncListBool.WriteInstance(writer, m_abilityRequested);
                writer.WritePackedUInt32((uint)m_numCinematicRequestsLeft);
                SyncListInt.WriteInstance(writer, m_cinematicsPlayedThisMatch);
                return(true);
            }

            bool flag = false;

            if (((int)syncVarDirtyBits & 1) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                SyncListBool.WriteInstance(writer, m_abilityRequested);
            }

            if (((int)syncVarDirtyBits & 2) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                writer.WritePackedUInt32((uint)m_numCinematicRequestsLeft);
            }

            if (((int)syncVarDirtyBits & 4) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                SyncListInt.WriteInstance(writer, m_cinematicsPlayedThisMatch);
            }

            if (!flag)
            {
                writer.WritePackedUInt32(syncVarDirtyBits);
            }
            return(flag);
        }
        // Token: 0x0600060E RID: 1550 RVA: 0x0001967C File Offset: 0x0001787C
        public override bool OnSerialize(NetworkWriter writer, bool forceAll)
        {
            if (forceAll)
            {
                SyncListInt.WriteInstance(writer, this.syncActiveMonsterBodies);
                SyncListInt.WriteInstance(writer, this.syncActivePickups);
                writer.WritePackedUInt32((uint)this._clearedRounds);
                return(true);
            }
            bool flag = false;

            if ((base.syncVarDirtyBits & 1U) != 0U)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(base.syncVarDirtyBits);
                    flag = true;
                }
                SyncListInt.WriteInstance(writer, this.syncActiveMonsterBodies);
            }
            if ((base.syncVarDirtyBits & 2U) != 0U)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(base.syncVarDirtyBits);
                    flag = true;
                }
                SyncListInt.WriteInstance(writer, this.syncActivePickups);
            }
            if ((base.syncVarDirtyBits & 4U) != 0U)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(base.syncVarDirtyBits);
                    flag = true;
                }
                writer.WritePackedUInt32((uint)this._clearedRounds);
            }
            if (!flag)
            {
                writer.WritePackedUInt32(base.syncVarDirtyBits);
            }
            return(flag);
        }
예제 #5
0
        public override bool OnSerialize(NetworkWriter writer, bool forceAll)
        {
            if (forceAll)
            {
                SyncListInt.WriteInstance(writer, _cooldownsSync);
                SyncListInt.WriteInstance(writer, _consumedStockCount);
                SyncListInt.WriteInstance(writer, _stockRefreshCountdowns);
                SyncListInt.WriteInstance(writer, _currentCardIds);
                writer.Write((int)_selectedActionForTargeting);
                return(true);
            }

            bool flag = false;

            if (((int)syncVarDirtyBits & 1) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                SyncListInt.WriteInstance(writer, _cooldownsSync);
            }

            if (((int)syncVarDirtyBits & 2) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                SyncListInt.WriteInstance(writer, _consumedStockCount);
            }

            if (((int)syncVarDirtyBits & 4) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                SyncListInt.WriteInstance(writer, _stockRefreshCountdowns);
            }

            if (((int)syncVarDirtyBits & 8) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                SyncListInt.WriteInstance(writer, _currentCardIds);
            }

            if (((int)syncVarDirtyBits & 16) != 0)
            {
                if (!flag)
                {
                    writer.WritePackedUInt32(syncVarDirtyBits);
                    flag = true;
                }

                writer.Write((int)_selectedActionForTargeting);
            }

            if (!flag)
            {
                writer.WritePackedUInt32(syncVarDirtyBits);
            }
            return(flag);
        }