Add project files.

This commit is contained in:
2026-07-28 15:11:50 -05:00
parent 634bbd3d2e
commit c8efc0f586
31 changed files with 779 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
using Raster3D.Engine;
using Raster3D.Engine.Impl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Raster3D.Engine.Graphics;
using Raster3D.Engine.Objects;
namespace Raster3D.App
{
internal class Game : CGameLoop
{
public override void exec(Engine.Engine engine)
{
Line line = new Line(new Vec2D(0, 30), new Vec2D(30,60), engine);
line._Draw();
}
}
}
+14
View File
@@ -0,0 +1,14 @@
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Raster3D.App.Interfaces
{
internal interface IDrawable
{
void draw(GameTime time);
}
}
+20
View File
@@ -0,0 +1,20 @@
using Raster3D.Engine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Raster3D.Engine.Graphics;
namespace Raster3D.App.Interfaces
{
internal interface IEntity
{
int id { get; set; }
Vec2D position { get; set; }
void tick();
void spawn();
void free();
}
}
+32
View File
@@ -0,0 +1,32 @@
using Raster3D.App.Interfaces;
using Raster3D.Engine;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Raster3D.Engine.Graphics;
namespace Raster3D.App
{
public class Player : IEntity
{
public int id { get; set; }
public Vec2D position { get; set; }
public void tick()
{
}
public void spawn()
{
}
public void free()
{
}
}
}
+29
View File
@@ -0,0 +1,29 @@
using Raster3D.Engine;
using Raster3D.Engine.Impl;
namespace Raster3D.App
{
public class App : IRunnable
{
public static Engine.Engine engine;
public string WindowTitle { get; set; } = "Raster3D Testing Application";
public App()
{
engine = new Engine.Engine(this, new Game());
}
public void Run(string[] args)
{
engine.Run();
}
static void Main(string[] args)
{
IRunnable app = new App();
app.Run(args);
}
}
}
+14
View File
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Raster3D\Raster3D.Engine.csproj" />
</ItemGroup>
</Project>