ManaPlus
Functions
Ea::ItemRecv Namespace Reference

Functions

void processItemRemove (Net::MessageIn &msg)
 

Function Documentation

◆ processItemRemove()

void Ea::ItemRecv::processItemRemove ( Net::MessageIn msg)

Definition at line 37 of file itemrecv.cpp.

38 {
39  if (actorManager != nullptr)
40  {
41  if (FloorItem *const item = actorManager
42  ->findItem(msg.readBeingId("floor item id")))
43  {
44  actorManager->destroy(item);
45  }
46  }
47 }
ActorManager * actorManager
void destroy(ActorSprite *const actor)
bool msg(InputEvent &event)
Definition: chat.cpp:39

References actorManager, ActorManager::destroy(), and Actions::msg().