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);
        }
Beispiel #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);
            }
        }