15 lines
278 B
Python
15 lines
278 B
Python
|
from __future__ import annotations
|
||
|
from typing import TYPE_CHECKING
|
||
|
|
||
|
if TYPE_CHECKING:
|
||
|
from engine import Engine
|
||
|
from entity import Entity
|
||
|
|
||
|
|
||
|
class BaseComponent:
|
||
|
entity: Entity
|
||
|
|
||
|
@property
|
||
|
def engine(self) -> Engine:
|
||
|
return self.entity.gamemap.engine
|