예제 #1
0
        public void SetTraitorsEnabled(YesNoMaybe enabled)
        {
            if (GameMain.Server != null)
            {
                GameMain.Server.TraitorsEnabled = enabled;
            }
#if CLIENT
            (traitorProbabilityText as GUITextBlock).Text = enabled.ToString();
#endif
        }
예제 #2
0
        public void SetTraitorsEnabled(YesNoMaybe enabled)
        {
#if SERVER
            if (GameMain.Server != null)
            {
                GameMain.Server.ServerSettings.TraitorsEnabled = enabled;
            }
#endif
#if CLIENT
            (traitorProbabilityText as GUITextBlock).Text = TextManager.Get(enabled.ToString());
#endif
        }