public StateGroup(EndianReader reader)
        {
            ID = reader.ReadUInt32();
            ChangeMoment = (StateGroupChangeMoment)reader.ReadSByte();

            // Read custom states
            short numCustomStates = reader.ReadInt16();
            CustomStates = new CustomState[numCustomStates];
            for (short i = 0; i < numCustomStates; i++)
                CustomStates[i] = new CustomState(reader);
        }
Exemple #2
0
        public StateGroup(EndianReader reader)
        {
            ID           = reader.ReadUInt32();
            ChangeMoment = (StateGroupChangeMoment)reader.ReadSByte();

            // Read custom states
            short numCustomStates = reader.ReadInt16();

            CustomStates = new CustomState[numCustomStates];
            for (short i = 0; i < numCustomStates; i++)
            {
                CustomStates[i] = new CustomState(reader);
            }
        }