diff options
author | Teravus Ovares | 2008-04-16 14:10:54 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-16 14:10:54 +0000 |
commit | 7c1f17b994ca987df2167101054f523cc33d7fb9 (patch) | |
tree | 19c74ddb0973e84fb6c2b31493efa4847a7b4f44 /OpenSim/Framework | |
parent | After reading Timer.cs in the mono source, I'm not (diff) | |
download | opensim-SC-7c1f17b994ca987df2167101054f523cc33d7fb9.zip opensim-SC-7c1f17b994ca987df2167101054f523cc33d7fb9.tar.gz opensim-SC-7c1f17b994ca987df2167101054f523cc33d7fb9.tar.bz2 opensim-SC-7c1f17b994ca987df2167101054f523cc33d7fb9.tar.xz |
* Applying melanie's Landmark patch. Thanks Melanie!
* To make a landmark, you currently have to enable admin options in the advanced menu first. We're working on this.. however use the admin options solution in the mean time.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/AssetLandmark.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/EstateSettings.cs | 3 | ||||
-rw-r--r-- | OpenSim/Framework/IClientAPI.cs | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Framework/AssetLandmark.cs b/OpenSim/Framework/AssetLandmark.cs index fe6f835..e0f5415 100644 --- a/OpenSim/Framework/AssetLandmark.cs +++ b/OpenSim/Framework/AssetLandmark.cs | |||
@@ -35,6 +35,7 @@ namespace OpenSim.Framework | |||
35 | public int Version; | 35 | public int Version; |
36 | public LLVector3 Position; | 36 | public LLVector3 Position; |
37 | public LLUUID RegionID; | 37 | public LLUUID RegionID; |
38 | public ulong RegionHandle; | ||
38 | 39 | ||
39 | public AssetLandmark(AssetBase a) | 40 | public AssetLandmark(AssetBase a) |
40 | { | 41 | { |
@@ -54,6 +55,7 @@ namespace OpenSim.Framework | |||
54 | int.TryParse(parts[0].Substring(17, 1), out Version); | 55 | int.TryParse(parts[0].Substring(17, 1), out Version); |
55 | LLUUID.TryParse(parts[1].Substring(10, 36), out RegionID); | 56 | LLUUID.TryParse(parts[1].Substring(10, 36), out RegionID); |
56 | LLVector3.TryParse(parts[2].Substring(11, parts[2].Length - 11), out Position); | 57 | LLVector3.TryParse(parts[2].Substring(11, parts[2].Length - 11), out Position); |
58 | ulong.TryParse(parts[3].Substring(14, parts[3].Length - 14), out RegionHandle); | ||
57 | } | 59 | } |
58 | } | 60 | } |
59 | } | 61 | } |
diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs index 42154e9..02b7f27 100644 --- a/OpenSim/Framework/EstateSettings.cs +++ b/OpenSim/Framework/EstateSettings.cs | |||
@@ -128,6 +128,7 @@ namespace OpenSim.Framework | |||
128 | get { return m_regionFlags; } | 128 | get { return m_regionFlags; } |
129 | set | 129 | set |
130 | { | 130 | { |
131 | //m_regionFlags = (Simulator.RegionFlags)0x400000; | ||
131 | m_regionFlags = value; | 132 | m_regionFlags = value; |
132 | configMember.forceSetConfigurationOption("region_flags", ((uint)m_regionFlags).ToString()); | 133 | configMember.forceSetConfigurationOption("region_flags", ((uint)m_regionFlags).ToString()); |
133 | } | 134 | } |
@@ -784,7 +785,7 @@ namespace OpenSim.Framework | |||
784 | configMember.addConfigurationOption("redirect_grid_y", ConfigurationOption.ConfigurationTypes.TYPE_INT32, String.Empty, | 785 | configMember.addConfigurationOption("redirect_grid_y", ConfigurationOption.ConfigurationTypes.TYPE_INT32, String.Empty, |
785 | "0", true); | 786 | "0", true); |
786 | configMember.addConfigurationOption("region_flags", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, String.Empty, | 787 | configMember.addConfigurationOption("region_flags", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, String.Empty, |
787 | "0", true); | 788 | "4194304", true); //The String value of RegionFlags.RestrictPushObject |
788 | configMember.addConfigurationOption("sim_access", ConfigurationOption.ConfigurationTypes.TYPE_BYTE, String.Empty, "21", | 789 | configMember.addConfigurationOption("sim_access", ConfigurationOption.ConfigurationTypes.TYPE_BYTE, String.Empty, "21", |
789 | true); | 790 | true); |
790 | configMember.addConfigurationOption("sun_hour", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, String.Empty, "0", | 791 | configMember.addConfigurationOption("sun_hour", ConfigurationOption.ConfigurationTypes.TYPE_FLOAT, String.Empty, "0", |
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index c0f7fce..75e6fcd 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs | |||
@@ -260,6 +260,9 @@ namespace OpenSim.Framework | |||
260 | public delegate void TeleportLocationRequest( | 260 | public delegate void TeleportLocationRequest( |
261 | IClientAPI remoteClient, ulong regionHandle, LLVector3 position, LLVector3 lookAt, uint flags); | 261 | IClientAPI remoteClient, ulong regionHandle, LLVector3 position, LLVector3 lookAt, uint flags); |
262 | 262 | ||
263 | public delegate void TeleportLandmarkRequest( | ||
264 | IClientAPI remoteClient, ulong regionHandle, LLVector3 position); | ||
265 | |||
263 | public delegate void DisconnectUser(); | 266 | public delegate void DisconnectUser(); |
264 | 267 | ||
265 | public delegate void RequestAvatarProperties(IClientAPI remoteClient, LLUUID avatarID); | 268 | public delegate void RequestAvatarProperties(IClientAPI remoteClient, LLUUID avatarID); |
@@ -458,6 +461,7 @@ namespace OpenSim.Framework | |||
458 | event DisconnectUser OnDisconnectUser; | 461 | event DisconnectUser OnDisconnectUser; |
459 | event RequestAvatarProperties OnRequestAvatarProperties; | 462 | event RequestAvatarProperties OnRequestAvatarProperties; |
460 | event SetAlwaysRun OnSetAlwaysRun; | 463 | event SetAlwaysRun OnSetAlwaysRun; |
464 | event TeleportLandmarkRequest OnTeleportLandmarkRequest; | ||
461 | event GenericCall4 OnDeRezObject; | 465 | event GenericCall4 OnDeRezObject; |
462 | event Action<IClientAPI> OnRegionHandShakeReply; | 466 | event Action<IClientAPI> OnRegionHandShakeReply; |
463 | event GenericCall2 OnRequestWearables; | 467 | event GenericCall2 OnRequestWearables; |