Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //After
- class ProtocolGame : public Protocol
- {
- //Add this
- public:
- std::string viewerName;
- std::string getViewerName(){ return viewerName; }
- Player * getPlayer(){ return player; }
- bool original;
- //After
- std::unordered_set<uint32_t> knownCreatureSet;
- //Add this
- void connectCast(uint32_t playerId, OperatingSystem_t operatingSystem);
- //Replace
- void sendToChannel(const Creature* creature, SpeakClasses type, const std::string& text, uint16_t channelId);
- //With
- public: void sendToChannel(ProtocolGame* from, const std::string& text);
- private: void sendToChannel(const Creature* creature, SpeakClasses type, const std::string& text, uint16_t channelId);
- //After
- void AddPlayerStats(NetworkMessage& msg);
- //Add this
- void AddCreatureSpeak(NetworkMessage& msg, const Creature* creature, SpeakClasses type, const std::string& text, uint16_t channelId, const Position* pos = nullptr);
Advertisement
Add Comment
Please, Sign In to add comment