Player.cs 360 B

12345678910111213141516171819202122
  1. namespace ET
  2. {
  3. public class PlayerSystem : AwakeSystem<Player, string>
  4. {
  5. public override void Awake(Player self, string a)
  6. {
  7. self.Awake(a);
  8. }
  9. }
  10. public sealed class Player : Entity
  11. {
  12. public string Account { get; private set; }
  13. public long UnitId { get; set; }
  14. public void Awake(string account)
  15. {
  16. this.Account = account;
  17. }
  18. }
  19. }