diff options
author | Adam Frisby | 2009-04-04 08:33:58 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-04 08:33:58 +0000 |
commit | 4e9403e6ef4d87235af639af7515a512a595b5ec (patch) | |
tree | 2179134bee1cb35dc4115382fb5c6f2556416993 /OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs | |
parent | Add copyright headers, formatting cleanup. (diff) | |
download | opensim-SC_OLD-4e9403e6ef4d87235af639af7515a512a595b5ec.zip opensim-SC_OLD-4e9403e6ef4d87235af639af7515a512a595b5ec.tar.gz opensim-SC_OLD-4e9403e6ef4d87235af639af7515a512a595b5ec.tar.bz2 opensim-SC_OLD-4e9403e6ef4d87235af639af7515a512a595b5ec.tar.xz |
* Renamed Heightmap.Height to Heightmap.Length to avoid confusion about axis.
* Added XMLDOC to MRM API code, this means we have usable programming docs being produced here: http://docs.opensimulator.org/namespaceOpenSim_1_1Region_1_1OptionalModules_1_1Scripting_1_1Minimodule.html (eg IObject, IHeightmap, etc)
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs index 223d764..0308079 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IObject.cs | |||
@@ -40,6 +40,27 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
40 | /// exception. 'Exists' allows you to check the object is still | 40 | /// exception. 'Exists' allows you to check the object is still |
41 | /// in play before utilizing it. | 41 | /// in play before utilizing it. |
42 | /// </summary> | 42 | /// </summary> |
43 | /// <example> | ||
44 | /// IObject deleteMe = World.Objects[0]; | ||
45 | /// | ||
46 | /// if(deleteMe.Exists) { | ||
47 | /// deleteMe.Say("Hello, I still exist!"); | ||
48 | /// } | ||
49 | /// | ||
50 | /// World.Objects.Remove(deleteMe); | ||
51 | /// | ||
52 | /// if(!deleteMe.Exists) { | ||
53 | /// Host.Console.Info("I was deleted"); | ||
54 | /// } | ||
55 | /// </example> | ||
56 | /// <remarks> | ||
57 | /// Objects should be near-guarunteed to exist for any event which | ||
58 | /// passes them as an argument. Storing an object for a longer period | ||
59 | /// of time however will limit their reliability. | ||
60 | /// | ||
61 | /// It is a good practice to use Try/Catch blocks handling for | ||
62 | /// NullReferenceException, when accessing remote objects. | ||
63 | /// </remarks> | ||
43 | bool Exists { get; } | 64 | bool Exists { get; } |
44 | 65 | ||
45 | /// <summary> | 66 | /// <summary> |