From 04ece84d6b3aa442ed7413f23b0daa30ff6d3ee8 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 18 Jul 2007 13:40:07 +0000 Subject: few small changes --- OpenSim/Region/Environment/Scenes/EntityBase.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes/EntityBase.cs') diff --git a/OpenSim/Region/Environment/Scenes/EntityBase.cs b/OpenSim/Region/Environment/Scenes/EntityBase.cs index fc75bdc..0d1e3fc 100644 --- a/OpenSim/Region/Environment/Scenes/EntityBase.cs +++ b/OpenSim/Region/Environment/Scenes/EntityBase.cs @@ -7,9 +7,10 @@ namespace OpenSim.Region.Environment.Scenes public abstract class EntityBase { public LLUUID m_uuid; - + protected List m_children; + protected Scene m_world; protected string m_name; @@ -88,7 +89,9 @@ namespace OpenSim.Region.Environment.Scenes m_velocity = new LLVector3(); Rotation = new Quaternion(); m_name = "(basic entity)"; + m_children = new List(); + } /// @@ -96,7 +99,9 @@ namespace OpenSim.Region.Environment.Scenes /// public virtual void updateMovement() { + foreach (EntityBase child in m_children) + { child.updateMovement(); } @@ -108,6 +113,7 @@ namespace OpenSim.Region.Environment.Scenes public virtual void Update() { // Do any per-frame updates needed that are applicable to every type of entity + foreach (EntityBase child in m_children) { child.Update(); -- cgit v1.1