pyscreeps-arena 0.5.9b3__py3-none-any.whl → 0.5.9b4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyscreeps_arena/compiler.py +3 -1
- pyscreeps_arena/project.7z +0 -0
- {pyscreeps_arena-0.5.9b3.dist-info → pyscreeps_arena-0.5.9b4.dist-info}/METADATA +1 -1
- {pyscreeps_arena-0.5.9b3.dist-info → pyscreeps_arena-0.5.9b4.dist-info}/RECORD +7 -7
- {pyscreeps_arena-0.5.9b3.dist-info → pyscreeps_arena-0.5.9b4.dist-info}/WHEEL +0 -0
- {pyscreeps_arena-0.5.9b3.dist-info → pyscreeps_arena-0.5.9b4.dist-info}/entry_points.txt +0 -0
- {pyscreeps_arena-0.5.9b3.dist-info → pyscreeps_arena-0.5.9b4.dist-info}/top_level.txt +0 -0
pyscreeps_arena/compiler.py
CHANGED
|
@@ -18,6 +18,7 @@ python_version_info = sys.version_info
|
|
|
18
18
|
python_version_info = f"{python_version_info.major}.{python_version_info.minor}.{python_version_info.micro}"
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
|
|
21
22
|
class MatchCaseError(Exception):
|
|
22
23
|
pass
|
|
23
24
|
|
|
@@ -53,6 +54,7 @@ def replace_src_prefix(file_list):
|
|
|
53
54
|
# """
|
|
54
55
|
# return PYFILE_PRAGMA_INSERTS + "\n" + content
|
|
55
56
|
class Compiler_Const:
|
|
57
|
+
CALLED_FUNCTIONS = ['behavior', 'sequence', 'selector', 'parallel', 'listen']
|
|
56
58
|
PROTO_DEFINES_DIRS = ["builtin", "library"]
|
|
57
59
|
FILE_STRONG_REPLACE = {
|
|
58
60
|
"std": {
|
|
@@ -1159,7 +1161,7 @@ class Compiler(CompilerBase):
|
|
|
1159
1161
|
content = self.auto_read(fpath)
|
|
1160
1162
|
content = self.stage_recursive_replace(content) # 调用stage_recursive_replace
|
|
1161
1163
|
# 调用stage_called_replace处理四个装饰器
|
|
1162
|
-
for caller in
|
|
1164
|
+
for caller in self.CALLED_FUNCTIONS:
|
|
1163
1165
|
content = self.stage_called_replace(caller, content)
|
|
1164
1166
|
with open(fpath, 'w', encoding='utf-8') as f:
|
|
1165
1167
|
f.write(content)
|
pyscreeps_arena/project.7z
CHANGED
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
pyscreeps_arena/__init__.py,sha256=GWrCpZnrzPwbBzhNqk8gTvV4VSwkP2DbxK8lR0E_SzY,3223
|
|
2
2
|
pyscreeps_arena/build.py,sha256=DQeGLnID2FjpsWTbnqwt2cOp28olWK68U67bfbFJSOU,177
|
|
3
|
-
pyscreeps_arena/compiler.py,sha256=
|
|
3
|
+
pyscreeps_arena/compiler.py,sha256=tV9Yy3qFAcihLIIFCL5KiFW0IMIzpHZxGzR2uH6Np5I,70563
|
|
4
4
|
pyscreeps_arena/localization.py,sha256=Dr0G6n8DvT6syfC0urqwjccYpEPEfcwYyJx3f9s-6a8,6031
|
|
5
|
-
pyscreeps_arena/project.7z,sha256=
|
|
5
|
+
pyscreeps_arena/project.7z,sha256=mQmjO7zZmTMkQKBeaNh2AQhJW7bK9UucTS3BkaWK8pI,540775
|
|
6
6
|
pyscreeps_arena/afters/__init__.py,sha256=Ze8NKQoMEzIJ3WlyR8Jhhdq21gSXJUtGoINzB8iaQyE,254
|
|
7
7
|
pyscreeps_arena/afters/after_config.py,sha256=Tw8Qry0KAM3hDasmXArKoS1crPuwfiAfWiEeAcKrPdo,2455
|
|
8
8
|
pyscreeps_arena/afters/after_custom.py,sha256=pgI5xkY4X7w_NHFufQ5PUGxpCrv9Ayw6VWFwVJCHLFw,3226
|
|
@@ -45,8 +45,8 @@ pyscreeps_arena/ui/qmapv/test_simple_array.py,sha256=hPnLXcFrn6I1X4JXFM3RVpBPhU_
|
|
|
45
45
|
pyscreeps_arena/ui/qrecipe/__init__.py,sha256=2Guvr9k5kGkZboiVC0aNF4u48LRbmcCm2dqOhEF52Tw,59
|
|
46
46
|
pyscreeps_arena/ui/qrecipe/model.py,sha256=s3lr_DXtsBgt8bVg1_wLz-dX88QKi77mNkqM5VJsGwE,13200
|
|
47
47
|
pyscreeps_arena/ui/qrecipe/qrecipe.py,sha256=z57VLmlpMripdpGtVCkKR0csJQhw5-WpocZK5l2xTVg,39398
|
|
48
|
-
pyscreeps_arena-0.5.
|
|
49
|
-
pyscreeps_arena-0.5.
|
|
50
|
-
pyscreeps_arena-0.5.
|
|
51
|
-
pyscreeps_arena-0.5.
|
|
52
|
-
pyscreeps_arena-0.5.
|
|
48
|
+
pyscreeps_arena-0.5.9b4.dist-info/METADATA,sha256=aV44OugxmrP9H-k50tCnxaoL3NkHD8CDHgo8YQ4YC2k,2356
|
|
49
|
+
pyscreeps_arena-0.5.9b4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
50
|
+
pyscreeps_arena-0.5.9b4.dist-info/entry_points.txt,sha256=pnpuPPadwQsxQPaR1rXzUo0fUvhOcC7HTHlf7TYXr7M,141
|
|
51
|
+
pyscreeps_arena-0.5.9b4.dist-info/top_level.txt,sha256=l4uLyMR2NOy41ngBMh795jOHTFk3tgYKy64-9cgjVng,16
|
|
52
|
+
pyscreeps_arena-0.5.9b4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|