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!");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,5 +3,4 @@ Dependencies = {corlib = "*", GlitchyEngine = "*"}
|
||||
|
||||
[Project]
|
||||
Name = "Sandbox"
|
||||
TargetType = "BeefGUIApplication"
|
||||
StartupObject = "Sandbox.Program"
|
||||
StartupObject = "GlitchyEngine.Program"
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace Sandbox
|
||||
{
|
||||
class Program
|
||||
{
|
||||
public static int Main(String[] args)
|
||||
{
|
||||
GlitchyEngine.Test.Print();
|
||||
|
||||
Console.Read();
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using GlitchyEngine;
|
||||
|
||||
namespace Sandbox
|
||||
{
|
||||
class SandboxApp : Application
|
||||
{
|
||||
[Export, LinkName("CreateApplication")]
|
||||
public static Application CreateApplication()
|
||||
{
|
||||
return new SandboxApp();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user