moved validate command into shared library.
reworked connection system to read from log file for join/quits and authenticate later with polling
This commit is contained in:
10
SharedLibraryCore/Objects/ClientStats.cs
Normal file
10
SharedLibraryCore/Objects/ClientStats.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace SharedLibraryCore.Objects
|
||||
{
|
||||
class ClientStats
|
||||
{
|
||||
}
|
||||
}
|
@ -8,6 +8,13 @@ namespace SharedLibraryCore.Objects
|
||||
{
|
||||
public class Player : Database.Models.EFClient
|
||||
{
|
||||
public enum ClientState
|
||||
{
|
||||
Connecting,
|
||||
Connected,
|
||||
Disconnecting,
|
||||
}
|
||||
|
||||
public enum Permission
|
||||
{
|
||||
Banned = -1,
|
||||
@ -109,6 +116,10 @@ namespace SharedLibraryCore.Objects
|
||||
get { return _name; }
|
||||
set { _name = value; }
|
||||
}
|
||||
[NotMapped]
|
||||
public bool IsAuthenticated { get; set; }
|
||||
[NotMapped]
|
||||
public ClientState State { get; set; }
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
|
Reference in New Issue
Block a user