mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
27 lines
No EOL
664 B
C#
27 lines
No EOL
664 B
C#
using System;
|
|
using Cosmos.Compiler.Builder;
|
|
|
|
namespace $safeprojectname$ {
|
|
class Program {
|
|
#region Cosmos Builder logic
|
|
// Most users wont touch this. This will call the Cosmos Build tool
|
|
[STAThread]
|
|
static void Main(string[] args) {
|
|
BuildUI.Run();
|
|
}
|
|
#endregion
|
|
|
|
// Main entry point of the kernel
|
|
public static void Init() {
|
|
|
|
//Boot your kernel
|
|
new Cosmos.Sys.Boot().Execute();
|
|
|
|
//Your custom implementation
|
|
Console.WriteLine("Welcome to COSMOS! You just booted C# code.");
|
|
|
|
//Shutdown
|
|
Cosmos.Sys.Deboot.ShutDown();
|
|
}
|
|
}
|
|
} |