mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
make the super class conveniance appearance stuff virtual
so they can be overrided correctly by subclasses
This commit is contained in:
@@ -656,7 +656,7 @@ namespace OpenSim.Data.MySQL
|
||||
/// Appearance
|
||||
/// TODO: stubs for now to get us to a compiling state gently
|
||||
// override
|
||||
public AvatarAppearance GetUserAppearance(LLUUID user)
|
||||
override public AvatarAppearance GetUserAppearance(LLUUID user)
|
||||
{
|
||||
AvatarAppearance appearance = null;
|
||||
if (!m_appearanceMapper.TryGetValue(user.UUID, out appearance))
|
||||
@@ -667,7 +667,7 @@ namespace OpenSim.Data.MySQL
|
||||
}
|
||||
|
||||
// override
|
||||
public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance)
|
||||
override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance)
|
||||
{
|
||||
m_appearanceMapper.Update(user.UUID, appearance);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace OpenSim.Data
|
||||
public abstract string Name {get;}
|
||||
public abstract void Initialise(string connect);
|
||||
public abstract List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query);
|
||||
public AvatarAppearance GetUserAppearance(LLUUID user) {
|
||||
public virtual AvatarAppearance GetUserAppearance(LLUUID user) {
|
||||
AvatarAppearance aa = null;
|
||||
try {
|
||||
aa = aplist[user];
|
||||
@@ -69,7 +69,7 @@ namespace OpenSim.Data
|
||||
}
|
||||
return aa;
|
||||
}
|
||||
public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) {
|
||||
public virtual void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) {
|
||||
aplist[user] = appearance;
|
||||
m_log.Info("[APPEARANCE] Setting appearance for " + user.ToString() + appearance.ToString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user