C# Class Aura.Channel.Database.Account

Mostrar archivo Open project: aura-project/aura

Public Methods

Method Description
Account ( ) : System

Creates new account instance.

GetCharacterOrPet ( long entityId ) : Aura.Channel.World.Entities.PlayerCreature

Returns character or pet with the given entity id, or null, if entity wasn't found.

GetCharacterOrPetSafe ( long entityId ) : Aura.Channel.World.Entities.PlayerCreature

Returns character or pet with the given entity id, or throws, if entity wasn't found.

GetPet ( long entityId ) : Aura.Channel.World.Entities.Pet

Returns pet with the given entity id, or null, if entity wasn't found.

GetPetSafe ( long entityId ) : Aura.Channel.World.Entities.Pet

Returns pet with the given entity id, or throws, if entity wasn't found.

Method Details

Account() public method

Creates new account instance.
public Account ( ) : System
return System

GetCharacterOrPet() public method

Returns character or pet with the given entity id, or null, if entity wasn't found.
public GetCharacterOrPet ( long entityId ) : Aura.Channel.World.Entities.PlayerCreature
entityId long
return Aura.Channel.World.Entities.PlayerCreature

GetCharacterOrPetSafe() public method

Returns character or pet with the given entity id, or throws, if entity wasn't found.
When entity doesn't exist on account.
public GetCharacterOrPetSafe ( long entityId ) : Aura.Channel.World.Entities.PlayerCreature
entityId long
return Aura.Channel.World.Entities.PlayerCreature

GetPet() public method

Returns pet with the given entity id, or null, if entity wasn't found.
public GetPet ( long entityId ) : Aura.Channel.World.Entities.Pet
entityId long
return Aura.Channel.World.Entities.Pet

GetPetSafe() public method

Returns pet with the given entity id, or throws, if entity wasn't found.
When entity doesn't exist on account.
public GetPetSafe ( long entityId ) : Aura.Channel.World.Entities.Pet
entityId long
return Aura.Channel.World.Entities.Pet