1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
from typing_extensions import TypeAlias
from focs._types import _EffectGroup, _FloatParam
class _Item: ...
class _ItemType: ...
UnlockPolicy = _ItemType()
UnlockShipPart = _ItemType()
UnlockBuilding = _ItemType()
UnlockShipHull = _ItemType()
def Item(type: _ItemType, name: str) -> _Item: ...
_Color: TypeAlias = tuple[int, int, int] | tuple[int, int, int, int]
class _Category: ...
def Category(
*,
name: str,
graphic: str,
colour: _Color,
) -> _Category: ...
def Tech(
name: str,
description: str,
short_description: str,
category: str,
researchcost: _FloatParam,
researchturns: int,
tags: list[str],
prerequisites: list[str] = [],
effectsgroups: list[_EffectGroup] = [],
graphic: str = "",
researchable=True,
unlock=_Item(),
): ...
|