return os.str();
}
-InventoryItem* FireflySAO::createPickedUpItem()
-{
- std::istringstream is("CraftItem firefly 1", std::ios_base::binary);
- IGameDef *gamedef = m_env->getGameDef();
- InventoryItem *item = InventoryItem::deSerialize(is, gamedef);
- return item;
-}
-
/*
MobV2SAO
*/
return os.str();
}
-InventoryItem* LuaEntitySAO::createPickedUpItem()
-{
- // TODO: Ask item from scriptapi
- std::istringstream is("CraftItem testobject1 1", std::ios_base::binary);
- IGameDef *gamedef = m_env->getGameDef();
- InventoryItem *item = InventoryItem::deSerialize(is, gamedef);
- return item;
-}
-
void LuaEntitySAO::punch(ServerActiveObject *puncher, float time_from_last_punch)
{
if(!m_registered)
void step(float dtime, bool send_recommended);
std::string getClientInitializationData();
std::string getStaticData();
- InventoryItem* createPickedUpItem(){return NULL;}
void punch(ServerActiveObject *puncher, float time_from_last_punch);
bool isPeaceful(){return false;}
private:
void step(float dtime, bool send_recommended);
std::string getClientInitializationData();
std::string getStaticData();
- InventoryItem* createPickedUpItem();
private:
bool m_is_active;
IntervalLimiter m_inactive_interval;
std::string getStaticData();
std::string getClientInitializationData();
void step(float dtime, bool send_recommended);
- InventoryItem* createPickedUpItem(){return NULL;}
void punch(ServerActiveObject *puncher, float time_from_last_punch);
bool isPeaceful();
private:
void step(float dtime, bool send_recommended);
std::string getClientInitializationData();
std::string getStaticData();
- InventoryItem* createPickedUpItem();
void punch(ServerActiveObject *puncher, float time_from_last_punch);
void rightClick(ServerActiveObject *clicker);
void setPos(v3f pos);