예제 #1
0
 public static ChatPacket StructToChatPacket(ChatMessage message)
 {
     byte[] data = BlindNetUtil.StructToByte(message);
     return(BlindChatUtil.ByteToChatPacket(data, ChatType.Message));
 }
예제 #2
0
 public static ChatPacket StructToChatPacket(ChatTimeStamp time)
 {
     byte[] data = BlindNetUtil.StructToByte(time);
     return(BlindChatUtil.ByteToChatPacket(data, ChatType.Time));
 }
예제 #3
0
 public static ChatPacket StructToChatPacket(ChatRoomJoined roomJoined, ChatType type = ChatType.RoomJoined)
 {
     byte[] data = BlindNetUtil.StructToByte(roomJoined);
     return(BlindChatUtil.ByteToChatPacket(data, type));
 }
예제 #4
0
 public static ChatPacket StructToChatPacket(ChatRoom room)
 {
     byte[] data = BlindNetUtil.StructToByte(room);
     return(BlindChatUtil.ByteToChatPacket(data, ChatType.Room));
 }
예제 #5
0
 public static ChatPacket StructToChatPacket(User user)
 {
     byte[] data = BlindNetUtil.StructToByte(user);
     return(BlindChatUtil.ByteToChatPacket(data, ChatType.User));
 }
예제 #6
0
 public static ChatPacket StructToChatPacket(NewRoomStruct newRoom)
 {
     byte[] data = BlindNetUtil.StructToByte(newRoom);
     return(BlindChatUtil.ByteToChatPacket(data, ChatType.NewRoom));
 }
예제 #7
0
 public static ChatPacket StructToChatPacket(Invitation inv)
 {
     byte[] data = BlindNetUtil.StructToByte(inv);
     return(BlindChatUtil.ByteToChatPacket(data, ChatType.Invitation));
 }