aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/world/Entity.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-04-07 17:37:04 +0000
committerAdam Frisby2007-04-07 17:37:04 +0000
commit4ab5803911180231f370b675b63f717818b79858 (patch)
treeb7ad98a2cff4568df828e6c555dae3754276748e /OpenSim.RegionServer/world/Entity.cs
parentZOMG Comments! (diff)
downloadopensim-SC_OLD-4ab5803911180231f370b675b63f717818b79858.zip
opensim-SC_OLD-4ab5803911180231f370b675b63f717818b79858.tar.gz
opensim-SC_OLD-4ab5803911180231f370b675b63f717818b79858.tar.bz2
opensim-SC_OLD-4ab5803911180231f370b675b63f717818b79858.tar.xz
Documentation!
Diffstat (limited to 'OpenSim.RegionServer/world/Entity.cs')
-rw-r--r--OpenSim.RegionServer/world/Entity.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim.RegionServer/world/Entity.cs b/OpenSim.RegionServer/world/Entity.cs
index b59d200..96e039a 100644
--- a/OpenSim.RegionServer/world/Entity.cs
+++ b/OpenSim.RegionServer/world/Entity.cs
@@ -62,7 +62,9 @@ namespace OpenSim.world
62 } 62 }
63 } 63 }
64 64
65 65 /// <summary>
66 /// Creates a new Entity (should not occur on it's own)
67 /// </summary>
66 public Entity() 68 public Entity()
67 { 69 {
68 uuid = new libsecondlife.LLUUID(); 70 uuid = new libsecondlife.LLUUID();
@@ -81,6 +83,10 @@ namespace OpenSim.world
81 child.addForces(); 83 child.addForces();
82 } 84 }
83 } 85 }
86
87 /// <summary>
88 /// Performs any updates that need to be done at each frame. This function is overridable from it's children.
89 /// </summary>
84 public virtual void update() { 90 public virtual void update() {
85 // Do any per-frame updates needed that are applicable to every type of entity 91 // Do any per-frame updates needed that are applicable to every type of entity
86 foreach (Entity child in children) 92 foreach (Entity child in children)
@@ -89,6 +95,10 @@ namespace OpenSim.world
89 } 95 }
90 } 96 }
91 97
98 /// <summary>
99 /// Returns a mesh for this object and any dependents
100 /// </summary>
101 /// <returns>The mesh of this entity tree</returns>
92 public virtual Mesh getMesh() 102 public virtual Mesh getMesh()
93 { 103 {
94 Mesh mesh = new Mesh(); 104 Mesh mesh = new Mesh();