🚧 plugin system, webhook system
This commit is contained in:
@@ -14,28 +14,25 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
namespace Ragon.Server;
|
||||
namespace Ragon.Server.Lobby;
|
||||
|
||||
public enum LobbyPlayerStatus
|
||||
public enum ConnectionStatus
|
||||
{
|
||||
Unauthorized,
|
||||
InProcess,
|
||||
Authorized,
|
||||
}
|
||||
|
||||
public class RagonLobbyPlayer
|
||||
{
|
||||
public string Id { get; private set; }
|
||||
public string Name { get; set; }
|
||||
public byte[] AdditionalData { get; set; }
|
||||
public LobbyPlayerStatus Status { get; set; }
|
||||
public INetworkConnection Connection { get; private set; }
|
||||
public string Name { get; private set; }
|
||||
public string Payload { get; private set; }
|
||||
|
||||
public RagonLobbyPlayer(INetworkConnection connection)
|
||||
public RagonLobbyPlayer(string id, string name, string payload)
|
||||
{
|
||||
Id = Guid.NewGuid().ToString();
|
||||
Connection = connection;
|
||||
Status = LobbyPlayerStatus.Unauthorized;
|
||||
Name = "None";
|
||||
AdditionalData = Array.Empty<byte>();
|
||||
Id = id;
|
||||
Name = name;
|
||||
Payload = payload;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user