Add project files.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user