Browse Source

adapt code to last synergine2 modifications

Bastien Sevajol 6 years ago
parent
commit
26fef2f8e2
4 changed files with 2 additions and 9 deletions
  1. 2 2
      config.yaml
  2. 0 2
      opencombat/gui/base.py
  3. 0 1
      opencombat/terminal/base.py
  4. 0 4
      run.py

+ 2 - 2
config.yaml View File

@@ -13,5 +13,5 @@ game:
13 13
         run_ref_time: 1
14 14
         crawl_ref_time: 10
15 15
 global:
16
-    logging_level: ERROR
17
-    debug: false
16
+    logging_level: DEBUG
17
+    debug: true

+ 0 - 2
opencombat/gui/base.py View File

@@ -114,7 +114,6 @@ class Game(TMXGui):
114 114
     def __init__(
115 115
         self,
116 116
         config: Config,
117
-        logger: SynergineLogger,
118 117
         terminal: Terminal,
119 118
         physics: Physics,
120 119
         read_queue_interval: float = 1 / 60.0,
@@ -122,7 +121,6 @@ class Game(TMXGui):
122 121
     ):
123 122
         super().__init__(
124 123
             config,
125
-            logger,
126 124
             terminal,
127 125
             physics=physics,
128 126
             read_queue_interval=read_queue_interval,

+ 0 - 1
opencombat/terminal/base.py View File

@@ -40,7 +40,6 @@ class CocosTerminal(GameTerminal):
40 40
 
41 41
         self.gui = Game(
42 42
             self.config,
43
-            self.logger,
44 43
             self,
45 44
             physics=self.physics,
46 45
             map_dir_path=self.map_dir_path,

+ 0 - 4
run.py View File

@@ -66,19 +66,15 @@ def main(map_dir_path: str, seed_value: int=None):
66 66
 
67 67
     core = Core(
68 68
         config=config,
69
-        logger=logger,
70 69
         simulation=simulation,
71 70
         cycle_manager=CycleManager(
72 71
             config=config,
73
-            logger=logger,
74 72
             simulation=simulation,
75 73
         ),
76 74
         terminal_manager=TerminalManager(
77 75
             config=config,
78
-            logger=logger,
79 76
             terminals=[CocosTerminal(
80 77
                 config,
81
-                logger,
82 78
                 asynchronous=False,
83 79
                 map_dir_path=map_dir_path,
84 80
             )]