File: _tech.pyi

package info (click to toggle)
freeorion 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 194,940 kB
  • sloc: cpp: 186,508; python: 40,969; ansic: 1,164; xml: 719; makefile: 32; sh: 7
file content (38 lines) | stat: -rw-r--r-- 806 bytes parent folder | download
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(),
): ...