2019-09-19 10:28:02 +00:00
|
|
|
using Mirror;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BetterTee.NetMsg
|
|
|
|
{
|
|
|
|
namespace Server
|
|
|
|
{
|
|
|
|
namespace Error {
|
|
|
|
public class InvalidPassword : MessageBase {}
|
|
|
|
public class GameAlreadyStarted : MessageBase {}
|
2019-09-19 17:02:34 +00:00
|
|
|
public class MaxPlayersCapReached : MessageBase {}
|
|
|
|
public class NotEnoughPlayers : MessageBase {}
|
|
|
|
public class NoSettings : MessageBase {}
|
2019-09-22 17:58:06 +00:00
|
|
|
public class MissingGameSettings : MessageBase {}
|
2019-09-19 10:28:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public class LobbyStatusChange : MessageBase {
|
|
|
|
public ConnectedPlayerData[] players;
|
|
|
|
public ConnectedViewerData[] viewers;
|
2019-09-22 17:58:06 +00:00
|
|
|
public bool canStart;
|
2019-09-19 10:28:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public class LobbyEnd : MessageBase
|
|
|
|
{
|
|
|
|
public ConnectedPlayerData[] players;
|
|
|
|
}
|
|
|
|
|
|
|
|
public class ActInit : MessageBase
|
|
|
|
{
|
|
|
|
public ActSettings settings;
|
|
|
|
}
|
|
|
|
|
|
|
|
public class ActStart : MessageBase {}
|
|
|
|
|
|
|
|
public class ActEnd : MessageBase {}
|
|
|
|
|
|
|
|
public class GameEnd : MessageBase
|
|
|
|
{
|
|
|
|
public ConnectedPlayerData[] leaderboard;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Client
|
|
|
|
{
|
|
|
|
public class PlayerJoin : MessageBase
|
|
|
|
{
|
|
|
|
public string playerName;
|
|
|
|
public string gamePassword;
|
|
|
|
}
|
|
|
|
|
2019-09-19 17:02:34 +00:00
|
|
|
public class ActResultsMsg : MessageBase
|
2019-09-19 10:28:02 +00:00
|
|
|
{
|
|
|
|
public ActResults results;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Viewer
|
|
|
|
{
|
|
|
|
public class ViewerLink : MessageBase
|
|
|
|
{
|
|
|
|
public string viewerName;
|
|
|
|
public string gamePassword;
|
|
|
|
}
|
|
|
|
|
|
|
|
public class Settings : MessageBase
|
|
|
|
{
|
|
|
|
public GameSettings settings;
|
|
|
|
}
|
2019-09-19 17:02:34 +00:00
|
|
|
|
|
|
|
public class GameStart : MessageBase {}
|
2019-09-19 10:28:02 +00:00
|
|
|
}
|
|
|
|
}
|