Beispiel #1
0
        public static PlayerEventRepository GetRepository(ContextMap contextMap, PlayerContextMap playerContextMap)
        {
            IEventConditionRepository eventConditionRepository = new EventConditionRepository(contextMap);
            IEventRepository          eventRepository          = EventRepository.GetRepository(contextMap);

            return(new PlayerEventRepository(eventRepository, eventConditionRepository, playerContextMap));
        }
Beispiel #2
0
        public static EventRepository GetRepository(ContextMap contextMap)
        {
            IEventConditionRepository eventConditionRepository = new EventConditionRepository(contextMap);
            IEventContentsRepository  eventContentsRepository  = new EventContentsRepository(contextMap);
            IRewardRepository         rewardRepository         = new RewardRepository(contextMap);

            return(new EventRepository(contextMap, eventConditionRepository, eventContentsRepository, rewardRepository));
        }