mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
15 lines
397 B
Python
15 lines
397 B
Python
import pickle
|
|
|
|
from dcs.mission import Mission
|
|
|
|
for terrain in ["cau", "gulf"]:
|
|
m = Mission()
|
|
m.load_file("./{}_terrain.miz".format(terrain))
|
|
|
|
landmap = []
|
|
for plane_group in m.country("USA").plane_group:
|
|
landmap.append([(x.position.x, x.position.y) for x in plane_group.points])
|
|
|
|
with open("../{}landmap.p".format(terrain), "wb") as f:
|
|
pickle.dump(landmap, f)
|