static public Character GetCharacter(byte RealmId, int CharacterId) { RealmCharacters Rm = GetRealmCharacter(RealmId); if (Rm != null) { return(Rm.GetCharacter(CharacterId)); } return(null); }
static public Character CreateCharacter(byte RealmId, Character Char) { RealmCharacters Rm = GetRealmCharacter(RealmId); if (Rm != null) { return(Rm.GetAccountCharacter(Char.AccountId).CreateCharacter(Char)); } return(null); }
static public bool NameIsUsed(byte RealmId, string Name) { RealmCharacters Rm = GetRealmCharacter(RealmId); if (Rm != null) { return(Rm.NameIsUsed(Name)); } return(false); }
static public GameData.pRealm GetAccountRealm(byte RealmId, int AccountId) { RealmCharacters Rm = GetRealmCharacter(RealmId); if (Rm != null) { return(Rm.GetAccountCharacter(AccountId)._Realm); } return(GameData.pRealm.REALM_NONE); }
static public byte[] BuildCharacters(byte RealmId, int AccountId) { RealmCharacters Rm = GetRealmCharacter(RealmId); if (Rm != null) { return(Rm.GetAccountCharacter(AccountId).BuildCharacters()); } return(new byte[2]); }
public AccountCharacter(int AccountId,RealmCharacters Rm) { _Rm = Rm; _AccountId = AccountId; }
public AccountCharacter(int AccountId, RealmCharacters Rm) { _Rm = Rm; _AccountId = AccountId; }