ResourceEffect

Source:

Local role: Describes one resource effect of one Action.

Big-picture role: Encodes consumption, production, or transfer semantics for Resource.

Inheritance:

  • dataclass

Parameters and fields:

  • resource_id: ObjectId
  • effect_type: str
  • quantity: float
  • source_id: Optional[ObjectId]
  • target_id: Optional[ObjectId]
  • metadata: JsonMap

Methods:

  • to_dict(...)
  • from_dict(...)

See also:

Ometeotl

A Python library to build complex multi-agent simulations, wargames, and AI-driven strategies