#pragma once #include #include class Chunk; class Block; class Entity; class NetworkResponse { private: char* adress; char adressLength; Framework::Vec3 minPosition; Framework::Vec3 maxPosition; bool broadcast; char* message; bool msgDelete; int msgLength; bool useBackground; public: NetworkResponse(); ~NetworkResponse(); void adressChunck(Chunk* zChunk); void adressEntity(Entity* zEntity); void adressBlock(Block* zBlock); void openDialog(Framework::Text dialogName); void adressGui(Framework::Text elementId); void setMessage(char* msg, int length, bool deleteMsg); void setUseBackground(); void sendToAll(); bool isAreaAffected(Framework::Vec3 min, Framework::Vec3 max) const; void writeTo(Framework::StreamWriter* zWriter) const; bool isBroadcast() const; bool isEmpty() const; bool isUseBackground() const; };