コード例 #1
0
        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);
        }
コード例 #2
0
 public void SetKnuBot(BaseKnuBot knubot)
 {
     this.KnuBot = knubot;
 }