refactor - remove unused m_children from EntityBase
parent
47353ffe48
commit
e6cd420f19
|
@ -34,8 +34,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
{
|
||||
public abstract class EntityBase
|
||||
{
|
||||
protected List<EntityBase> m_children;
|
||||
|
||||
protected Scene m_scene;
|
||||
|
||||
public Scene Scene
|
||||
|
@ -113,33 +111,17 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
Rotation = new Quaternion();
|
||||
m_name = "(basic entity)";
|
||||
m_rotationalvelocity = new LLVector3(0, 0, 0);
|
||||
m_children = new List<EntityBase>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public virtual void UpdateMovement()
|
||||
{
|
||||
foreach (EntityBase child in m_children)
|
||||
|
||||
{
|
||||
child.UpdateMovement();
|
||||
}
|
||||
}
|
||||
public abstract void UpdateMovement();
|
||||
|
||||
/// <summary>
|
||||
/// Performs any updates that need to be done at each frame. This function is overridable from it's children.
|
||||
/// Performs any updates that need to be done at each frame.
|
||||
/// </summary>
|
||||
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();
|
||||
}
|
||||
}
|
||||
public abstract void Update();
|
||||
|
||||
/// <summary>
|
||||
/// Copies the entity
|
||||
|
|
|
@ -1585,8 +1585,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
{
|
||||
part.UpdateMovement();
|
||||
}
|
||||
|
||||
base.UpdateMovement();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue