Пример #1
0
 public void FinishedStartup()
 {
     m_currencyService = m_registry.RequestModuleInterface <IStarDustCurrencyService>();
     if (m_currencyService == null)
     {
         return;
     }
     m_registry.RegisterModuleInterface <IStarDustRegionPostHandler>(this);
     m_syncMessagePosterService   = m_registry.RequestModuleInterface <ISyncMessagePosterService>();
     m_syncMessageReceivedService = m_registry.RequestModuleInterface <ISyncMessageRecievedService>();
     m_syncMessageReceivedService.OnMessageReceived += m_syncMessageReceivedService_OnMessageReceived;
 }
Пример #2
0
 public void Start(IConfigSource config, IRegistryCore registry)
 {
     m_stardustservice = m_registry.RequestModuleInterface <IStarDustCurrencyService>() as DustCurrencyService;
 }