示例#1
0
        public override EffectLayer Render(IGameState state)
        {
            EffectLayer bg_layer = new EffectLayer("Witcher3 - Background");

            if (state is GameState_Witcher3)
            {
                GameState_Witcher3 Witcher3state = state as GameState_Witcher3;

                Color bg_color = this.Properties.DefaultColor;

                switch (Witcher3state.Player.ActiveSign)
                {
                case WitcherSign.Aard:
                    bg_color = this.Properties.AardColor;
                    break;

                case WitcherSign.Igni:
                    bg_color = this.Properties.IgniColor;
                    break;

                case WitcherSign.Quen:
                    bg_color = this.Properties.QuenColor;
                    break;

                case WitcherSign.Yrden:
                    bg_color = this.Properties.YrdenColor;
                    break;

                case WitcherSign.Axii:
                    bg_color = this.Properties.AxiiColor;
                    break;

                case WitcherSign.None:
                    bg_color = Properties.DefaultColor;
                    break;
                }
                bg_layer.Fill(bg_color);
            }

            return(bg_layer);
        }
示例#2
0
 public override void ResetGameState()
 {
     _game_state = new GameState_Witcher3();
 }