/** Constructor, serializing members from passed in stream. */
 public TokenReplicateActor(BinaryReader BinaryStream)
 {
     NetFlags        = BinaryStream.ReadByte();
     ActorNameIndex  = TokenHelper.LoadPackedInt(BinaryStream);
     TimeInMS        = BinaryStream.ReadSingle();
     Properties      = new List <TokenReplicateProperty>();
     PropertyHeaders = new List <TokenWritePropertyHeader>();
 }
Exemple #2
0
 /** Constructor, serializing members from passed in stream. */
 public TokenSendRPC(BinaryReader BinaryStream)
 {
     ActorNameIndex    = TokenHelper.LoadPackedInt(BinaryStream);
     FunctionNameIndex = TokenHelper.LoadPackedInt(BinaryStream);
     NumHeaderBits     = BinaryStream.ReadUInt16();
     NumParameterBits  = BinaryStream.ReadUInt16();
     NumFooterBits     = BinaryStream.ReadUInt16();
 }
Exemple #3
0
 /** Constructor, serializing members from passed in stream. */
 public TokenSocketSendTo(BinaryReader BinaryStream)
 {
     SocketNameIndex = TokenHelper.LoadPackedInt(BinaryStream);
     BytesSent       = BinaryStream.ReadUInt16();
     NumPacketIdBits = BinaryStream.ReadUInt16();
     NumBunchBits    = BinaryStream.ReadUInt16();
     NumAckBits      = BinaryStream.ReadUInt16();
     NumPaddingBits  = BinaryStream.ReadUInt16();
 }
        public TokenReplicatePropertiesMetaData(BinaryReader BinaryStream)
        {
            ObjectNameIndex = TokenHelper.LoadPackedInt(BinaryStream);

            byte Flags = BinaryStream.ReadByte();

            bSentAllChangedProperties = (Flags & 0x1) != 0;
            TokenHelper.ReadBitArray(BinaryStream, ref FilteredProperties);
        }
Exemple #5
0
        /** Constructor, serializing members from passed in stream. */
        public TokenReplicateActor(BinaryReader BinaryStream)
        {
            byte NetFlags = BinaryStream.ReadByte();

            bNetDirty       = (NetFlags & 1) == 1;
            bNetInitial     = (NetFlags & 2) == 2;
            bNetOwner       = (NetFlags & 4) == 4;
            ActorNameIndex  = TokenHelper.LoadPackedInt(BinaryStream);
            TimeInMS        = BinaryStream.ReadSingle();
            Properties      = new List <TokenReplicateProperty>();
            PropertyHeaders = new List <TokenWritePropertyHeader>();
        }
        /** Constructor, serializing members from passed in stream. */
        public TokenSendBunch(BinaryReader BinaryStream, UInt32 Version)
        {
            ChannelIndex = BinaryStream.ReadUInt16();
            if (Version < 11)
            {
                ChannelType          = BinaryStream.ReadByte();
                ChannelTypeNameIndex = -1;
            }
            else
            {
                ChannelType          = 0;
                ChannelTypeNameIndex = TokenHelper.LoadPackedInt(BinaryStream);
            }

            NumHeaderBits  = BinaryStream.ReadUInt16();
            NumPayloadBits = BinaryStream.ReadUInt16();
        }
        public TokenPropertyComparison(BinaryReader BinaryStream)
        {
            ObjectNameIndex    = TokenHelper.LoadPackedInt(BinaryStream);
            TimeSpentComparing = BinaryStream.ReadSingle();
            TokenHelper.ReadBitArray(BinaryStream, ref ComparedProperties);
            TokenHelper.ReadBitArray(BinaryStream, ref ChangedProperties);

            int NumExportedPropertyNames = TokenHelper.LoadPackedInt(BinaryStream);

            if (NumExportedPropertyNames > 0)
            {
                ExportedPropertyNames = new List <int>(NumExportedPropertyNames);
                for (int i = 0; i < NumExportedPropertyNames; ++i)
                {
                    ExportedPropertyNames.Add(TokenHelper.LoadPackedInt(BinaryStream));
                }
            }
        }
        /** Constructor, serializing members from passed in stream. */
        public TokenSendRPC(BinaryReader BinaryStream, UInt32 Version)
        {
            ActorNameIndex    = TokenHelper.LoadPackedInt(BinaryStream);
            FunctionNameIndex = TokenHelper.LoadPackedInt(BinaryStream);

            if (Version < 13)
            {
                NumHeaderBits    = BinaryStream.ReadUInt16();
                NumParameterBits = BinaryStream.ReadUInt16();
                NumFooterBits    = BinaryStream.ReadUInt16();
            }
            else
            {
                NumHeaderBits    = TokenHelper.LoadPackedInt(BinaryStream);
                NumParameterBits = TokenHelper.LoadPackedInt(BinaryStream);
                NumFooterBits    = TokenHelper.LoadPackedInt(BinaryStream);
            }
        }
Exemple #9
0
 /** Constructor, serializing members from passedin stream. */
 public TokenEvent(BinaryReader BinaryStream)
 {
     EventNameNameIndex        = TokenHelper.LoadPackedInt(BinaryStream);
     EventDescriptionNameIndex = TokenHelper.LoadPackedInt(BinaryStream);
 }
Exemple #10
0
 /** Constructor, serializing members from passed in stream. */
 public TokenConnectionChanged(BinaryReader BinaryStream)
 {
     AddressIndex = TokenHelper.LoadPackedInt(BinaryStream);
 }
Exemple #11
0
 /** Constructor, serializing members from passed in stream. */
 public TokenEndContentBlock(BinaryReader BinaryStream)
 {
     ObjectNameIndex = TokenHelper.LoadPackedInt(BinaryStream);
     NumBits         = BinaryStream.ReadUInt16();
 }
Exemple #12
0
 /** Constructor, serializing members from passed in stream. */
 public TokenWritePropertyHeader(BinaryReader BinaryStream)
 {
     PropertyNameIndex = TokenHelper.LoadPackedInt(BinaryStream);
     NumBits           = BinaryStream.ReadUInt16();
 }