コード例 #1
0
 public override void OnReceiveLocal()
 {
     if (QSBCore.IsHost)
     {
         QSBWorldSync.AddFactReveal(FactId, SaveGame);
     }
 }
コード例 #2
0
 public override void OnReceiveLocal(bool server, RevealFactMessage message)
 {
     if (server)
     {
         QSBWorldSync.AddFactReveal(message.FactId, message.SaveGame, message.ShowNotification);
     }
 }
コード例 #3
0
 public override void OnReceiveRemote(bool server, RevealFactMessage message)
 {
     if (server)
     {
         QSBWorldSync.AddFactReveal(message.FactId, message.SaveGame, message.ShowNotification);
     }
     if (!QSBCore.HasWokenUp)
     {
         return;
     }
     Locator.GetShipLogManager().RevealFact(message.FactId, message.SaveGame, message.ShowNotification);
 }
コード例 #4
0
        public override void OnReceiveRemote()
        {
            if (QSBCore.IsHost)
            {
                QSBWorldSync.AddFactReveal(FactId, SaveGame);
            }

            if (!QSBWorldSync.AllObjectsReady)
            {
                return;
            }

            Locator.GetShipLogManager().RevealFact(FactId, SaveGame, ShowNotification);
        }