C# Class CityDataModel.Entities.HouseAccess

Show file Open project: RHY3756547/FreeSO

Public Methods

Method Description
CreateHouse ( House house ) : HouseCreationStatus

Attempts to create a house in the DB.

GetForCharacterGUID ( System.Guid GUID ) : House

Returns the first house for a specific character GUID.

GetForPosition ( int X, int Y ) : House

Returns the first house found for the given coordinates, or a default value.

HouseAccess ( DataAccess context ) : System

Method Details

CreateHouse() public method

Attempts to create a house in the DB.
public CreateHouse ( House house ) : HouseCreationStatus
house House A House instance to add to the DB.
return HouseCreationStatus

GetForCharacterGUID() public method

Returns the first house for a specific character GUID.
public GetForCharacterGUID ( System.Guid GUID ) : House
GUID System.Guid A Guid instance for a character.
return House

GetForPosition() public method

Returns the first house found for the given coordinates, or a default value.
public GetForPosition ( int X, int Y ) : House
X int X coordinate of house.
Y int Y coordinate of house.
return House

HouseAccess() public method

public HouseAccess ( DataAccess context ) : System
context DataAccess
return System