25 lines
472 B
C#
25 lines
472 B
C#
|
using ET;
|
|||
|
using System;
|
|||
|
namespace ET
|
|||
|
|
|||
|
{
|
|||
|
|
|||
|
public class UserSystem : AwakeSystem<ClientUser, string>
|
|||
|
{
|
|||
|
public override void Awake(ClientUser self, string a)
|
|||
|
{
|
|||
|
self.Awake(a);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public sealed class ClientUser : Entity
|
|||
|
{
|
|||
|
public string UserName { get; set; }
|
|||
|
public long UnitId { get; set; }
|
|||
|
|
|||
|
public void Awake(string userName)
|
|||
|
{
|
|||
|
UserName = userName;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|