コード例 #1
0
        public override void Notify_WarIsStarted(War war)
        {
            base.Notify_WarIsStarted(war);

            if (WarUtility.WarWithPlayer(war))
            {
                EndComp();
            }
        }
コード例 #2
0
        public void Notify_WarIsStarted(War war)
        {
            if (!InWars.Contains(war))
            {
                InWars.Add(war);

                QuestsManager.Communications.Components.ForEach(x => x.Notify_WarIsStarted(war));

                if (WarUtility.WarWithPlayer(war))
                {
                    var nonAgressive = GetOption <CommOption_NonAgressionPact>();
                    if (nonAgressive != null)
                    {
                        nonAgressive.Signed = false;
                    }
                }
            }
        }