Exemple #1
0
        public ShowScreenData InvertAnimationDirection(Tanks.Lobby.ClientNavigation.API.AnimationDirection animationDirection)
        {
            switch (animationDirection)
            {
            case Tanks.Lobby.ClientNavigation.API.AnimationDirection.DOWN:
                this.AnimationDirection = Tanks.Lobby.ClientNavigation.API.AnimationDirection.UP;
                break;

            case Tanks.Lobby.ClientNavigation.API.AnimationDirection.UP:
                this.AnimationDirection = Tanks.Lobby.ClientNavigation.API.AnimationDirection.DOWN;
                break;

            case Tanks.Lobby.ClientNavigation.API.AnimationDirection.LEFT:
                this.AnimationDirection = Tanks.Lobby.ClientNavigation.API.AnimationDirection.RIGHT;
                break;

            case Tanks.Lobby.ClientNavigation.API.AnimationDirection.RIGHT:
                this.AnimationDirection = Tanks.Lobby.ClientNavigation.API.AnimationDirection.LEFT;
                break;

            default:
                break;
            }
            return(this);
        }
Exemple #2
0
 public ShowScreenData(Type screenType, Tanks.Lobby.ClientNavigation.API.AnimationDirection animationDirection = 4)
 {
     this.ScreenType         = screenType;
     this.AnimationDirection = animationDirection;
 }