Guest User

Untitled

a guest
Nov 19th, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. //After
  2.  
  3. class ProtocolGame : public Protocol
  4. {
  5.  
  6. //Add this
  7.  
  8. public:
  9. std::string viewerName;
  10. std::string getViewerName(){ return viewerName; }
  11. Player * getPlayer(){ return player; }
  12. bool original;
  13.  
  14. //After
  15.  
  16. std::unordered_set<uint32_t> knownCreatureSet;
  17.  
  18. //Add this
  19.  
  20. void connectCast(uint32_t playerId, OperatingSystem_t operatingSystem);
  21.  
  22. //Replace
  23.  
  24. void sendToChannel(const Creature* creature, SpeakClasses type, const std::string& text, uint16_t channelId);
  25.  
  26. //With
  27.  
  28. public: void sendToChannel(ProtocolGame* from, const std::string& text);
  29. private: void sendToChannel(const Creature* creature, SpeakClasses type, const std::string& text, uint16_t channelId);
  30.  
  31. //After
  32.  
  33. void AddPlayerStats(NetworkMessage& msg);
  34.  
  35. //Add this
  36.  
  37. 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