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); }
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; }
public TileData() { Name = new LocalText(); Desc = new LocalText(); Comment = ""; Anim = new ObjAnimData(); LandedOnTiles = new PriorityList <SingleCharEvent>(); InteractWithTiles = new PriorityList <SingleCharEvent>(); }
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; }
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; }
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; }
public GroundObject(ObjAnimData anim, Rect collider, Loc drawOffset, bool contact, string entname) : this(anim, collider, drawOffset, true, contact ? EEntityTriggerTypes.Touch : EEntityTriggerTypes.Action, entname) { }
public GroundObject(ObjAnimData anim, Rect collider, EEntityTriggerTypes triggerty, string entname) : this(anim, collider, new Loc(), true, triggerty, entname) { }
public GroundObject(ObjAnimData anim, Rect collider, bool contact, string entname) : this(anim, collider, new Loc(), contact, entname) { }
public GroundAnim(ObjAnimData anim, Loc loc) { ObjectAnim = anim; MapLoc = loc; }
public GroundAnim() { ObjectAnim = new ObjAnimData(); }
public GroundAnim(GroundAnim other) { ObjectAnim = new ObjAnimData(other.ObjectAnim); MapLoc = other.MapLoc; }