🚧 plugin system, webhook system

This commit is contained in:
2023-04-09 10:52:18 +04:00
parent f2edc94958
commit bfd6c1b54b
60 changed files with 762 additions and 267 deletions
+9 -12
View File
@@ -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;
}
}