Move all packet interfaces to a better location
This commit is contained in:
parent
2fbdb9799a
commit
877592bb94
23 changed files with 21 additions and 21 deletions
|
@ -5,7 +5,7 @@ import LoginProcess from "./LoginProcess";
|
|||
import { IncomingMessage, ServerResponse } from "http";
|
||||
import { Packets } from "./enums/Packets";
|
||||
import { RedisClientType, createClient } from "redis";
|
||||
import MessageData from "./interfaces/MessageData";
|
||||
import MessageData from "./interfaces/packetTypes/MessageData";
|
||||
import PrivateMessage from "./packets/PrivateMessage";
|
||||
import Shared from "./objects/Shared";
|
||||
import SpectatorManager from "./SpectatorManager";
|
||||
|
|
|
@ -8,8 +8,8 @@ import StatusUpdate from "./packets/StatusUpdate";
|
|||
import UserPresence from "./packets/UserPresence";
|
||||
import UserPresenceBundle from "./packets/UserPresenceBundle";
|
||||
import MatchArray from "./objects/MatchArray";
|
||||
import MatchJoinData from "./interfaces/MatchJoinData";
|
||||
import MatchData from "./interfaces/MatchData";
|
||||
import MatchJoinData from "./interfaces/packetTypes/MatchJoinData";
|
||||
import MatchData from "./interfaces/packetTypes/MatchData";
|
||||
import osu from "../osuTyping";
|
||||
import TourneyMatchSpecialInfo from "./packets/TourneyMatchSpecialInfo";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import DataStream from "./objects/DataStream";
|
|||
import Shared from "./objects/Shared";
|
||||
import User from "./objects/User";
|
||||
import osu from "../osuTyping";
|
||||
import SpectateFramesData from "./interfaces/SpectateFramesData";
|
||||
import SpectateFramesData from "./interfaces/packetTypes/SpectateFramesData";
|
||||
|
||||
export default class SpectatorManager {
|
||||
private shared:Shared;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import ChannelData from "./ChannelData"
|
||||
import MatchData from "./MatchData"
|
||||
import MessageData from "./MessageData"
|
||||
import ScoreFrameData from "./ScoreFrameData"
|
||||
import SpectateFramesData from "./SpectateFramesData"
|
||||
import StatusUpdateData from "./StatusUpdateData"
|
||||
import UserPresenceData from "./UserPresenceData"
|
||||
import UserQuitData from "./UserQuitData"
|
||||
import ChannelData from "./packetTypes/ChannelData"
|
||||
import MatchData from "./packetTypes/MatchData"
|
||||
import MessageData from "./packetTypes/MessageData"
|
||||
import ScoreFrameData from "./packetTypes/ScoreFrameData"
|
||||
import SpectateFramesData from "./packetTypes/SpectateFramesData"
|
||||
import StatusUpdateData from "./packetTypes/StatusUpdateData"
|
||||
import UserPresenceData from "./packetTypes/UserPresenceData"
|
||||
import UserQuitData from "./packetTypes/UserQuitData"
|
||||
|
||||
export default interface OsuPacketWriter {
|
||||
// Functions
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Slot from "../objects/Slot";
|
||||
import User from "../objects/User";
|
||||
import ScoreFrameData from "./ScoreFrameData";
|
||||
import ScoreFrameData from "./packetTypes/ScoreFrameData";
|
||||
|
||||
export default interface PlayerScore {
|
||||
player: User,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Permissions } from "../enums/Permissions";
|
||||
import { Permissions } from "../../enums/Permissions";
|
||||
|
||||
export default interface UserPresenceData {
|
||||
userId: number,
|
|
@ -5,14 +5,14 @@ import Slot from "./Slot";
|
|||
import User from "./User";
|
||||
import StatusUpdate from "../packets/StatusUpdate";
|
||||
import { SlotStatus } from "../enums/SlotStatus";
|
||||
import MatchData from "../interfaces/MatchData";
|
||||
import MatchData from "../interfaces/packetTypes/MatchData";
|
||||
import { Team } from "../enums/Team";
|
||||
import MatchStartSkipData from "../interfaces/MatchStartSkipData";
|
||||
import MatchStartSkipData from "../interfaces/packetTypes/MatchStartSkipData";
|
||||
import { Mods } from "../enums/Mods";
|
||||
import PlayerScore from "../interfaces/PlayerScore";
|
||||
import { enumHasFlag } from "../Util";
|
||||
import osu from "../../osuTyping";
|
||||
import ScoreFrameData from "../interfaces/ScoreFrameData";
|
||||
import ScoreFrameData from "../interfaces/packetTypes/ScoreFrameData";
|
||||
|
||||
// Mods which need to be applied to the match during freemod.
|
||||
const matchFreemodGlobalMods:Array<Mods> = [
|
||||
|
|
|
@ -6,7 +6,7 @@ import StatusUpdate from "../packets/StatusUpdate";
|
|||
import Shared from "../objects/Shared";
|
||||
import Slot from "./Slot";
|
||||
import Channel from "./Channel";
|
||||
import PresenceData from "../interfaces/PresenceData";
|
||||
import PresenceData from "../interfaces/packetTypes/PresenceData";
|
||||
import { Permissions } from "../enums/Permissions";
|
||||
|
||||
const rankingModes = [
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import PresenceData from "../interfaces/PresenceData";
|
||||
import PresenceData from "../interfaces/packetTypes/PresenceData";
|
||||
import User from "../objects/User";
|
||||
import StatusUpdate from "./StatusUpdate";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import MessageData from "../interfaces/MessageData";
|
||||
import MessageData from "../interfaces/packetTypes/MessageData";
|
||||
import Shared from "../objects/Shared";
|
||||
import PrivateChannel from "../objects/PrivateChannel";
|
||||
import User from "../objects/User";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Channel } from "diagnostics_channel";
|
||||
import MessageData from "../interfaces/MessageData";
|
||||
import MessageData from "../interfaces/packetTypes/MessageData";
|
||||
import User from "../objects/User";
|
||||
|
||||
export default function SendPublicMessage(user:User, message:MessageData) {
|
||||
|
|
Loading…
Reference in a new issue