NetChatMsg.cs 578 B

1234567891011121314151617181920212223242526
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Unity.Networking.Transport;
  5. namespace KairoEngine.Multiplayer
  6. {
  7. public class NetChatMsg : NetMsg
  8. {
  9. public override uint code { get { return (uint)NetOpCode.ChatMessage; }}
  10. public NetChatMsg()
  11. {
  12. }
  13. public override void Serialize(ref DataStreamWriter writer)
  14. {
  15. writer.WriteByte((byte)code);
  16. }
  17. public override void Deserialize(ref DataStreamReader reader)
  18. {
  19. }
  20. }
  21. }