27 lines
494 B
Python
27 lines
494 B
Python
from imp import World, create_pet
|
|
from systems import SatietySystem, HydrationSystem, HygieneSystem
|
|
|
|
|
|
def test_systems_tick():
|
|
world = World()
|
|
world.systems.extend(
|
|
(
|
|
HydrationSystem,
|
|
SatietySystem,
|
|
HygieneSystem,
|
|
)
|
|
)
|
|
|
|
entity = create_pet(world, "karabas")
|
|
|
|
for _ in range(81):
|
|
world.tick()
|
|
|
|
components = world.get_components(entity)
|
|
|
|
print(components)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
test_systems_tick()
|