From b3844c1f7348b4296b5ab1df258935d7f971e412 Mon Sep 17 00:00:00 2001 From: gareth Date: Wed, 7 Mar 2007 18:48:38 +0000 Subject: Deleted old trunk code --- src/world/Entity.cs | 65 ----------------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 src/world/Entity.cs (limited to 'src/world/Entity.cs') diff --git a/src/world/Entity.cs b/src/world/Entity.cs deleted file mode 100644 index 7880a46..0000000 --- a/src/world/Entity.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Axiom.MathLib; -using libsecondlife; -using OpenSim.types; -using libsecondlife.Packets; - -namespace OpenSim.world -{ - public class Entity - { - protected libsecondlife.LLUUID uuid; - protected uint localid; - public LLVector3 position; - public LLVector3 velocity; - protected Quaternion rotation; - protected string name; - protected List children; - public bool needupdate; - - public Entity() - { - uuid = new libsecondlife.LLUUID(); - localid = 8880000 + (OpenSim_Main.local_world._localNumber++); // FIXME - race condition! - position = new LLVector3(); - velocity = new LLVector3(); - rotation = new Quaternion(); - name = "(basic entity)"; - children = new List(); - } - - public virtual void update() { - // Do any per-frame updates needed that are applicable to every type of entity - foreach (Entity child in children) - { - if(child.needupdate) - child.update(); - } - this.needupdate=false; - } - - public virtual ImprovedTerseObjectUpdatePacket.ObjectDataBlock CreateTerseBlock() { - return null; - } - - - public virtual string getName() - { - return name; - } - - public virtual Mesh getMesh() - { - Mesh mesh = new Mesh(); - - foreach (Entity child in children) - { - mesh += child.getMesh(); - } - - return mesh; - } - } -} -- cgit v1.1