private IAction CreateAction(ActionConfig actionConfig, DungeonLogic dungeonLogic) { Type actionClass = Type.GetType(actionConfig.ClassName()); IAction action = (IAction)actionClass.GetConstructor(Type.EmptyTypes).Invoke(new object[] { }); action.SetCookies(actionConfig.CookiesList()); action.SetEnv(defaultEnvironment); action.SetDungeonLogic(dungeonLogic); return(action); }