Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColonelChocomel committed Feb 24, 2022
1 parent 9b6780c commit e4fa02a
Show file tree
Hide file tree
Showing 21 changed files with 466 additions and 0 deletions.
67 changes: 67 additions & 0 deletions ACCBroadcaster.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32210.238
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ACCBroadcaster", "ACCBroadcaster\ACCBroadcaster.csproj", "{1A3251E8-5135-45D6-9FB1-F703998C4186}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ksBroadcastingNetwork", "D:\Program Files (x86)\Steam\steamapps\common\Assetto Corsa Competizione Dedicated Server\sdk\broadcasting\Sources\ksBroadcastingNetwork\ksBroadcastingNetwork.csproj", "{1EF9A746-3771-4052-B61B-04BDB3DC381A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|arm64 = Debug|arm64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|arm64 = Release|arm64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|Any CPU.ActiveCfg = Debug|x64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|Any CPU.Build.0 = Debug|x64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|arm64.ActiveCfg = Debug|arm64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|arm64.Build.0 = Debug|arm64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|arm64.Deploy.0 = Debug|arm64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|x64.ActiveCfg = Debug|x64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|x64.Build.0 = Debug|x64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|x64.Deploy.0 = Debug|x64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|x86.ActiveCfg = Debug|x86
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|x86.Build.0 = Debug|x86
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Debug|x86.Deploy.0 = Debug|x86
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|Any CPU.ActiveCfg = Release|x64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|Any CPU.Build.0 = Release|x64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|arm64.ActiveCfg = Release|arm64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|arm64.Build.0 = Release|arm64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|arm64.Deploy.0 = Release|arm64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|x64.ActiveCfg = Release|x64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|x64.Build.0 = Release|x64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|x64.Deploy.0 = Release|x64
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|x86.ActiveCfg = Release|x86
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|x86.Build.0 = Release|x86
{1A3251E8-5135-45D6-9FB1-F703998C4186}.Release|x86.Deploy.0 = Release|x86
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Debug|arm64.ActiveCfg = Debug|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Debug|arm64.Build.0 = Debug|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Debug|x64.ActiveCfg = Debug|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Debug|x64.Build.0 = Debug|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Debug|x86.ActiveCfg = Debug|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Debug|x86.Build.0 = Debug|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Release|Any CPU.Build.0 = Release|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Release|arm64.ActiveCfg = Release|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Release|arm64.Build.0 = Release|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Release|x64.ActiveCfg = Release|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Release|x64.Build.0 = Release|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Release|x86.ActiveCfg = Release|Any CPU
{1EF9A746-3771-4052-B61B-04BDB3DC381A}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D2587D65-9EDA-46F2-B710-E5B2B05022FA}
EndGlobalSection
EndGlobal
55 changes: 55 additions & 0 deletions ACCBroadcaster/ACCBroadcaster.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RootNamespace>ACCBroadcaster</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<PublishProfile>win10-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
<WindowsPackageType>None</WindowsPackageType>
</PropertyGroup>
<ItemGroup>
<None Remove="Views\Broadcasting\BroadcastingView.xaml" />
<None Remove="Views\MainView.xaml" />
</ItemGroup>

<ItemGroup>
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22000.194" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>

<!-- Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
Tools extension to be activated for this project even if the Windows App SDK Nuget
package has not yet been restored -->
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnablePreviewMsixTooling)'=='true'">
<ProjectCapability Include="Msix" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="D:\Program Files (x86)\Steam\steamapps\common\Assetto Corsa Competizione Dedicated Server\sdk\broadcasting\Sources\ksBroadcastingNetwork\ksBroadcastingNetwork.csproj" />
</ItemGroup>
<ItemGroup>
<Page Update="Views\MainView.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Page Update="Views\Broadcasting\BroadcastingView.xaml">
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
</Project>
15 changes: 15 additions & 0 deletions ACCBroadcaster/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Application
x:Class="ACCBroadcaster.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ACCBroadcaster">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
<!-- Other merged dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Other app resources here -->
</ResourceDictionary>
</Application.Resources>
</Application>
76 changes: 76 additions & 0 deletions ACCBroadcaster/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
using ACCBroadcaster.Views;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using Microsoft.UI.Xaml.Shapes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace ACCBroadcaster
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
public partial class App : Application
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
this.InitializeComponent();
}

/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs e)
{
m_window = new MainWindow();
Frame rootFrame = m_window.Content as Frame;
if (rootFrame == null)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
rootFrame.NavigationFailed += OnNavigationFailed;

// Place the frame in the current Window
m_window.Content = rootFrame;
}

if (rootFrame.Content == null)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame.Navigate(typeof(MainView), e.Arguments);
}
m_window.Title = "ACC Broadcaster";
m_window.Activate();
}

private void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
{
throw new NotImplementedException();
}

private Window m_window;
}
}
Binary file added ACCBroadcaster/Assets/LockScreenLogo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ACCBroadcaster/Assets/SplashScreen.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ACCBroadcaster/Assets/Square44x44Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ACCBroadcaster/Assets/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions ACCBroadcaster/Classes/ACCService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ksBroadcastingNetwork;

namespace ACCBroadcaster.Classes
{
public static class ACCService
{
public static ACCUdpRemoteClient client;
}
}
13 changes: 13 additions & 0 deletions ACCBroadcaster/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Window
x:Class="ACCBroadcaster.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ACCBroadcaster"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid>

</Grid>
</Window>
33 changes: 33 additions & 0 deletions ACCBroadcaster/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using ksBroadcastingNetwork;
using ACCBroadcaster.Views.Broadcasting;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace ACCBroadcaster
{
/// <summary>
/// An empty window that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainWindow : Window
{
public MainWindow()
{
this.InitializeComponent();
}
}
}
48 changes: 48 additions & 0 deletions ACCBroadcaster/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>

<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">

<Identity
Name="5f45371e-a1f6-42c9-9e2e-947686e9302a"
Publisher="CN=Evelyn"
Version="1.0.0.0" />

<Properties>
<DisplayName>ACCBroadcaster</DisplayName>
<PublisherDisplayName>Evelyn</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>

<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
</Dependencies>

<Resources>
<Resource Language="x-generate"/>
</Resources>

<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="ACCBroadcaster"
Description="ACCBroadcaster"
BackgroundColor="transparent"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" />
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>

<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
</Package>
7 changes: 7 additions & 0 deletions ACCBroadcaster/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"profiles": {
"ACCBroadcaster (Unpackaged)": {
"commandName": "Project"
}
}
}
14 changes: 14 additions & 0 deletions ACCBroadcaster/Views/Broadcasting/BroadcastingView.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Page
x:Class="ACCBroadcaster.Views.Broadcasting.BroadcastingView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:ACCBroadcaster.Views.Broadcasting"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<Grid>
<TextBlock Name="TextBlock1">Broadcasting View</TextBlock>
</Grid>
</Page>
34 changes: 34 additions & 0 deletions ACCBroadcaster/Views/Broadcasting/BroadcastingView.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Navigation;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using ACCBroadcaster.Classes;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.

namespace ACCBroadcaster.Views.Broadcasting
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class BroadcastingView : Page
{
public BroadcastingView()
{
this.InitializeComponent();
TextBlock1.Text = ACCService.client.MessageHandler.TrackMeters.ToString();
ACCService.client.MessageHandler.RequestHUDPage("Broadcasting");
}
}
}
Loading

0 comments on commit e4fa02a

Please sign in to comment.