public static ChatPacket StructToChatPacket(ChatMessage message) { byte[] data = BlindNetUtil.StructToByte(message); return(BlindChatUtil.ByteToChatPacket(data, ChatType.Message)); }
public static ChatPacket StructToChatPacket(ChatTimeStamp time) { byte[] data = BlindNetUtil.StructToByte(time); return(BlindChatUtil.ByteToChatPacket(data, ChatType.Time)); }
public static ChatPacket StructToChatPacket(ChatRoomJoined roomJoined, ChatType type = ChatType.RoomJoined) { byte[] data = BlindNetUtil.StructToByte(roomJoined); return(BlindChatUtil.ByteToChatPacket(data, type)); }
public static ChatPacket StructToChatPacket(ChatRoom room) { byte[] data = BlindNetUtil.StructToByte(room); return(BlindChatUtil.ByteToChatPacket(data, ChatType.Room)); }
public static ChatPacket StructToChatPacket(User user) { byte[] data = BlindNetUtil.StructToByte(user); return(BlindChatUtil.ByteToChatPacket(data, ChatType.User)); }
public static ChatPacket StructToChatPacket(NewRoomStruct newRoom) { byte[] data = BlindNetUtil.StructToByte(newRoom); return(BlindChatUtil.ByteToChatPacket(data, ChatType.NewRoom)); }
public static ChatPacket StructToChatPacket(Invitation inv) { byte[] data = BlindNetUtil.StructToByte(inv); return(BlindChatUtil.ByteToChatPacket(data, ChatType.Invitation)); }