コード例 #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));
 }