123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #pragma once
- #include <Writer.h>
- #include <Vec3.h>
- class Chunk;
- class Block;
- class Entity;
- class NetworkResponse
- {
- private:
- char* adress;
- char adressLength;
- Framework::Vec3<float> minPosition;
- Framework::Vec3<float> maxPosition;
- bool broadcast;
- char* message;
- bool msgDelete;
- int msgLength;
- bool useBackground;
- int affectedDimension;
- 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<float> min, Framework::Vec3<float> max, int dimensionId) const;
- void writeTo(Framework::StreamWriter* zWriter) const;
- bool isBroadcast() const;
- bool isEmpty() const;
- bool isUseBackground() const;
- };
|