Restructured gamefiles, locale data loading refactoring, docker build fixes

This commit is contained in:
2024-05-25 20:00:26 +03:00
parent 27108d629a
commit 48ee253534
1046 changed files with 84 additions and 12989 deletions

View File

@ -0,0 +1,26 @@
import os
rectList = []
for path in open("index"):
if path[-1] == os.linesep:
path = path[:-1]
for line in open(path + "/" + "Setting.txt"):
tokens = line.split()
if not tokens:
continue
if tokens[0] == "BasePosition":
x, y = [int(item)/100 for item in tokens[1:3]]
elif tokens[0] == "MapSize":
w, h = [int(item) * 256 for item in tokens[1:3]]
rectList.append((path, x, y, x+w, y+h))
x = 4693
y = 9642
for rect in rectList:
if x >= rect[1] and y >= rect[2] and x <= rect[3] and y<= rect[4]:
print rect[0]