.
This commit is contained in:
14
PresenterNative/PresenterNative.csproj
Normal file
14
PresenterNative/PresenterNative.csproj
Normal file
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Engine\Engine.csproj"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
23
PresenterNative/src/Program.cs
Normal file
23
PresenterNative/src/Program.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Engine;
|
||||
using Serilog.Events;
|
||||
|
||||
namespace PresenterNative;
|
||||
|
||||
internal static class Program
|
||||
{
|
||||
public static void Main(string[] parArgs)
|
||||
{
|
||||
var engine = new EngineBuilder()
|
||||
.Headless(false)
|
||||
.Width(1280)
|
||||
.Height(720)
|
||||
.Title("Doom Deathmatch")
|
||||
.LogToConsole()
|
||||
.LogToFile(true, "log.txt")
|
||||
.LogLevel(LogEventLevel.Debug)
|
||||
.Presenter(parEngine => parEngine.Window)
|
||||
.Build();
|
||||
|
||||
engine.Run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user