public override void Parse(GameBitBuffer buffer) { serMovementStyles = new SerializeData(); serMovementStyles.Parse(buffer); //still checking variablearrays this.arMovementStyles = new List<MovementStyleDefinition>( buffer.ReadInt(0) ); for(int loop12 = 0; loop12 < _arMovementStyles.Count; loop12++) { _arMovementStyles[loop12] = new MovementStyleDefinition(); _arMovementStyles[loop12].Parse(buffer); } }
public void FileRead(MpqFileStream stream, long offset) { stream.Position = offset + 0; serMovementStyles = new SerializeData(); serMovementStyles.FileRead(stream, stream.Position); stream.Position = offset + 8; //still checking variablearrays arMovementStyles = new List<MovementStyleDefinition>(); for(int i = 0; i < (int)(serMovementStyles.Field1 / 384); i++) { stream.Position = serMovementStyles.Field0 + 16 + (384*i) ; MovementStyleDefinition temp12_arMovementStyles; temp12_arMovementStyles = new MovementStyleDefinition(); temp12_arMovementStyles.FileRead(stream, stream.Position); _arMovementStyles.Add(temp12_arMovementStyles); } }