ChatMessage.h 592 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <Text.h>
  3. #include <Writer.h>
  4. #include <Reader.h>
  5. class ChatMessage : public virtual Framework::ReferenceCounter
  6. {
  7. private:
  8. __int64 time;
  9. Framework::Text message;
  10. Framework::Text channel;
  11. Framework::Text targetPlayerName;
  12. public:
  13. ChatMessage(Framework::Text message,
  14. Framework::Text channel,
  15. Framework::Text targetPlayerName);
  16. ChatMessage(Framework::StreamReader* zReader);
  17. Framework::Text getChannel() const;
  18. Framework::Text getTargetPlayerName() const;
  19. void writeTo(Framework::StreamWriter* zWriter) const;
  20. };