Made a method of GridUserService virtual so it can be overridden.

connector_plugin
Diva Canto 2012-09-30 06:51:49 -07:00
parent 6511c3b5c6
commit 5b69872655
1 changed files with 1 additions and 12 deletions

View File

@ -49,7 +49,7 @@ namespace OpenSim.Services.UserAccountService
m_log.Debug("[USER GRID SERVICE]: Starting user grid service");
}
public GridUserInfo GetGridUserInfo(string userID)
public virtual GridUserInfo GetGridUserInfo(string userID)
{
GridUserData d = m_Database.Get(userID);
@ -122,17 +122,6 @@ namespace OpenSim.Services.UserAccountService
return m_Database.Store(d);
}
protected bool StoreGridUserInfo(GridUserInfo info)
{
GridUserData d = new GridUserData();
d.Data["HomeRegionID"] = info.HomeRegionID.ToString();
d.Data["HomePosition"] = info.HomePosition.ToString();
d.Data["HomeLookAt"] = info.HomeLookAt.ToString();
return m_Database.Store(d);
}
public bool SetHome(string userID, UUID homeID, Vector3 homePosition, Vector3 homeLookAt)
{
GridUserData d = m_Database.Get(userID);