gck-map-extract-objects/anm.py

19 lines
378 B
Python
Raw Normal View History

2021-02-24 15:10:32 +01:00
from lib.skn_anm import *
2021-05-30 00:27:11 +02:00
import os
2021-02-23 19:04:32 +01:00
2021-05-30 00:27:11 +02:00
def read_anm(filepath) -> AnmAnim:
2021-02-24 15:10:32 +01:00
with open(filepath, "rb") as fp:
2021-05-30 00:27:11 +02:00
init_filetrack(os.fstat(fp.fileno()).st_size)
2021-02-24 15:10:32 +01:00
r = AnmFile.parse(fp, AnmAnim)
return r
2021-02-23 19:04:32 +01:00
def main():
2021-05-30 00:27:11 +02:00
anm = read_anm("/home/tasty/Projects/gck-map-extract-objects/anm_skn/verm_fly.anm")
2021-02-24 15:10:32 +01:00
pprint(anm)
2021-02-23 19:04:32 +01:00
if __name__ == "__main__":
main()