diff options
Diffstat (limited to 'OpenSim/OpenSim.World/Entity.cs')
-rw-r--r-- | OpenSim/OpenSim.World/Entity.cs | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/OpenSim/OpenSim.World/Entity.cs b/OpenSim/OpenSim.World/Entity.cs index 96e039a..b14beed 100644 --- a/OpenSim/OpenSim.World/Entity.cs +++ b/OpenSim/OpenSim.World/Entity.cs | |||
@@ -16,17 +16,22 @@ namespace OpenSim.world | |||
16 | public LLVector3 velocity; | 16 | public LLVector3 velocity; |
17 | public Quaternion rotation; | 17 | public Quaternion rotation; |
18 | protected List<Entity> children; | 18 | protected List<Entity> children; |
19 | 19 | protected LLVector3 m_pos; | |
20 | protected PhysicsActor _physActor; | ||
21 | protected World m_world; | ||
20 | protected string m_name; | 22 | protected string m_name; |
23 | |||
24 | /// <summary> | ||
25 | /// | ||
26 | /// </summary> | ||
21 | public virtual string Name | 27 | public virtual string Name |
22 | { | 28 | { |
23 | get { return m_name; } | 29 | get { return m_name; } |
24 | } | 30 | } |
25 | 31 | ||
26 | protected LLVector3 m_pos; | 32 | /// <summary> |
27 | protected PhysicsActor _physActor; | 33 | /// |
28 | protected World m_world; | 34 | /// </summary> |
29 | |||
30 | public virtual LLVector3 Pos | 35 | public virtual LLVector3 Pos |
31 | { | 36 | { |
32 | get | 37 | get |
@@ -76,6 +81,9 @@ namespace OpenSim.world | |||
76 | children = new List<Entity>(); | 81 | children = new List<Entity>(); |
77 | } | 82 | } |
78 | 83 | ||
84 | /// <summary> | ||
85 | /// | ||
86 | /// </summary> | ||
79 | public virtual void addForces() | 87 | public virtual void addForces() |
80 | { | 88 | { |
81 | foreach (Entity child in children) | 89 | foreach (Entity child in children) |
@@ -111,11 +119,17 @@ namespace OpenSim.world | |||
111 | return mesh; | 119 | return mesh; |
112 | } | 120 | } |
113 | 121 | ||
122 | /// <summary> | ||
123 | /// Called at a set interval to inform entities that they should back themsleves up to the DB | ||
124 | /// </summary> | ||
114 | public virtual void BackUp() | 125 | public virtual void BackUp() |
115 | { | 126 | { |
116 | 127 | ||
117 | } | 128 | } |
118 | 129 | ||
130 | /// <summary> | ||
131 | /// Infoms the entity that the land (heightmap) has changed | ||
132 | /// </summary> | ||
119 | public virtual void LandRenegerated() | 133 | public virtual void LandRenegerated() |
120 | { | 134 | { |
121 | 135 | ||