mirror of
https://github.com/BigJk/end_of_eden.git
synced 2026-02-06 10:48:09 +00:00
32 lines
802 B
Lua
32 lines
802 B
Lua
---@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
|
|
---@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
|
|
---@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 |