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