Skip to content

Instantly share code, notes, and snippets.

View RustyGuard's full-sized avatar
🏠
Working from home

Artem Golovin RustyGuard

🏠
Working from home
View GitHub Profile
@RustyGuard
RustyGuard / ecs_types.py
Created November 25, 2022 06:08
Полный пример реализации и использования Entity Component System на python
from dataclasses import dataclass
from typing import Any, Type
EntityId = str
Component = object
@dataclass
class StoredSystem:
variables: dict[str, Any]