public void AddAuxData(AuxObjectData aAux) { AuxObjectData[] _auxs = new AuxObjectData[this.FAuxilarity.Length + 1]; Array.Copy(this.FAuxilarity, _auxs, this.FAuxilarity.Length); _auxs[this.Auxilarity.Length] = aAux; this.FAuxilarity = _auxs; }
public static JsdFile Load(Stream aInput) { Deserializer _deserializer = new Deserializer(aInput); JsdFile.Header _header = (Header)_deserializer.Deserialize(typeof(Header)); JsdFile _jsdFile = new JsdFile(_header); for (int i = 0; i < _jsdFile.FAuxilarity.Length; i++) { AuxObjectData data = new AuxObjectData(); data.Load(_deserializer); _jsdFile.FAuxilarity[i] = data; } aInput.Read(_jsdFile.FTileLocData, 0, _jsdFile.FTileLocData.Length); for (int i = 0; i < _jsdFile.FStructs.Length; i++) { JsdStruct jsdStruct = new JsdStruct(_jsdFile.IsHighDefenition); jsdStruct.Load(_deserializer); _jsdFile.FStructs[i] = jsdStruct; } return(_jsdFile); }
public void RemoveAuxData(AuxObjectData aAux) { List <AuxObjectData> _auxs = new List <AuxObjectData>(); foreach (AuxObjectData _aux in this.FAuxilarity) { if (_aux != aAux) { _auxs.Add(_aux); } } this.FAuxilarity = _auxs.ToArray(); }
public List <byte> GetAuxTileLocData(AuxObjectData aAuxData) { if (this.NumberOfImageTileLocsStored == 0) { return(null); } byte[] _tileLocData = new byte[aAuxData.NumberOfTiles * 2]; Array.Copy(this.TileLocData, aAuxData.TileLocIndex * 2, _tileLocData, 0, aAuxData.NumberOfTiles * 2); //return _tileLocData.ToList(); return(new List <byte>(_tileLocData)); }
public void ReadAuxData(Deserializer aReader) { this.FAuxData = new AuxObjectData(); this.FAuxData.Load(aReader); }