Exemplo n.º 1
0
        public void SetTraitorsEnabled(YesNoMaybe enabled)
        {
            if (GameMain.Server != null)
            {
                GameMain.Server.TraitorsEnabled = enabled;
            }
#if CLIENT
            (traitorProbabilityText as GUITextBlock).Text = enabled.ToString();
#endif
        }
Exemplo n.º 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
        }