示例#1
0
        public SelectorTransitionConstant(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            m_Destination = reader.ReadUInt32();

            int numConditions = reader.ReadInt32();

            m_ConditionConstantArray = new ConditionConstant[numConditions];
            for (int i = 0; i < numConditions; i++)
            {
                m_ConditionConstantArray[i] = new ConditionConstant(stream);
            }
        }
        public void LoadFrom(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            int numConditions = reader.ReadInt32();

            m_ConditionConstantArray = new ConditionConstant[numConditions];
            for (int i = 0; i < numConditions; i++)
            {
                m_ConditionConstantArray[i] = new ConditionConstant(stream);
            }

            m_DestinationState = reader.ReadUInt32();
            m_ID                  = reader.ReadUInt32();
            m_UserID              = reader.ReadUInt32();
            m_TransitionDuration  = reader.ReadSingle();
            m_TransitionOffset    = reader.ReadSingle();
            m_Atomic              = reader.ReadBoolean();
            m_CanTransitionToSelf = reader.ReadBoolean();
            reader.ReadBytes(2);
        }
示例#3
0
        public void LoadFrom(Stream stream, uint version)
        {
            BinaryReader reader = new BinaryReader(stream);

            int numConditions = reader.ReadInt32();

            m_ConditionConstantArray = new ConditionConstant[numConditions];
            for (int i = 0; i < numConditions; i++)
            {
                m_ConditionConstantArray[i] = new ConditionConstant(stream);
            }

            m_DestinationState = reader.ReadUInt32();
            if (version >= AssetCabinet.VERSION_5_0_0)
            {
                m_FullPathID = reader.ReadUInt32();
            }
            m_ID                 = reader.ReadUInt32();
            m_UserID             = reader.ReadUInt32();
            m_TransitionDuration = reader.ReadSingle();
            m_TransitionOffset   = reader.ReadSingle();
            if (version >= AssetCabinet.VERSION_5_0_0)
            {
                m_ExitTime            = reader.ReadSingle();
                m_HasExitTime         = reader.ReadBoolean();
                m_HasFixedDuration    = reader.ReadBoolean();
                stream.Position      += 2;
                m_InterruptionSource  = reader.ReadInt32();
                m_OrderedInterruption = reader.ReadBoolean();
            }
            else
            {
                m_Atomic = reader.ReadBoolean();
            }
            m_CanTransitionToSelf = reader.ReadBoolean();
            stream.Position      += 2;
        }
示例#4
0
        public void LoadFrom(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            int numConditions = reader.ReadInt32();
            m_ConditionConstantArray = new ConditionConstant[numConditions];
            for (int i = 0; i < numConditions; i++)
            {
                m_ConditionConstantArray[i] = new ConditionConstant(stream);
            }

            m_DestinationState = reader.ReadUInt32();
            m_ID = reader.ReadUInt32();
            m_UserID = reader.ReadUInt32();
            m_TransitionDuration = reader.ReadSingle();
            m_TransitionOffset = reader.ReadSingle();
            m_Atomic = reader.ReadBoolean();
            m_CanTransitionToSelf = reader.ReadBoolean();
            reader.ReadBytes(2);
        }