Style fixes.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
47097cb9fc
commit
41475fcb2f
|
@ -1,7 +1,8 @@
|
|||
#include "AngelScriptItemUseScript.hpp"
|
||||
#include "AngelScriptResolver.hpp"
|
||||
|
||||
CScriptArray* AngelScriptItemUseScript::GetEffectParameters(const ArbUt::List<CreatureLib::Library::EffectParameter*>& ls) {
|
||||
CScriptArray*
|
||||
AngelScriptItemUseScript::GetEffectParameters(const ArbUt::List<CreatureLib::Library::EffectParameter*>& ls) {
|
||||
asITypeInfo* t = _resolver->GetBaseType("array<EffectParameter@>"_cnc);
|
||||
CScriptArray* arr = CScriptArray::Create(t, ls.Count());
|
||||
for (size_t i = 0; i < ls.Count(); i++) {
|
||||
|
@ -10,8 +11,7 @@ CScriptArray* AngelScriptItemUseScript::GetEffectParameters(const ArbUt::List<Cr
|
|||
return arr;
|
||||
}
|
||||
|
||||
void AngelScriptItemUseScript::OnInitialize(
|
||||
const ArbUt::List<CreatureLib::Library::EffectParameter*>& parameters) {
|
||||
void AngelScriptItemUseScript::OnInitialize(const ArbUt::List<CreatureLib::Library::EffectParameter*>& parameters) {
|
||||
if (__OnInitialize.Exists) {
|
||||
CScriptArray* arr = nullptr;
|
||||
AngelScriptUtils::AngelscriptFunctionCall(
|
||||
|
|
|
@ -60,5 +60,4 @@ shared abstract class ItemUseScript {
|
|||
}
|
||||
)");
|
||||
Ensure(r >= 0);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue