mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Created basic entry point and application
This commit is contained in:
@@ -2,5 +2,3 @@ FileVersion = 1
|
||||
|
||||
[Project]
|
||||
Name = "GlitchyEngine"
|
||||
TargetType = "BeefLib"
|
||||
StartupObject = "GlitchyEngine.Program"
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace GlitchyEngine
|
||||
{
|
||||
public class Application
|
||||
{
|
||||
public void Run()
|
||||
{
|
||||
while(true) {}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace GlitchyEngine
|
||||
{
|
||||
class Program
|
||||
{
|
||||
[LinkName("CreateApplication")]
|
||||
static extern Application CreateApplication();
|
||||
|
||||
public static int Main(String[] args)
|
||||
{
|
||||
var app = CreateApplication();
|
||||
|
||||
app.Run();
|
||||
|
||||
delete app;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace GlitchyEngine
|
||||
{
|
||||
public static class Test
|
||||
{
|
||||
public static void Print()
|
||||
{
|
||||
Console.WriteLine("Hello from the Glitchy Engine!");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user