26 #include "gui/viewport.h"
60 msg.readString(
msg.getLength() - 8,
"select items");
70 const std::string message =
msg.readString(
msg.getLength() - 8,
"message");
72 if (message.size() > 3 && message.substr(0, 3) ==
"###")
125 const int cmd =
msg.readInt16(
"cmd");
127 const int x =
msg.readInt16(
"x");
128 const int y =
msg.readInt16(
"y");
190 int invSize =
toInt(
id,
int);
199 int invSize =
toInt(
id,
int);
208 int invSize =
toInt(
id,
int);
221 if (dialog !=
nullptr)
237 msg.readInt16(
"len");
242 const std::string str =
msg.readString(-1,
"title");
const BeingId BeingId_zero
static uint8_t fromServerDirection(const uint8_t serverDir)
virtual BeingId getNpc(Net::MessageIn &msg, const NpcActionT action)=0
virtual void closeDialog(const BeingId npcId)=0
virtual void stringInput(const BeingId npcId, const std::string &value) const =0
void itemRequest(const int size)
void textRequest(const std::string &defaultText)
void addText(const std::string &string, const bool save)
void itemCraftRequest(const int size)
void itemIndexRequest(const int size)
void parseListItems(const std::string &itemString)
void setAvatarAction(const int actionId)
void showAvatar(const BeingTypeId avatarId)
void setAvatarDirection(const uint8_t direction)
static NpcDialogs mNpcDialogs
void integerRequest(const int defaultValue, const int min, const int max)
void moveCameraToActor(const BeingId actorId, const int x, const int y)
void moveCameraRelative(const int x, const int y)
void moveCameraToPosition(const int x, const int y)
void setCaption(const std::string &caption)
#define fromInt(val, name)
std::string getLangSimple()
#define UNIMPLEMENTEDPACKETFIELD(field)
bool msg(InputEvent &event)
void processNpcMessage(Net::MessageIn &msg)
void processNpcStrInput(Net::MessageIn &msg)
void processChangeTitle(Net::MessageIn &msg)
void processNpcIntInput(Net::MessageIn &msg)
void processNpcCommand(Net::MessageIn &msg)
void processNpcNext(Net::MessageIn &msg)
void processNpcClose(Net::MessageIn &msg)
void processNpcChoice(Net::MessageIn &msg)
Net::NpcHandler * npcHandler