launch.sh 961 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. #
  3. # Copyright (c) Contributors to the Open 3D Engine Project.
  4. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. #
  6. # SPDX-License-Identifier: Apache-2.0 OR MIT
  7. #
  8. PROJECT_NAME=MultiplayerSample
  9. if [ "$PACKAGE_TYPE" = "server" ]
  10. then
  11. PACKAGE_FOLDER=$WORKSPACE/MPS_SERVER
  12. LAUNCHER_TARGET=ServerLauncher
  13. elif [ "$PACKAGE_TYPE" = "headless-server" ]
  14. then
  15. PACKAGE_FOLDER=$WORKSPACE/MPS_HEADLESS_SERVER
  16. LAUNCHER_TARGET=HeadlessServerLauncher
  17. elif [ "$PACKAGE_TYPE" = "launcher" ]
  18. then
  19. PACKAGE_FOLDER=$WORKSPACE/MPS_LAUNCHER
  20. LAUNCHER_TARGET=GameLauncher
  21. elif [ "$PACKAGE_TYPE" = "unified" ]
  22. then
  23. PACKAGE_FOLDER=$WORKSPACE/MPS_UNIFIED_LAUNCHER
  24. LAUNCHER_TARGET=UnifiedLauncher
  25. else
  26. echo "Invalid package type: $PACKAGE_TYPE"
  27. exit 1
  28. fi
  29. cd $PACKAGE_FOLDER
  30. ./${PROJECT_NAME}.${LAUNCHER_TARGET} --bg_ConnectToAssetProcessor=0 -r_fullscreen=$RUN_FULLSCREEN ${@:1}
  31. exit $?