//------------------------------------------------------------------------/ // Methods //------------------------------------------------------------------------/ public CombatTrigger Copy(CombatTrigger rhs) { var trigger = new CombatTrigger(); trigger.Inputs = rhs.Inputs.Clone(); return(trigger); }
object ICloneable.Clone() { var trigger = new CombatTrigger(); trigger.Inputs = Inputs.Clone(); return(trigger); }
//----------------------------------------------------------------------/ // Constructor //----------------------------------------------------------------------/ public Instance(CombatTrigger trigger, CombatController caster, Type type, float duration) { Trigger = trigger; Caster = caster; Duration = duration; Elapsed = 0.0f; //Trace.Script("Caster = " + caster.Name + ", Duration = " + Duration, caster); }