/TGame/TCommon/Entity/EntityR.cpp
http://awoe.googlecode.com/ · C++ · 35 lines · 24 code · 6 blank · 5 comment · 2 complexity · 341509aa05d2d303fe363d8bf12ec35e MD5 · raw file
- ////////////////////////////////////////////////////////////////////////////////////////////////////
- // file: Entity/EntityPlayer.cpp
- //
- // summary: Implements the entity player class
- ////////////////////////////////////////////////////////////////////////////////////////////////////
-
- #include "stdafx.h"
- #include "EntityR.h"
- #include "Lua/LuaWrapper.h"
- #include "EntityLua.h"
-
-
- EntityR::EntityR()
- :EntityImp(Entity::ett_Role)
- {
- }
-
- bool
- EntityR::onLoad()
- {
- EntityLua::push(Lua::instance()->state(), this);
- return Lua::instance()->call("Entity", "onLoadR", 1, 0);
- }
-
- int
- EntityR::getProps(const short& nIdx, int d)const
- {
- if(nIdx < Entity::ATTR_EP_BEGIN && nIdx > Entity::ETT_ATTR_BEGIN)
- {
- return __super::getProps(nIdx, d);
- }
-
- LOG_INFO_V("Error idx when getprops in EntityR (%d),", nIdx);
- return 0;
- }