Exemplo n.º 1
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);
        }
Exemplo n.º 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);
            }
        }