Rename Dagger to Voile.
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -36,13 +36,13 @@ msbuild.wrn
|
|||||||
# Visual Studio 2015
|
# Visual Studio 2015
|
||||||
.vs/
|
.vs/
|
||||||
|
|
||||||
# Dagger log files
|
# Voile log files
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
|
|
||||||
# FMOD binaries (I cannot distribute them)
|
# FMOD binaries (I cannot distribute them)
|
||||||
DaggerFramework.Fmod/*.nupkg
|
Voile.Fmod/*.nupkg
|
||||||
DaggerFramework.Fmod/runtimes/**/*.dll
|
Voile.Fmod/runtimes/**/*.dll
|
||||||
DaggerFramework.Fmod/runtimes/**/*.so*
|
Voile.Fmod/runtimes/**/*.so*
|
||||||
# !binaries/fmod/windows/WINDOWS_BINARIES_HERE
|
# !binaries/fmod/windows/WINDOWS_BINARIES_HERE
|
||||||
# !binaries/fmod/linux/LINUX_BINARIES_HERE
|
# !binaries/fmod/linux/LINUX_BINARIES_HERE
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<packageSources>
|
<packageSources>
|
||||||
<add key="FMOD Local" value=".\DaggerFramework.Fmod" />
|
<add key="FMOD Local" value=".\Voile.Fmod" />
|
||||||
</packageSources>
|
</packageSources>
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# Dagger Framework
|
# Voile
|
||||||
A work in progress game framework written in C#.
|
A work in progress game framework written in C#.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
using DaggerFramework.SceneGraph;
|
using Voile.SceneGraph;
|
||||||
|
|
||||||
namespace DaggerFramework;
|
namespace Voile;
|
||||||
|
|
||||||
public class Circle2d : Drawable2d
|
public class Circle2d : Drawable2d
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
using DaggerFramework;
|
using Voile;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
using DaggerFramework.Audio;
|
using Voile.Audio;
|
||||||
using DaggerFramework.Resources;
|
using Voile.Resources;
|
||||||
using DaggerFramework.SceneGraph;
|
using Voile.SceneGraph;
|
||||||
using DaggerFramework.Utils;
|
using Voile.Utils;
|
||||||
|
|
||||||
|
|
||||||
public class TestGame : Game
|
public class TestGame : Game
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="../DaggerFramework/DaggerFramework.csproj" />
|
<ProjectReference Include="../Voile/Voile.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using DaggerFramework;
|
using Voile;
|
||||||
using DaggerFramework.Extensions;
|
using Voile.Extensions;
|
||||||
using DaggerFramework.SceneGraph;
|
using Voile.SceneGraph;
|
||||||
using DaggerFramework.Utils;
|
using Voile.Utils;
|
||||||
|
|
||||||
public class TestPlayer : RectangleShape2d
|
public class TestPlayer : RectangleShape2d
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using DaggerFramework;
|
using Voile;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
using DaggerFramework.SceneGraph;
|
using Voile.SceneGraph;
|
||||||
using DaggerFramework.UI;
|
using Voile.UI;
|
||||||
using DaggerFramework.Utils;
|
using Voile.Utils;
|
||||||
|
|
||||||
public class UiLayer : Layer
|
public class UiLayer : Layer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using DaggerFramework;
|
using Voile;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
using DaggerFramework.SceneGraph;
|
using Voile.SceneGraph;
|
||||||
|
|
||||||
public class World : Drawable2d
|
public class World : Drawable2d
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ VisualStudioVersion = 17.0.31903.59
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestGame", "TestGame\TestGame.csproj", "{393AA04F-A0DE-42F2-AAEC-6B2DCFB7A852}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestGame", "TestGame\TestGame.csproj", "{393AA04F-A0DE-42F2-AAEC-6B2DCFB7A852}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DaggerFramework", "DaggerFramework\DaggerFramework.csproj", "{DA4FDEDC-AA81-4336-844F-562F9E763974}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Voile", "Voile\Voile.csproj", "{DA4FDEDC-AA81-4336-844F-562F9E763974}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Folder", "Solution Folder", "{EE70E84B-A471-4B5B-AE5B-B2712E6553EB}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Folder", "Solution Folder", "{EE70E84B-A471-4B5B-AE5B-B2712E6553EB}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework.Audio
|
namespace Voile.Audio
|
||||||
{
|
{
|
||||||
public abstract class AudioBackend : IDisposable
|
public abstract class AudioBackend : IDisposable
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public class AudioBus
|
public class AudioBus
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public class AudioEffect { }
|
public class AudioEffect { }
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework.Audio
|
namespace Voile.Audio
|
||||||
{
|
{
|
||||||
public class DummyAudioBackend : AudioBackend
|
public class DummyAudioBackend : AudioBackend
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using FMOD;
|
using FMOD;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace DaggerFramework.Audio
|
namespace Voile.Audio
|
||||||
{
|
{
|
||||||
public class FmodAudioBackend : AudioBackend
|
public class FmodAudioBackend : AudioBackend
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework.Audio
|
namespace Voile.Audio
|
||||||
{
|
{
|
||||||
public class SoundInstance
|
public class SoundInstance
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
// Based on https://github.com/ppr-game/PPR/blob/engine/PER.Util/src/Color.cs
|
// Based on https://github.com/ppr-game/PPR/blob/engine/PER.Util/src/Color.cs
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace DaggerFramework.Extensions
|
namespace Voile.Extensions
|
||||||
{
|
{
|
||||||
public static class Mat4Extensions
|
public static class Mat4Extensions
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace DaggerFramework.Extensions
|
namespace Voile.Extensions
|
||||||
{
|
{
|
||||||
public static class Vector2Extensions
|
public static class Vector2Extensions
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public abstract class Game
|
public abstract class Game
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public abstract class InputAction
|
public abstract class InputAction
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using DaggerFramework.Utils;
|
using Voile.Utils;
|
||||||
|
|
||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public abstract class InputHandler
|
public abstract class InputHandler
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Raylib_cs;
|
using Raylib_cs;
|
||||||
|
|
||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public class RaylibInputHandler : InputHandler
|
public class RaylibInputHandler : InputHandler
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework.Rendering
|
namespace Voile.Rendering
|
||||||
{
|
{
|
||||||
public class ColorRectShader : Shader
|
public class ColorRectShader : Shader
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using System.Runtime.InteropServices;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Raylib_cs;
|
using Raylib_cs;
|
||||||
|
|
||||||
namespace DaggerFramework.Rendering
|
namespace Voile.Rendering
|
||||||
{
|
{
|
||||||
public class RaylibRenderer : Renderer
|
public class RaylibRenderer : Renderer
|
||||||
{
|
{
|
||||||
@@ -110,7 +110,7 @@ namespace DaggerFramework.Rendering
|
|||||||
|
|
||||||
public override void ClearBackground(Color color)
|
public override void ClearBackground(Color color)
|
||||||
{
|
{
|
||||||
Raylib.ClearBackground(DaggerColorToRaylibColor(color));
|
Raylib.ClearBackground(VoileColorToRaylibColor(color));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override double GetFrameTime()
|
protected override double GetFrameTime()
|
||||||
@@ -120,7 +120,7 @@ namespace DaggerFramework.Rendering
|
|||||||
|
|
||||||
public override void DrawCircle(float radius, Color color)
|
public override void DrawCircle(float radius, Color color)
|
||||||
{
|
{
|
||||||
Raylib.DrawCircle((int)transformPosition.X, (int)transformPosition.Y, radius, DaggerColorToRaylibColor(color));
|
Raylib.DrawCircle((int)transformPosition.X, (int)transformPosition.Y, radius, VoileColorToRaylibColor(color));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void DrawTexture(Texture2d texture, Color tint)
|
public override void DrawTexture(Texture2d texture, Color tint)
|
||||||
@@ -130,7 +130,7 @@ namespace DaggerFramework.Rendering
|
|||||||
LoadTexture(texture);
|
LoadTexture(texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
Raylib.DrawTextureV(_texturePool[texture.Handle], transformPosition, DaggerColorToRaylibColor(tint));
|
Raylib.DrawTextureV(_texturePool[texture.Handle], transformPosition, VoileColorToRaylibColor(tint));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void DrawRectangle(Vector2 size, Color color)
|
public override void DrawRectangle(Vector2 size, Color color)
|
||||||
@@ -141,12 +141,12 @@ namespace DaggerFramework.Rendering
|
|||||||
y = transformPosition.Y,
|
y = transformPosition.Y,
|
||||||
width = size.X,
|
width = size.X,
|
||||||
height = size.Y
|
height = size.Y
|
||||||
}, transformOffset, transformRotation, DaggerColorToRaylibColor(color));
|
}, transformOffset, transformRotation, VoileColorToRaylibColor(color));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void DrawDebugText(string text, int fontSize, Color color)
|
public override void DrawDebugText(string text, int fontSize, Color color)
|
||||||
{
|
{
|
||||||
Raylib.DrawText(text, (int)transformPosition.X, (int)transformPosition.Y, fontSize, DaggerColorToRaylibColor(color));
|
Raylib.DrawText(text, (int)transformPosition.X, (int)transformPosition.Y, fontSize, VoileColorToRaylibColor(color));
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void DrawSdfText(string text, int fontSize, Color color)
|
public override void DrawSdfText(string text, int fontSize, Color color)
|
||||||
@@ -199,7 +199,7 @@ namespace DaggerFramework.Rendering
|
|||||||
CreateWindow(windowSettings);
|
CreateWindow(windowSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Raylib_cs.Color DaggerColorToRaylibColor(Color color)
|
private Raylib_cs.Color VoileColorToRaylibColor(Color color)
|
||||||
{
|
{
|
||||||
return new Raylib_cs.Color { r = (byte)Math.Round(color.R * 255f), g = (byte)Math.Round(color.G * 255f), b = (byte)Math.Round(color.B * 255f), a = (byte)Math.Round(color.A * 255f) };
|
return new Raylib_cs.Color { r = (byte)Math.Round(color.R * 255f), g = (byte)Math.Round(color.G * 255f), b = (byte)Math.Round(color.B * 255f), a = (byte)Math.Round(color.A * 255f) };
|
||||||
}
|
}
|
||||||
@@ -212,7 +212,7 @@ namespace DaggerFramework.Rendering
|
|||||||
}
|
}
|
||||||
|
|
||||||
var rayFont = _fontPool[font.Handle];
|
var rayFont = _fontPool[font.Handle];
|
||||||
Raylib.DrawTextPro(rayFont, text, transformPosition, transformOffset, transformRotation, font.Size, 0.0f, DaggerColorToRaylibColor(color));
|
Raylib.DrawTextPro(rayFont, text, transformPosition, transformOffset, transformRotation, font.Size, 0.0f, VoileColorToRaylibColor(color));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override int GetMonitorWidth(int monitorId)
|
protected override int GetMonitorWidth(int monitorId)
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace DaggerFramework.Rendering
|
namespace Voile.Rendering
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// An abstract class representing the graphics renderer.
|
/// An abstract class representing the graphics renderer.
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework.Rendering
|
namespace Voile.Rendering
|
||||||
{
|
{
|
||||||
public abstract class Shader
|
public abstract class Shader
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@ using System.Numerics;
|
|||||||
using Silk.NET.GLFW;
|
using Silk.NET.GLFW;
|
||||||
using Silk.NET.OpenGL;
|
using Silk.NET.OpenGL;
|
||||||
|
|
||||||
namespace DaggerFramework.Rendering
|
namespace Voile.Rendering
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A standard, OpenGL-based renderer.
|
/// A standard, OpenGL-based renderer.
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework;
|
namespace Voile;
|
||||||
|
|
||||||
public class Font : Resource
|
public class Font : Resource
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework.Resources;
|
namespace Voile.Resources;
|
||||||
|
|
||||||
public class FontLoader : IResourceLoader<Font>
|
public class FontLoader : IResourceLoader<Font>
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework.Resources
|
namespace Voile.Resources
|
||||||
{
|
{
|
||||||
public interface IResourceLoader<T> where T : Resource
|
public interface IResourceLoader<T> where T : Resource
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using StbVorbisSharp;
|
using StbVorbisSharp;
|
||||||
|
|
||||||
namespace DaggerFramework.Resources
|
namespace Voile.Resources
|
||||||
{
|
{
|
||||||
public class SoundLoader : IResourceLoader<Sound>
|
public class SoundLoader : IResourceLoader<Sound>
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using DaggerFramework.Resources;
|
using Voile.Resources;
|
||||||
using StbImageSharp;
|
using StbImageSharp;
|
||||||
|
|
||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public class Texture2dLoader : IResourceLoader<Texture2d>
|
public class Texture2dLoader : IResourceLoader<Texture2d>
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public abstract class Resource : IDisposable
|
public abstract class Resource : IDisposable
|
||||||
{
|
{
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
using DaggerFramework.Utils;
|
using Voile.Utils;
|
||||||
|
|
||||||
namespace DaggerFramework.Resources
|
namespace Voile.Resources
|
||||||
{
|
{
|
||||||
public class ResourceManager
|
public class ResourceManager
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework.Resources
|
namespace Voile.Resources
|
||||||
{
|
{
|
||||||
public interface IResourceSaver<T> where T : Resource
|
public interface IResourceSaver<T> where T : Resource
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public class Sound : Resource
|
public class Sound : Resource
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public class Texture2d : Resource
|
public class Texture2d : Resource
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph;
|
namespace Voile.SceneGraph;
|
||||||
|
|
||||||
public class Camera2d : Entity2d
|
public class Camera2d : Entity2d
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public class CircleShape2d : Drawable2d
|
public class CircleShape2d : Drawable2d
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public abstract class Drawable2d : Entity2d, IDrawable
|
public abstract class Drawable2d : Entity2d, IDrawable
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using DaggerFramework.Audio;
|
using Voile.Audio;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public class Entity
|
public class Entity
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public class Entity2d : Entity
|
public class Entity2d : Entity
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public interface IDrawable
|
public interface IDrawable
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
// TODO: add oneshot parameter.
|
// TODO: add oneshot parameter.
|
||||||
public class Particles2d : Drawable2d
|
public class Particles2d : Drawable2d
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph;
|
namespace Voile.SceneGraph;
|
||||||
|
|
||||||
public class RectangleShape2d : Drawable2d
|
public class RectangleShape2d : Drawable2d
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public class Sprite2d : Drawable2d
|
public class Sprite2d : Drawable2d
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public class Text2d : Drawable2d
|
public class Text2d : Drawable2d
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
using DaggerFramework.Utils;
|
using Voile.Utils;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public class EntityLayer : Layer
|
public class EntityLayer : Layer
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public interface IMainLoop
|
public interface IMainLoop
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using DaggerFramework.Resources;
|
using Voile.Resources;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public abstract class Layer : IDrawable
|
public abstract class Layer : IDrawable
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public class SerializedScene : Resource
|
public class SerializedScene : Resource
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using DaggerFramework.Resources;
|
using Voile.Resources;
|
||||||
using DaggerFramework.Utils;
|
using Voile.Utils;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public class SerializedSceneSaver : IResourceSaver<SerializedScene>
|
public class SerializedSceneSaver : IResourceSaver<SerializedScene>
|
||||||
{
|
{
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using DaggerFramework.Audio;
|
using Voile.Audio;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
using DaggerFramework.Resources;
|
using Voile.Resources;
|
||||||
|
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public class Scene : IMainLoop
|
public class Scene : IMainLoop
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.UI;
|
namespace Voile.UI;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A basic container for UI elements. All container's children will update their constraints based on container's sizing and positioning.
|
/// A basic container for UI elements. All container's children will update their constraints based on container's sizing and positioning.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace DaggerFramework.UI;
|
namespace Voile.UI;
|
||||||
|
|
||||||
public class MarginPanel : Panel
|
public class MarginPanel : Panel
|
||||||
{
|
{
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.UI;
|
namespace Voile.UI;
|
||||||
|
|
||||||
public class Panel : Container
|
public class Panel : Container
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace DaggerFramework.UI;
|
namespace Voile.UI;
|
||||||
|
|
||||||
public struct PanelStyle
|
public struct PanelStyle
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace DaggerFramework.UI;
|
namespace Voile.UI;
|
||||||
|
|
||||||
public class Rect
|
public class Rect
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.UI;
|
namespace Voile.UI;
|
||||||
|
|
||||||
public class TextLabel : UIElement
|
public class TextLabel : UIElement
|
||||||
{
|
{
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
using DaggerFramework.Utils;
|
using Voile.Utils;
|
||||||
|
|
||||||
namespace DaggerFramework.UI;
|
namespace Voile.UI;
|
||||||
|
|
||||||
public abstract class UIElement
|
public abstract class UIElement
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace DaggerFramework.UI;
|
namespace Voile.UI;
|
||||||
|
|
||||||
public class VerticalPanel : Panel
|
public class VerticalPanel : Panel
|
||||||
{
|
{
|
||||||
@@ -2,9 +2,9 @@ using System.Numerics;
|
|||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
using Raylib_cs;
|
using Raylib_cs;
|
||||||
|
|
||||||
using DaggerFramework.Rendering;
|
using Voile.Rendering;
|
||||||
|
|
||||||
namespace DaggerFramework.SceneGraph
|
namespace Voile.SceneGraph
|
||||||
{
|
{
|
||||||
public class ImGuiRenderLayer : Layer
|
public class ImGuiRenderLayer : Layer
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
namespace DaggerFramework.Utils
|
namespace Voile.Utils
|
||||||
{
|
{
|
||||||
public class Logger
|
public class Logger
|
||||||
{
|
{
|
||||||
@@ -10,7 +10,7 @@ namespace DaggerFramework.Utils
|
|||||||
public static string LogPath { get; set; } = "Logs/";
|
public static string LogPath { get; set; } = "Logs/";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Maximum amount of log files in a log folder. If it reaches the limit, all logs will be written to <c>dagger-latest.log</c> instead of creating a new one.
|
/// Maximum amount of log files in a log folder. If it reaches the limit, all logs will be written to <c>voile-latest.log</c> instead of creating a new one.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static int MaxLogFiles { get; set; } = 5;
|
public static int MaxLogFiles { get; set; } = 5;
|
||||||
|
|
||||||
@@ -32,11 +32,11 @@ namespace DaggerFramework.Utils
|
|||||||
var dirInfo = Directory.CreateDirectory(LogPath);
|
var dirInfo = Directory.CreateDirectory(LogPath);
|
||||||
var files = dirInfo.GetFiles();
|
var files = dirInfo.GetFiles();
|
||||||
|
|
||||||
string logName = $"dagger-{DateFormat}-{TimeFormat}.log".Replace(':', '.');
|
string logName = $"voile-{DateFormat}-{TimeFormat}.log".Replace(':', '.');
|
||||||
|
|
||||||
if (files.Length >= MaxLogFiles)
|
if (files.Length >= MaxLogFiles)
|
||||||
{
|
{
|
||||||
logName = "dagger-latest.log";
|
logName = "voile-latest.log";
|
||||||
}
|
}
|
||||||
|
|
||||||
var path = Path.Combine(LogPath, logName);
|
var path = Path.Combine(LogPath, logName);
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace DaggerFramework
|
namespace Voile
|
||||||
{
|
{
|
||||||
public static class MathUtils
|
public static class MathUtils
|
||||||
{
|
{
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="DaggerFramework.Fmod" Version="0.2.2.8" />
|
<PackageReference Include="Voile.Fmod" Version="0.2.2.8" />
|
||||||
<PackageReference Include="ImGui.NET" Version="1.89.4" />
|
<PackageReference Include="ImGui.NET" Version="1.89.4" />
|
||||||
<PackageReference Include="Raylib-cs" Version="4.2.0.1" />
|
<PackageReference Include="Raylib-cs" Version="4.2.0.1" />
|
||||||
<PackageReference Include="SharpFont" Version="4.0.1" />
|
<PackageReference Include="SharpFont" Version="4.0.1" />
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="BuildFmod" BeforeTargets="BeforeBuild">
|
<Target Name="BuildFmod" BeforeTargets="BeforeBuild">
|
||||||
<MSBuild Projects="../DaggerFramework.Fmod/DaggerFramework.Fmod.csproj" Targets="Restore;Build" />
|
<MSBuild Projects="../Voile.Fmod/Voile.Fmod.csproj" Targets="Restore;Build" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user