Add accessors to allow serializing rot and position targets
parent
a291e6be93
commit
da6f589885
|
@ -79,14 +79,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
object_rez = 4194304
|
object_rez = 4194304
|
||||||
}
|
}
|
||||||
|
|
||||||
struct scriptPosTarget
|
public struct scriptPosTarget
|
||||||
{
|
{
|
||||||
public Vector3 targetPos;
|
public Vector3 targetPos;
|
||||||
public float tolerance;
|
public float tolerance;
|
||||||
public uint handle;
|
public uint handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct scriptRotTarget
|
public struct scriptRotTarget
|
||||||
{
|
{
|
||||||
public Quaternion targetRot;
|
public Quaternion targetRot;
|
||||||
public float tolerance;
|
public float tolerance;
|
||||||
|
@ -323,6 +323,16 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
private SortedDictionary<uint, scriptPosTarget> m_targets = new SortedDictionary<uint, scriptPosTarget>();
|
private SortedDictionary<uint, scriptPosTarget> m_targets = new SortedDictionary<uint, scriptPosTarget>();
|
||||||
private SortedDictionary<uint, scriptRotTarget> m_rotTargets = new SortedDictionary<uint, scriptRotTarget>();
|
private SortedDictionary<uint, scriptRotTarget> m_rotTargets = new SortedDictionary<uint, scriptRotTarget>();
|
||||||
|
|
||||||
|
public SortedDictionary<uint, scriptPosTarget> AtTargets
|
||||||
|
{
|
||||||
|
get { return m_targets; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public SortedDictionary<uint, scriptRotTarget> RotTargets
|
||||||
|
{
|
||||||
|
get { return m_rotTargets; }
|
||||||
|
}
|
||||||
|
|
||||||
private bool m_scriptListens_atTarget;
|
private bool m_scriptListens_atTarget;
|
||||||
private bool m_scriptListens_notAtTarget;
|
private bool m_scriptListens_notAtTarget;
|
||||||
private bool m_scriptListens_atRotTarget;
|
private bool m_scriptListens_atRotTarget;
|
||||||
|
|
Loading…
Reference in New Issue