Typed mutable values owned by one card definition instance. 更多...
#include <CardDefinitionRuntime.h>
Public 属性 | |
| std::string | name |
| std::string | kind = "creature" |
| int | cost = 0 |
| int | attack = 0 |
| int | maxHealth = 0 |
| int | currentHealth = 0 |
| glm::vec3 | tint {0.62f, 0.50f, 0.40f} |
| std::vector< std::string > | tags |
详细描述
Typed mutable values owned by one card definition instance.
This is deliberately a card-domain structure rather than a generic field table. currentHealth is runtime state; the other members are the typed definition projection used to initialize or rebuild a CardData entity.
在文件 CardDefinitionRuntime.h 第 28 行定义.
类成员变量说明
◆ attack
| int eve::card::CardRuntimeState::attack = 0 |
在文件 CardDefinitionRuntime.h 第 32 行定义.
◆ cost
| int eve::card::CardRuntimeState::cost = 0 |
在文件 CardDefinitionRuntime.h 第 31 行定义.
◆ currentHealth
| int eve::card::CardRuntimeState::currentHealth = 0 |
在文件 CardDefinitionRuntime.h 第 34 行定义.
被这些函数引用 eve::card::CardDefinitionRuntime::applyTo() , 以及 eve::card::CardDefinitionRuntime::reload().
◆ kind
| std::string eve::card::CardRuntimeState::kind = "creature" |
在文件 CardDefinitionRuntime.h 第 30 行定义.
◆ maxHealth
| int eve::card::CardRuntimeState::maxHealth = 0 |
在文件 CardDefinitionRuntime.h 第 33 行定义.
◆ name
| std::string eve::card::CardRuntimeState::name |
在文件 CardDefinitionRuntime.h 第 29 行定义.
◆ tags
| std::vector<std::string> eve::card::CardRuntimeState::tags |
在文件 CardDefinitionRuntime.h 第 36 行定义.
◆ tint
| glm::vec3 eve::card::CardRuntimeState::tint {0.62f, 0.50f, 0.40f} |
在文件 CardDefinitionRuntime.h 第 35 行定义.
该结构体的文档由以下文件生成:
- src/modules/card/CardDefinitionRuntime.h