Beispiel #1
0
        public override unsafe void Export(string outPath)
        {
            int dataLen = OnCalculateSize(true);

            using (FileStream stream = new FileStream(outPath, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None, 8, FileOptions.RandomAccess))
            {
                stream.SetLength(dataLen);
                using (FileMap map = FileMap.FromStream(stream))
                    AnimationConverter.EncodeSRT0Keyframes(Keyframes, map.Address, map.Address + _entryLen, _code);
            }
        }
Beispiel #2
0
 public override void OnRebuild(VoidPtr address, int length, bool force)
 {
     AnimationConverter.EncodeSRT0Keyframes(_keyframes, address, _dataAddr, _code);
 }
Beispiel #3
0
 protected internal override void OnRebuild(VoidPtr address, int length, bool force)
 {
     AnimationConverter.EncodeSRT0Keyframes(_keyframes, address, _dataAddr);
 }