public ControllerConstant(ObjectReader reader)
        {
            int numLayers = reader.ReadInt32();

            m_LayerArray = new LayerConstant[numLayers];
            for (int i = 0; i < numLayers; i++)
            {
                m_LayerArray[i] = new LayerConstant(reader);
            }

            int numStates = reader.ReadInt32();

            m_StateMachineArray = new StateMachineConstant[numStates];
            for (int i = 0; i < numStates; i++)
            {
                m_StateMachineArray[i] = new StateMachineConstant(reader);
            }

            m_Values        = new ValueArrayConstant(reader);
            m_DefaultValues = new ValueArray(reader);
        }
Beispiel #2
0
        public ControllerConstant(EndianBinaryReader reader, int[] version)
        {
            int numLayers = reader.ReadInt32();

            m_LayerArray = new LayerConstant[numLayers];
            for (int i = 0; i < numLayers; i++)
            {
                m_LayerArray[i] = new LayerConstant(reader, version);
            }

            int numStates = reader.ReadInt32();

            m_StateMachineArray = new StateMachineConstant[numStates];
            for (int i = 0; i < numStates; i++)
            {
                m_StateMachineArray[i] = new StateMachineConstant(reader, version);
            }

            m_Values        = new ValueArrayConstant(reader, version);
            m_DefaultValues = new ValueArray(reader, version);
        }