Binato/server/MultiplayerManager.ts
2022-11-19 01:06:03 +00:00

20 lines
No EOL
583 B
TypeScript

import { DataStream } from "./objects/DataStream";
import { DataStreamArray } from "./objects/DataStreamArray";
import { FunkyArray } from "./objects/FunkyArray";
import { Match } from "./objects/Match";
import { User } from "./objects/User";
export class MultiplayerManager {
private matches:FunkyArray<Match> = new FunkyArray<Match>();
private readonly lobbyStream:DataStream;
public constructor(streams:DataStreamArray) {
this.lobbyStream = streams.CreateStream("multiplayer:lobby", false);
}
public JoinLobby(user:User) {
if (user.currentMatch != null) {
}
}
}