Event modifs and README update

This commit is contained in:
KuMiShi
2026-01-31 23:13:26 +01:00
parent a6391f961d
commit 74f0df49bd
7 changed files with 57 additions and 25 deletions

View File

@@ -21,6 +21,10 @@ class Event(Serializable):
def remove_entity(self, entity_id:str):
if entity_id in self.entities:
self.entities.remove(entity_id)
def add_entity(self, entity_id:str):
if not entity_id in self.entities:
self.entities.append(entity_id)
def get_current_turn(self):
idx = len(self.turns) - 1