Esempio n. 1
0
        internal bool UnpackSyncData(Network.ByteInStream stream)
        {
            uint indexes = stream.ReadUInt();

            if (indexes == UInt32.MaxValue)
            {
                log.Debug("Received full sync for {0}", Actor);
            }
            else
            {
                log.Debug("Received delta sync for {0}", Actor);
            }

            for (int i = 0; i < Values.Length; ++i)
            {
                if ((indexes & ((uint)1 << i)) != 0)
                {
                    Values[i].Unpack(stream);
                }
            }

            return true;
        }