Example #1
0
 public GroundObject()
 {
     ScriptEvents = new Dictionary <LuaEngine.EEntLuaEventTypes, ScriptEvent>();
     ObjectAnim   = new ObjAnimData();
     EntName      = "GroundObject" + ToString(); //!#FIXME : Give a default unique name please fix this when we have editor/template names!
     SetTriggerType(EEntityTriggerTypes.Action);
 }
Example #2
0
 public GroundObject(ObjAnimData anim, Rect collider, Loc drawOffset, bool solid, EEntityTriggerTypes triggerty, string entname)
 {
     ScriptEvents = new Dictionary <LuaEngine.EEntLuaEventTypes, ScriptEvent>();
     ObjectAnim   = anim;
     Collider     = collider;
     DrawOffset   = drawOffset;
     SetTriggerType(triggerty);
     EntName = entname;
 }
Example #3
0
 public TileData()
 {
     Name              = new LocalText();
     Desc              = new LocalText();
     Comment           = "";
     Anim              = new ObjAnimData();
     LandedOnTiles     = new PriorityList <SingleCharEvent>();
     InteractWithTiles = new PriorityList <SingleCharEvent>();
 }
Example #4
0
 protected GroundObject(GroundObject other) : base(other)
 {
     ScriptEvents = new Dictionary <LuaEngine.EEntLuaEventTypes, ScriptEvent>();
     foreach (LuaEngine.EEntLuaEventTypes ev in other.ScriptEvents.Keys)
     {
         ScriptEvents.Add(ev, (ScriptEvent)other.ScriptEvents[ev].Clone());
     }
     ObjectAnim = new ObjAnimData(other.ObjectAnim);
     DrawOffset = other.DrawOffset;
     Solid      = other.Solid;
 }
Example #5
0
        public GroundObject()
        {
            ScriptEvents   = new Dictionary <LuaEngine.EEntLuaEventTypes, ScriptEvent>();
            ObjectAnim     = new ObjAnimData();
            EntName        = "GroundObject" + ToString(); //!#FIXME : Give a default unique name please fix this when we have editor/template names!
            DevEntColoring = Color.Chartreuse;
            SetTriggerType(EEntityTriggerTypes.Action);

            //by default, objects never think
            ThinkType = EThink.Never;
        }
Example #6
0
        public GroundObject(ObjAnimData anim, Rect collider, Loc drawOffset, bool solid, EEntityTriggerTypes triggerty, string entname)
        {
            ScriptEvents = new Dictionary <LuaEngine.EEntLuaEventTypes, ScriptEvent>();
            ObjectAnim   = anim;
            Collider     = collider;
            DrawOffset   = drawOffset;
            SetTriggerType(triggerty);
            EntName        = entname;
            DevEntColoring = Color.Chartreuse;

            //by default, objects never think
            ThinkType = EThink.Never;
        }
Example #7
0
 public GroundObject(ObjAnimData anim, Rect collider, Loc drawOffset, bool contact, string entname)
     : this(anim, collider, drawOffset, true, contact ? EEntityTriggerTypes.Touch : EEntityTriggerTypes.Action, entname)
 {
 }
Example #8
0
 public GroundObject(ObjAnimData anim, Rect collider, EEntityTriggerTypes triggerty, string entname)
     : this(anim, collider, new Loc(), true, triggerty, entname)
 {
 }
Example #9
0
 public GroundObject(ObjAnimData anim, Rect collider, bool contact, string entname)
     : this(anim, collider, new Loc(), contact, entname)
 {
 }
Example #10
0
 public GroundAnim(ObjAnimData anim, Loc loc)
 {
     ObjectAnim = anim;
     MapLoc     = loc;
 }
Example #11
0
 public GroundAnim()
 {
     ObjectAnim = new ObjAnimData();
 }
Example #12
0
 public GroundAnim(GroundAnim other)
 {
     ObjectAnim = new ObjAnimData(other.ObjectAnim);
     MapLoc     = other.MapLoc;
 }