public override void OnRebuild(VoidPtr address, int length, bool force) { //_keyframes._evalCode.UseModelScale = _useModelScale; //_keyframes._evalCode.UseModelRot = _useModelRotate; //_keyframes._evalCode.UseModelTrans = _useModelTranslate; //_keyframes._evalCode.ScaleCompApply = _scaleCompApply; //_keyframes._evalCode.ScaleCompParent = _scaleCompParent; //_keyframes._evalCode.ClassicScaleOff = _classicScaleOff; AnimationConverter.EncodeCHR0Keyframes(_keyframes, address, _dataAddr); }
public override unsafe void Export(string outPath) { StringTable table = new StringTable(); table.Add(_name); int dataLen = OnCalculateSize(true); int totalLen = dataLen + table.GetTotalSize(); using (FileStream stream = new FileStream(outPath, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None, 8, FileOptions.RandomAccess)) { stream.SetLength(totalLen); using (FileMap map = FileMap.FromStream(stream)) { AnimationConverter.EncodeCHR0Keyframes(Keyframes, map.Address, map.Address + _entryLen); table.WriteTable(map.Address + dataLen); PostProcess(map.Address, table); } } }
protected internal override void OnRebuild(VoidPtr address, int length, bool force) { AnimationConverter.EncodeCHR0Keyframes(_keyframes, address, _dataAddr); }