end_of_eden/assets/scripts/definitions/card.lua

32 lines
802 B
Lua
Raw Permalink Normal View History

---@meta
---@class card_state_ctx
---@field type_id type_id
---@field guid guid
---@field level number
---@field owner guid
---Card represents a playable card definition.
---@class card
---@field id? type_id
---@field name string
---@field description string
2023-12-30 09:04:53 +00:00
---@field tags? string[]
---@field state? fun(ctx:card_state_ctx):nil
---@field color string
---@field point_cost number
---@field max_level number
---@field does_exhaust? boolean
2024-01-12 20:52:26 +00:00
---@field does_consume? boolean
---@field need_target boolean
---@field price number
---@field callbacks callbacks
---@field test? fun():nil|string
---@field base_game? boolean
---CardInstance represents an instance of a card owned by some actor.
---@class card_instance
---@field guid guid
---@field type_id type_id
---@field level number
---@field owner guid