12345678910111213141516171819202122232425262728 |
- namespace ET
- {
- public class AccountInfoComponentDestroySystem : DestroySystem<AccountInfoComponent>
- {
- public override void Destroy(AccountInfoComponent self)
- {
- self.Clear();
- }
- }
- public static class AccountInfoComponentSystem
- {
- public static void Clear(this AccountInfoComponent self)
- {
- self.Token = string.Empty;
- self.AccountId = 0;
- self.RealmKey = string.Empty;
- self.RealmAddress = string.Empty;
- self.Age = 0;
- self.Account = string.Empty;
- }
- public static bool IsLogin(this AccountInfoComponent self)
- {
- return self.AccountId > 0;
- }
- }
- }
|