Player.cs 392 B

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