pyscreeps-arena 0.3.2__py3-none-any.whl → 0.3.3a0__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 +9 -3
- pyscreeps_arena/core/const.py +1 -1
- pyscreeps_arena/project.7z +0 -0
- {pyscreeps_arena-0.3.2.dist-info → pyscreeps_arena-0.3.3a0.dist-info}/METADATA +1 -1
- {pyscreeps_arena-0.3.2.dist-info → pyscreeps_arena-0.3.3a0.dist-info}/RECORD +8 -8
- {pyscreeps_arena-0.3.2.dist-info → pyscreeps_arena-0.3.3a0.dist-info}/WHEEL +0 -0
- {pyscreeps_arena-0.3.2.dist-info → pyscreeps_arena-0.3.3a0.dist-info}/entry_points.txt +0 -0
- {pyscreeps_arena-0.3.2.dist-info → pyscreeps_arena-0.3.3a0.dist-info}/top_level.txt +0 -0
pyscreeps_arena/compiler.py
CHANGED
|
@@ -56,7 +56,7 @@ import {searchPath} from "game/path-finder"
|
|
|
56
56
|
|
|
57
57
|
TOTAL_APPEND_ATEND = """
|
|
58
58
|
export var sch = Scheduler();
|
|
59
|
-
|
|
59
|
+
var monitor = EngineMonitor();
|
|
60
60
|
know.now = 0;
|
|
61
61
|
export var loop = function () {
|
|
62
62
|
know.now = get.ticks ();
|
|
@@ -65,6 +65,7 @@ export var loop = function () {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
know.update_(know);
|
|
68
|
+
monitor.handle();
|
|
68
69
|
step (know);
|
|
69
70
|
sch.handle();
|
|
70
71
|
std.show_usage ();
|
|
@@ -105,11 +106,15 @@ export var loop = function () {
|
|
|
105
106
|
|
|
106
107
|
ARENA_IMPORTS_GETTER = {
|
|
107
108
|
const.ARENA_GREEN: lambda: f"""
|
|
109
|
+
const BodyPart = {{type:MOVE}};
|
|
110
|
+
const ScoreCollector = StructureSpawn;
|
|
108
111
|
""",
|
|
109
112
|
const.ARENA_BLUE: lambda: f"""
|
|
110
|
-
|
|
113
|
+
const ScoreCollector = StructureSpawn;
|
|
114
|
+
import {{ Flag, BodyPart}} from 'arena/season_{config.season}/capture_the_flag/basic';
|
|
111
115
|
""",
|
|
112
116
|
const.ARENA_RED: lambda: f"""
|
|
117
|
+
const BodyPart = {{type:MOVE}};
|
|
113
118
|
import {{ RESOURCE_SCORE, ScoreCollector, AreaEffect, EFFECT_DAMAGE, EFFECT_FREEZE }} from 'arena/season_{config.season}/collect_and_control/basic';
|
|
114
119
|
|
|
115
120
|
import ("arena/season_{config.season}/collect_and_control/basic")
|
|
@@ -117,7 +122,8 @@ import ("arena/season_{config.season}/collect_and_control/basic")
|
|
|
117
122
|
.catch((error) => {{ }});
|
|
118
123
|
""",
|
|
119
124
|
const.ARENA_GRAY: lambda: f"""
|
|
120
|
-
|
|
125
|
+
const BodyPart = {{type:MOVE}};
|
|
126
|
+
const ScoreCollector = StructureSpawn;
|
|
121
127
|
import("game/prototypes")
|
|
122
128
|
.then((module) => {{ const Flag = module.Flag; }})
|
|
123
129
|
.catch((error) => {{ }});
|
pyscreeps_arena/core/const.py
CHANGED
pyscreeps_arena/project.7z
CHANGED
|
Binary file
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
pyscreeps_arena/__init__.py,sha256=3O7Oa_IofW8YQYsnrU88SGYNxn-CMR-PpmV8P2hhEhc,800
|
|
2
2
|
pyscreeps_arena/build.py,sha256=DQeGLnID2FjpsWTbnqwt2cOp28olWK68U67bfbFJSOU,177
|
|
3
|
-
pyscreeps_arena/compiler.py,sha256=
|
|
3
|
+
pyscreeps_arena/compiler.py,sha256=9bWvE1Vjmhb_TU1GBPsY5ByYQLXp9iDYJURHrhfGKpM,41907
|
|
4
4
|
pyscreeps_arena/localization.py,sha256=gBbrNybIJAHlkzeD6maF-ie6RKSwPBbnCNzg_1ge8-c,5656
|
|
5
|
-
pyscreeps_arena/project.7z,sha256=
|
|
5
|
+
pyscreeps_arena/project.7z,sha256=4J3_zoiDu7GUqunY66IZCj4M854RV2SbOBZ9BxN0028,72346
|
|
6
6
|
pyscreeps_arena/core/__init__.py,sha256=qoP_rx1TpbDLJoTm5via4XPwEPaV1FXr1SYvoVoHGms,41
|
|
7
7
|
pyscreeps_arena/core/basic.py,sha256=DFvyDTsTXf2bQtnS9s254TrkshvRwajaHcvTyVvJyqw,2790
|
|
8
8
|
pyscreeps_arena/core/config.py,sha256=7GXJ82BgXwaZK6H5RHNqovAS5q4HQvl4hL_7-cBWOio,518
|
|
9
|
-
pyscreeps_arena/core/const.py,sha256=
|
|
9
|
+
pyscreeps_arena/core/const.py,sha256=gWEirCplAKHbFSDC6nyTZee2zpnKk2Q7Ym1PW3DYY0c,554
|
|
10
10
|
pyscreeps_arena/core/core.py,sha256=3Nty8eLKPNgwnYk_sVNBPrWuKxBXI2od8nfEezsEAZQ,5157
|
|
11
11
|
pyscreeps_arena/core/main.py,sha256=-FNSOEjksNlDfCbUqsjtPSUW8vT3qxEdfzXqT5Tdsik,170
|
|
12
12
|
pyscreeps_arena/core/utils.py,sha256=N9OOkORvrqnJakayaFp9qyS0apWhB9lBK4xyyYkhFdo,215
|
|
13
|
-
pyscreeps_arena-0.3.
|
|
14
|
-
pyscreeps_arena-0.3.
|
|
15
|
-
pyscreeps_arena-0.3.
|
|
16
|
-
pyscreeps_arena-0.3.
|
|
17
|
-
pyscreeps_arena-0.3.
|
|
13
|
+
pyscreeps_arena-0.3.3a0.dist-info/METADATA,sha256=Xrm_q9c1yu1sRmV4ij9O7xMtU2oNjr3i_HVjaBXIjaU,2081
|
|
14
|
+
pyscreeps_arena-0.3.3a0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
15
|
+
pyscreeps_arena-0.3.3a0.dist-info/entry_points.txt,sha256=dqhZN327jfcNypYjEaEJ2t-ABUZ0sVhtDDrD7GiJBfo,67
|
|
16
|
+
pyscreeps_arena-0.3.3a0.dist-info/top_level.txt,sha256=l4uLyMR2NOy41ngBMh795jOHTFk3tgYKy64-9cgjVng,16
|
|
17
|
+
pyscreeps_arena-0.3.3a0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|