Definition at line 36 of file maprecv.cpp.
38 const int x1 =
msg.readInt16(
"x1");
39 const int y1 =
msg.readInt16(
"y1");
40 const int x2 =
msg.readInt16(
"x2");
41 const int y2 =
msg.readInt16(
"y2");
43 const int layer =
msg.readInt32(
"layer");
44 const std::string name =
msg.readString(16,
"map name");
48 if ((map !=
nullptr) && map->
getGatName() == name)
50 for (
int y = y1;
y <= y2;
y ++)
52 for (
int x = x1;
x <= x2;
x ++)
void setBlockMask(const int x, const int y, const BlockTypeT type)
void updateConditionLayers()
const std::string getGatName() const
bool msg(InputEvent &event)
References Map::getGatName(), Viewport::getMap(), Actions::msg(), Map::preCacheLayers(), Map::setBlockMask(), Map::updateConditionLayers(), viewport, x, and y.