Exemple #1
0
        public static void Main(string[] args)
        {
            DesktopPlatform.Start();

            Task.Run(async() => await new MainClass().Run(args)).Wait();

            DesktopPlatform.Finish();
        }
Exemple #2
0
        public static void Main(string[] args)
        {
            DesktopPlatform.Start();

            GoogleCalendarService google = new GoogleCalendarService(new TestConfig());

            DesktopPlatform.Finish();
        }
    public override void GetFilesToDeployOrStage(ProjectParams Params, DeploymentContext SC)
    {
        SC.bIsCombiningMultiplePlatforms = true;
        string SavedPlatformDir = SC.PlatformDir;

        foreach (UnrealTargetPlatform DesktopPlatform in GetStagePlatforms())
        {
            Platform SubPlatform = Platform.GetPlatform(DesktopPlatform);
            SC.PlatformDir = DesktopPlatform.ToString();
            SubPlatform.GetFilesToDeployOrStage(Params, SC);
        }
        SC.PlatformDir = SavedPlatformDir;
        SC.bIsCombiningMultiplePlatforms = false;
    }
Exemple #4
0
    public override void Package(ProjectParams Params, DeploymentContext SC, int WorkingCL)
    {
        SC.bIsCombiningMultiplePlatforms = true;
        string SavedPlatformDir = SC.PlatformDir;

        foreach (UnrealTargetPlatform DesktopPlatform in GetStagePlatforms())
        {
            Platform SubPlatform = Platform.Platforms[DesktopPlatform];
            SC.PlatformDir = DesktopPlatform.ToString();
            SubPlatform.Package(Params, SC, WorkingCL);
        }
        SC.PlatformDir = SavedPlatformDir;
        SC.bIsCombiningMultiplePlatforms = false;
    }
    public override void ProcessArchivedProject(ProjectParams Params, DeploymentContext SC)
    {
        Console.WriteLine("***************************** PROCESSING ARCHIVED PROJECT ****************");

        SC.bIsCombiningMultiplePlatforms = true;
        string SavedPlatformDir = SC.PlatformDir;

        foreach (UnrealTargetPlatform DesktopPlatform in GetStagePlatforms())
        {
            Platform SubPlatform = Platform.GetPlatform(DesktopPlatform);
            SC.PlatformDir = DesktopPlatform.ToString();
            SubPlatform.ProcessArchivedProject(Params, SC);
        }
        SC.PlatformDir = SavedPlatformDir;
        SC.bIsCombiningMultiplePlatforms = false;

        Console.WriteLine("***************************** DONE PROCESSING ARCHIVED PROJECT ****************");
    }
Exemple #6
0
        public void Run()
        {
            var platform = new DesktopPlatform();

            WindowCreateInfo wci = new WindowCreateInfo
            {
                X = 100,
                Y = 100,
                WindowWidth = 1280,
                WindowHeight = 720,
                WindowTitle = "Tortuga Demo"
            };

            GraphicsDeviceOptions options = new GraphicsDeviceOptions(
                debug: false,
                swapchainDepthFormat: PixelFormat.R16_UNorm,
                syncToVerticalBlank: true,
                resourceBindingModel: ResourceBindingModel.Improved,
                preferDepthRangeZeroToOne: true,
                preferStandardClipSpaceYDirection: true);
            #if DEBUG
            options.Debug = true;
            #endif

            _window = platform.CreateWindow(wci, options, GraphicsBackend.Vulkan) as DesktopWindow;
            _window.GraphicsDeviceCreated += LoadResources;
            _window.Tick += Update;
            _window.Resized += _window_Resized;

            _viewport = new ViewportManager(1280, 720);

            _cameraSpaceInputTracker = new TransformedInputTracker(_window.InputTracker);
            _cameraSpaceGameInputTracker = new ActiveInputTracker(_cameraSpaceInputTracker);

            _client.Start();
            _client.Connect(new IPEndPoint(IPAddress.Loopback, 5674));

            _window.Run();
        }