Remove last instance of explicit any type
This commit is contained in:
parent
a32ab80f73
commit
2fbdb9799a
1 changed files with 3 additions and 3 deletions
|
@ -2,6 +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";
|
||||||
|
|
||||||
export default class SpectatorManager {
|
export default class SpectatorManager {
|
||||||
private shared:Shared;
|
private shared:Shared;
|
||||||
|
@ -41,14 +42,13 @@ export default class SpectatorManager {
|
||||||
spectateStream.Send(osuPacketWriter.toBuffer);
|
spectateStream.Send(osuPacketWriter.toBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Interface for spectateFrameData
|
public spectatorFrames(user:User, spectateFramesData:SpectateFramesData) {
|
||||||
public spectatorFrames(user:User, spectateFrameData:any) {
|
|
||||||
if (user.spectatorStream === undefined) {
|
if (user.spectatorStream === undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const osuPacketWriter = osu.Bancho.Writer();
|
const osuPacketWriter = osu.Bancho.Writer();
|
||||||
osuPacketWriter.SpectateFrames(spectateFrameData);
|
osuPacketWriter.SpectateFrames(spectateFramesData);
|
||||||
|
|
||||||
user.spectatorStream.Send(osuPacketWriter.toBuffer);
|
user.spectatorStream.Send(osuPacketWriter.toBuffer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue