Esempio n. 1
0
        ///  <summary>
        ///
        ///  </summary>
        ///  <param name="initAtom"></param>
        ///  <param name="repository"></param>
        /// <param name="logger"></param>
        public ChannelLoader(DictionaryAtom initAtom, ChannelRepository repository, ILogWrapper logger)
            : base(1, "ChannelLoader")
        {
            _dbManager         = initAtom.GetObject("DatabaseManager").CastAs <IDatabaseManager>();
            _entityManager     = initAtom.GetObject("EntityManager").CastAs <IEntityManager>();
            _staticDataManager = initAtom.GetObject("StaticDataManager").CastAs <IStaticDataManager>();

            _repository = repository;
            _log        = logger;
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="initAtom"></param>
        public void OnInit(DictionaryAtom initAtom)
        {
            InitializationAtom = initAtom;

            Channels = new ChannelRepository();
            Helper.OnInit(InitializationAtom, Channels);

            Log.DebugFormat("{0} setup.", GetType());

            EventManager.RegisterListener(this, typeof(OnGameInitialize), Instance_OnGameInitialize);
        }
Esempio n. 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="initAtom"></param>
        /// <param name="repository"></param>
        public void OnInit(DictionaryAtom initAtom, ChannelRepository repository)
        {
            _repository = repository;

            _log.Debug("ChannelHelper initialized");
        }