X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FCaster.cpp;h=050ac930e9ef956d90bb16763fd94a47e02697b5;hb=11cf419b542070def1d0edaa69d2389ab1ab427b;hp=78a31b548db4737e0cd4cba08ee104fd73a9313f;hpb=2255d436a0c2acc10b015827366a72b2ece86094;p=l2e.git diff --git a/src/loader/Caster.cpp b/src/loader/Caster.cpp index 78a31b5..050ac93 100644 --- a/src/loader/Caster.cpp +++ b/src/loader/Caster.cpp @@ -4,6 +4,7 @@ #include "../battle/Resources.h" #include "../battle/Monster.h" #include "../battle/PartyLayout.h" +#include "../common/Capsule.h" #include "../common/Hero.h" #include "../common/Item.h" #include "../common/Spell.h" @@ -12,6 +13,7 @@ using battle::Monster; using battle::PartyLayout; +using common::Capsule; using common::Hero; using common::Item; using common::Spell; @@ -32,6 +34,10 @@ battle::Resources *Caster::GetBattleResources(const string &ident) { intp.GetObject(battle::Resources::TYPE_ID, ident)); } +Capsule *Caster::GetCapsule(const string &ident) { + return reinterpret_cast(intp.GetObject(Capsule::TYPE_ID, ident)); +} + Hero *Caster::GetHero(const string &ident) { return reinterpret_cast(intp.GetObject(Hero::TYPE_ID, ident)); }