* Some minor cleanups
* Will commit the next set of changes tommorow containing the RegionData changes for permanently storing ComponentState data (n.b. they currently save/load via the ToXml/FromXml methods used by OARs and Inventory fine). * This is very spammy code, but will attach a component to every SOP in every scene on startup. The source for the component can be seen in TestComponent - a more detailed example is coming soon.soprefactor
parent
f73d73fcfe
commit
64547c23ad
|
@ -648,7 +648,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
{
|
||||
// Make sure that we see any exception caused by the asynchronous operation.
|
||||
m_log.Error(
|
||||
string.Format("[LLCLIENTVIEW]: Caught exception while processing {0} {1} STACK: {2}", packetObject.Pack, e.ToString(),e.StackTrace), e);
|
||||
string.Format("[LLCLIENTVIEW]: Caught exception while processing {0} {1}", packetObject.Pack, e.ToString()), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Runtime.Serialization;
|
|||
namespace OpenSim.Region.Framework.Scenes.Components
|
||||
{
|
||||
[Serializable]
|
||||
public class ComponentState : IComponentState
|
||||
public class ComponentState
|
||||
{
|
||||
private readonly Dictionary<string,Object> m_stateData = new Dictionary<string,object>();
|
||||
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
namespace OpenSim.Region.Framework.Scenes.Components
|
||||
{
|
||||
public interface IComponentState
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="data">A serializable type</param>
|
||||
void Set<T>(string name, T data);
|
||||
|
||||
T Get<T>(string name);
|
||||
|
||||
bool TryGet<T>(string name, out T data);
|
||||
|
||||
string Serialise();
|
||||
}
|
||||
}
|
|
@ -18,14 +18,6 @@ namespace OpenSim.Region.OptionalModules.World.TestComponent
|
|||
|
||||
#region Implementation of IComponent
|
||||
|
||||
/// <summary>
|
||||
/// Components MUST have a parameterless constructor
|
||||
/// </summary>
|
||||
public TestComponent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public TestComponent(ComponentState state)
|
||||
{
|
||||
m_log.Info("Its alive!");
|
||||
|
|
Loading…
Reference in New Issue