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.
Files changed (22) hide show
  1. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/PKG-INFO +1 -1
  2. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/compiler.py +23 -5
  3. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/config.py +1 -0
  4. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/const.py +1 -1
  5. pyscreeps-arena-0.3.5/pyscreeps_arena/project.7z +0 -0
  6. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/PKG-INFO +1 -1
  7. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/setup.py +1 -1
  8. pyscreeps-arena-0.3.2/pyscreeps_arena/project.7z +0 -0
  9. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/__init__.py +0 -0
  10. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/build.py +0 -0
  11. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/__init__.py +0 -0
  12. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/basic.py +0 -0
  13. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/core.py +0 -0
  14. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/main.py +0 -0
  15. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/core/utils.py +0 -0
  16. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena/localization.py +0 -0
  17. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/SOURCES.txt +0 -0
  18. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/dependency_links.txt +0 -0
  19. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/entry_points.txt +0 -0
  20. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/requires.txt +0 -0
  21. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/pyscreeps_arena.egg-info/top_level.txt +0 -0
  22. {pyscreeps-arena-0.3.2 → pyscreeps-arena-0.3.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyscreeps-arena
3
- Version: 0.3.2
3
+ Version: 0.3.5
4
4
  Summary: Python api|interface to play game: Screeps: Arena.
5
5
  Author-email: 2229066748@qq.com
6
6
  Maintainer: Eagle'sBaby
@@ -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
- know.update_(know);
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
- import {{ Flag }} from 'arena/season_{config.season}/capture_the_flag/basic';
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
- // import {{ Flag }} from 'game/prototypes'
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) => {{ }});
@@ -10,6 +10,7 @@
10
10
  import os
11
11
  from pyscreeps_arena.core import const
12
12
  arena = "green"
13
+ level = "basic"
13
14
  season = "beta"
14
15
  language = 'cn'
15
16
  # 默认路径: 用户 + ScreepsArena + beta-spawn_and_swamp + main.mjs
@@ -9,7 +9,7 @@
9
9
  #
10
10
  import re
11
11
 
12
- VERSION = "0.3.2"
12
+ VERSION = "0.3.5"
13
13
  AUTHOR = "我阅读理解一直可以的"
14
14
  STEAM_ID = "1029562896"
15
15
  GITHUB_NAME = "EagleBaby"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyscreeps-arena
3
- Version: 0.3.2
3
+ Version: 0.3.5
4
4
  Summary: Python api|interface to play game: Screeps: Arena.
5
5
  Author-email: 2229066748@qq.com
6
6
  Maintainer: Eagle'sBaby
@@ -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.2',
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',