make the super class conveniance appearance stuff virtual
so they can be overrided correctly by subclasses0.6.0-stable
parent
7a52b35c57
commit
d1c4fc94e7
|
@ -656,7 +656,7 @@ namespace OpenSim.Data.MySQL
|
||||||
/// Appearance
|
/// Appearance
|
||||||
/// TODO: stubs for now to get us to a compiling state gently
|
/// TODO: stubs for now to get us to a compiling state gently
|
||||||
// override
|
// override
|
||||||
public AvatarAppearance GetUserAppearance(LLUUID user)
|
override public AvatarAppearance GetUserAppearance(LLUUID user)
|
||||||
{
|
{
|
||||||
AvatarAppearance appearance = null;
|
AvatarAppearance appearance = null;
|
||||||
if (!m_appearanceMapper.TryGetValue(user.UUID, out appearance))
|
if (!m_appearanceMapper.TryGetValue(user.UUID, out appearance))
|
||||||
|
@ -667,7 +667,7 @@ namespace OpenSim.Data.MySQL
|
||||||
}
|
}
|
||||||
|
|
||||||
// override
|
// override
|
||||||
public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance)
|
override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance)
|
||||||
{
|
{
|
||||||
m_appearanceMapper.Update(user.UUID, appearance);
|
m_appearanceMapper.Update(user.UUID, appearance);
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace OpenSim.Data
|
||||||
public abstract string Name {get;}
|
public abstract string Name {get;}
|
||||||
public abstract void Initialise(string connect);
|
public abstract void Initialise(string connect);
|
||||||
public abstract List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query);
|
public abstract List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query);
|
||||||
public AvatarAppearance GetUserAppearance(LLUUID user) {
|
public virtual AvatarAppearance GetUserAppearance(LLUUID user) {
|
||||||
AvatarAppearance aa = null;
|
AvatarAppearance aa = null;
|
||||||
try {
|
try {
|
||||||
aa = aplist[user];
|
aa = aplist[user];
|
||||||
|
@ -69,7 +69,7 @@ namespace OpenSim.Data
|
||||||
}
|
}
|
||||||
return aa;
|
return aa;
|
||||||
}
|
}
|
||||||
public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) {
|
public virtual void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) {
|
||||||
aplist[user] = appearance;
|
aplist[user] = appearance;
|
||||||
m_log.Info("[APPEARANCE] Setting appearance for " + user.ToString() + appearance.ToString());
|
m_log.Info("[APPEARANCE] Setting appearance for " + user.ToString() + appearance.ToString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue