Initial commit: server + serverfiles

This commit is contained in:
Game
2026-08-17 17:31:44 +00:00
commit ff1237686b
17389 changed files with 868929 additions and 0 deletions
+26
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]