37 lines
546 B
C#
37 lines
546 B
C#
|
using ET;
|
|||
|
using System;
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace ET
|
|||
|
|
|||
|
{
|
|||
|
|
|||
|
public class AccountAwakeSystem : AwakeSystem<Account, string, string>
|
|||
|
{
|
|||
|
public override void Awake(Account self, string a, string b)
|
|||
|
{
|
|||
|
self.Awake(a, b);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public class Account : Entity
|
|||
|
{
|
|||
|
public string Username;
|
|||
|
public string Pwd;
|
|||
|
public void Awake(string a, string b)
|
|||
|
{
|
|||
|
Username = a;
|
|||
|
Pwd = b;
|
|||
|
}
|
|||
|
public override void Dispose()
|
|||
|
{
|
|||
|
if (this.IsDisposed)
|
|||
|
{
|
|||
|
return;
|
|||
|
}
|
|||
|
|
|||
|
base.Dispose();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|