public BaseKnuBot CreateKnuBot(string knuBotName, Identity mobId) { foreach (Assembly assembly in this.multipleDllList) { Type knubotType = assembly.GetTypes() .FirstOrDefault(x => (x.BaseType == typeof(BaseKnuBot)) && (x.Name == knuBotName)); if (knubotType != null) { BaseKnuBot bk = (BaseKnuBot)Activator.CreateInstance(knubotType, new object[] { mobId }); return(bk); } } return(null); }
public void SetKnuBot(BaseKnuBot knubot) { this.KnuBot = knubot; }