Пример #1
0
        public void Read(EndianStream stream)
        {
            Time = stream.ReadSingle();

            FunctionName    = stream.ReadStringAligned();
            StringParameter = stream.ReadStringAligned();
            ObjectReferenceParameter.Read(stream);

            FloatParameter = stream.ReadSingle();
            IntParameter   = stream.ReadInt32();
            MessageOptions = stream.ReadInt32();
        }
Пример #2
0
        public void Read(AssetReader reader)
        {
            Time = reader.ReadSingle();

            FunctionName    = reader.ReadString();
            StringParameter = reader.ReadString();
            if (IsReadObjectReferenceParameter(reader.Version))
            {
                ObjectReferenceParameter.Read(reader);
                FloatParameter = reader.ReadSingle();
            }
            if (IsReadIntParameter(reader.Version))
            {
                IntParameter = reader.ReadInt32();
            }
            MessageOptions = reader.ReadInt32();
        }
Пример #3
0
        public void Read(AssetStream stream)
        {
            Time = stream.ReadSingle();

            FunctionName    = stream.ReadStringAligned();
            StringParameter = stream.ReadStringAligned();
            if (IsReadObjectReferenceParameter(stream.Version))
            {
                ObjectReferenceParameter.Read(stream);
                FloatParameter = stream.ReadSingle();
            }
            if (IsReadIntParameter(stream.Version))
            {
                IntParameter = stream.ReadInt32();
            }
            MessageOptions = stream.ReadInt32();
        }