public void Setup(LSAgent agent, int id) { Interfacer = AbilityInterfacer.FindInterfacer(this.GetType()); if (Interfacer == null) { throw new System.ArgumentException("This Ability of type " + this.GetType() + " has not been registered in database"); } this.MyAbilityCode = (AbilityCode)Interfacer.MappedCode; _agent = agent; ID = id; TemplateSetup (); OnSetup(); }
public static AbilityInterfacer FindInterfacer (AbilityCode code) { return CodeInterfacerMap [code]; }
public static AbilityInterfacer FindInterfacer(AbilityCode code) { return(CodeInterfacerMap [code]); }