pyscreeps-arena 0.3.2__tar.gz → 0.3.5__tar.gz
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-0.3.2 → pyscreeps-arena-0.3.5}/PKG-INFO +1 -1
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/compiler.py +23 -5
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/config.py +1 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/const.py +1 -1
- pyscreeps-arena-0.3.5/pyscreeps_arena/project.7z +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/PKG-INFO +1 -1
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/setup.py +1 -1
- pyscreeps-arena-0.3.2/pyscreeps_arena/project.7z +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/__init__.py +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/build.py +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/__init__.py +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/basic.py +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/core.py +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/main.py +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/utils.py +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/localization.py +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/SOURCES.txt +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/dependency_links.txt +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/entry_points.txt +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/requires.txt +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/top_level.txt +0 -0
- {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/setup.cfg +0 -0
|
@@ -56,15 +56,19 @@ import {searchPath} from "game/path-finder"
|
|
|
56
56
|
|
|
57
57
|
TOTAL_APPEND_ATEND = """
|
|
58
58
|
export var sch = Scheduler();
|
|
59
|
-
|
|
59
|
+
var monitor = Monitor(2);
|
|
60
60
|
know.now = 0;
|
|
61
|
+
|
|
62
|
+
__init_my_exists_creep_before_k__();
|
|
61
63
|
export var loop = function () {
|
|
62
64
|
know.now = get.ticks ();
|
|
65
|
+
know.update_(know);
|
|
63
66
|
if (know.now === 1) {
|
|
67
|
+
std.show_welcome();
|
|
64
68
|
init (know);
|
|
65
69
|
}
|
|
66
70
|
|
|
67
|
-
|
|
71
|
+
monitor.handle();
|
|
68
72
|
step (know);
|
|
69
73
|
sch.handle();
|
|
70
74
|
std.show_usage ();
|
|
@@ -90,7 +94,7 @@ export var loop = function () {
|
|
|
90
94
|
|
|
91
95
|
JS_VM = "org.transcrypt.__runtime__.js"
|
|
92
96
|
|
|
93
|
-
BUILTIN_TRANS = ["engine.js"]
|
|
97
|
+
BUILTIN_TRANS = ["engine.js", "stage.js"] # 记录buildin中会被transcrypt的文件
|
|
94
98
|
OTHER_IGNORE_WITH = "./builtin"
|
|
95
99
|
|
|
96
100
|
JS_IMPORT_PAT = re.compile(r'from\s+[\'\"]([^\']+)[\'\"]')
|
|
@@ -105,11 +109,21 @@ export var loop = function () {
|
|
|
105
109
|
|
|
106
110
|
ARENA_IMPORTS_GETTER = {
|
|
107
111
|
const.ARENA_GREEN: lambda: f"""
|
|
112
|
+
class BodyPart{{
|
|
113
|
+
constructor(){{
|
|
114
|
+
}}
|
|
115
|
+
}};
|
|
116
|
+
const ScoreCollector = StructureSpawn;
|
|
108
117
|
""",
|
|
109
118
|
const.ARENA_BLUE: lambda: f"""
|
|
110
|
-
|
|
119
|
+
const ScoreCollector = StructureSpawn;
|
|
120
|
+
import {{ Flag, BodyPart}} from 'arena/season_{config.season}/capture_the_flag/basic';
|
|
111
121
|
""",
|
|
112
122
|
const.ARENA_RED: lambda: f"""
|
|
123
|
+
class BodyPart{{
|
|
124
|
+
constructor(){{
|
|
125
|
+
}}
|
|
126
|
+
}};
|
|
113
127
|
import {{ RESOURCE_SCORE, ScoreCollector, AreaEffect, EFFECT_DAMAGE, EFFECT_FREEZE }} from 'arena/season_{config.season}/collect_and_control/basic';
|
|
114
128
|
|
|
115
129
|
import ("arena/season_{config.season}/collect_and_control/basic")
|
|
@@ -117,7 +131,11 @@ import ("arena/season_{config.season}/collect_and_control/basic")
|
|
|
117
131
|
.catch((error) => {{ }});
|
|
118
132
|
""",
|
|
119
133
|
const.ARENA_GRAY: lambda: f"""
|
|
120
|
-
|
|
134
|
+
class BodyPart{{
|
|
135
|
+
constructor(){{
|
|
136
|
+
}}
|
|
137
|
+
}};
|
|
138
|
+
const ScoreCollector = StructureSpawn;
|
|
121
139
|
import("game/prototypes")
|
|
122
140
|
.then((module) => {{ const Flag = module.Flag; }})
|
|
123
141
|
.catch((error) => {{ }});
|
|
Binary file
|
|
@@ -7,7 +7,7 @@ with open(r"T:\New_PC\Import_Project\uploads\pyscreeps-arena_upload\pyscreeps-ar
|
|
|
7
7
|
long_description = f.read()
|
|
8
8
|
setup(
|
|
9
9
|
name='pyscreeps-arena',
|
|
10
|
-
version='0.3.
|
|
10
|
+
version='0.3.5',
|
|
11
11
|
description='Python api|interface to play game: Screeps: Arena.',
|
|
12
12
|
long_description=long_description,
|
|
13
13
|
long_description_content_type='text/markdown',
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|