diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index 1c865e8..8e3d026 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -93,6 +93,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
93 | private bool m_postOnRez; | 93 | private bool m_postOnRez; |
94 | private bool m_startedFromSavedState = false; | 94 | private bool m_startedFromSavedState = false; |
95 | private string m_CurrentState = String.Empty; | 95 | private string m_CurrentState = String.Empty; |
96 | private UUID m_RegionID = UUID.Zero; | ||
96 | 97 | ||
97 | //private ISponsor m_ScriptSponsor; | 98 | //private ISponsor m_ScriptSponsor; |
98 | private Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> | 99 | private Dictionary<KeyValuePair<int, int>, KeyValuePair<int, int>> |
@@ -231,6 +232,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
231 | m_MaxScriptQueue = maxScriptQueue; | 232 | m_MaxScriptQueue = maxScriptQueue; |
232 | m_stateSource = stateSource; | 233 | m_stateSource = stateSource; |
233 | m_postOnRez = postOnRez; | 234 | m_postOnRez = postOnRez; |
235 | m_RegionID = part.ParentGroup.Scene.RegionInfo.RegionID; | ||
234 | 236 | ||
235 | if (part != null) | 237 | if (part != null) |
236 | { | 238 | { |
@@ -980,5 +982,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
980 | 982 | ||
981 | return ScriptSerializer.Serialize(this); | 983 | return ScriptSerializer.Serialize(this); |
982 | } | 984 | } |
985 | |||
986 | public UUID RegionID | ||
987 | { | ||
988 | get { return m_RegionID; } | ||
989 | } | ||
983 | } | 990 | } |
984 | } | 991 | } |