Mark LearnedAttack in ExecutingAttack as smart pointer
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6225ed19fa
commit
64a22324c7
|
@ -8,6 +8,7 @@ void RegisterExecutingAttack::Register(asIScriptEngine* engine) {
|
||||||
RegisterExecutingAttackType(engine);
|
RegisterExecutingAttackType(engine);
|
||||||
}
|
}
|
||||||
SMART_PTR_GETTER_FUNC(CreatureLib::Battling::ExecutingAttack, CreatureLib::Battling::Creature, GetUser);
|
SMART_PTR_GETTER_FUNC(CreatureLib::Battling::ExecutingAttack, CreatureLib::Battling::Creature, GetUser);
|
||||||
|
SMART_PTR_GETTER_FUNC(CreatureLib::Battling::ExecutingAttack, CreatureLib::Battling::LearnedAttack, GetAttack);
|
||||||
|
|
||||||
void RegisterExecutingAttack::RegisterHitData(asIScriptEngine* engine) {
|
void RegisterExecutingAttack::RegisterHitData(asIScriptEngine* engine) {
|
||||||
[[maybe_unused]] int r = engine->RegisterObjectType("HitData", 0, asOBJ_REF | asOBJ_NOCOUNT);
|
[[maybe_unused]] int r = engine->RegisterObjectType("HitData", 0, asOBJ_REF | asOBJ_NOCOUNT);
|
||||||
|
@ -47,6 +48,6 @@ void RegisterExecutingAttack::RegisterExecutingAttackType(asIScriptEngine* engin
|
||||||
asCALL_CDECL_OBJFIRST);
|
asCALL_CDECL_OBJFIRST);
|
||||||
Assert(r >= 0);
|
Assert(r >= 0);
|
||||||
r = engine->RegisterObjectMethod("ExecutingMove", "LearnedMove@ get_Move() const property",
|
r = engine->RegisterObjectMethod("ExecutingMove", "LearnedMove@ get_Move() const property",
|
||||||
asMETHOD(CreatureLib::Battling::ExecutingAttack, GetAttack), asCALL_THISCALL);
|
asFUNCTION(GetAttackWrapper), asCALL_CDECL_OBJFIRST);
|
||||||
Assert(r >= 0);
|
Assert(r >= 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue