예제 #1
0
        static public Character GetCharacter(byte RealmId, int CharacterId)
        {
            RealmCharacters Rm = GetRealmCharacter(RealmId);

            if (Rm != null)
            {
                return(Rm.GetCharacter(CharacterId));
            }
            return(null);
        }
예제 #2
0
        static public Character CreateCharacter(byte RealmId, Character Char)
        {
            RealmCharacters Rm = GetRealmCharacter(RealmId);

            if (Rm != null)
            {
                return(Rm.GetAccountCharacter(Char.AccountId).CreateCharacter(Char));
            }

            return(null);
        }
예제 #3
0
        static public bool NameIsUsed(byte RealmId, string Name)
        {
            RealmCharacters Rm = GetRealmCharacter(RealmId);

            if (Rm != null)
            {
                return(Rm.NameIsUsed(Name));
            }

            return(false);
        }
예제 #4
0
        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);
        }
예제 #5
0
        static public byte[] BuildCharacters(byte RealmId, int AccountId)
        {
            RealmCharacters Rm = GetRealmCharacter(RealmId);

            if (Rm != null)
            {
                return(Rm.GetAccountCharacter(AccountId).BuildCharacters());
            }

            return(new byte[2]);
        }
예제 #6
0
 public AccountCharacter(int AccountId,RealmCharacters Rm)
 {
     _Rm = Rm;
     _AccountId = AccountId;
 }
예제 #7
0
 public AccountCharacter(int AccountId, RealmCharacters Rm)
 {
     _Rm        = Rm;
     _AccountId = AccountId;
 }