mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 13:15:44 +08:00
Refactor AgentPreferences so that database operations happen centrally. the opensim way.
Signed-off-by: Diva Canto <diva@metaverseink.com>
This commit is contained in:
@@ -34,22 +34,13 @@ namespace OpenSim.Data
|
||||
{
|
||||
public class AgentPreferencesData
|
||||
{
|
||||
public UUID PrincipalID = UUID.Zero;
|
||||
public string AccessPrefs = "M";
|
||||
//public int GodLevel;
|
||||
public double HoverHeight = 0.0;
|
||||
public string Language = "en-us";
|
||||
public bool LanguageIsPublic = true;
|
||||
// DefaultObjectPermMasks
|
||||
public int PermEveryone = 0;
|
||||
public int PermGroup = 0;
|
||||
public int PermNextOwner = 532480;
|
||||
public Dictionary<string, string> Data;
|
||||
}
|
||||
|
||||
public interface IAgentPreferencesData
|
||||
{
|
||||
bool Store(AgentPreferencesData data);
|
||||
AgentPreferencesData GetPrefs(UUID agentID);
|
||||
void StorePrefs(AgentPreferencesData data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user