NotQuiteParadise2

Source code for nqp.world_elements.item

import dataclasses
from typing import Dict, List

import snecs


[docs]@dataclasses.dataclass class ItemData: """ Schema for the YAML Item data files """ name: str is_signature: bool effects: List[Dict[str, str]]
[docs]class Item(snecs.RegisteredComponent): """ Item component -- WIP """
[docs] def __init__(self, name: str, is_signature: bool): self.name: str = name self.is_signature: bool = is_signature