Skip to content

Commit c53bfdc

Browse files
author
Mathew O'Dwyer
committed
Wooot
1 parent 0ee7ce0 commit c53bfdc

File tree

145 files changed

+3091
-1112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+3091
-1112
lines changed

src/Directory.Packages.props

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<Project>
22
<ItemGroup>
33
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="[9.0.0,)" />
4-
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.6" />
4+
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="[9.0.6,)" />
5+
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="[9.0.6,)" />
6+
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="[9.0.6,)" />
57
<PackageVersion Include="KinsonDigital.CASL" Version="[1.0.0-preview.21,)" />
6-
<PackageVersion Include="System.IO.Abstractions" Version="[22.0.14,)" />
8+
<PackageVersion Include="System.IO.Abstractions" Version="21.3.1" />
79
<PackageVersion Include="SixLabors.ImageSharp" Version="[3.1.10,)" />
810
<PackageVersion Include="OpenTK" Version="[4.8.2,)" />
911
<PackageVersion Include="AutoMapper.Extensions.EnumMapping" Version="[4.1.0,)" />
@@ -15,4 +17,4 @@
1517
<PackageVersion Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="[9.0.5,)" />
1618
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="[9.0.5,)" />
1719
</ItemGroup>
18-
</Project>
20+
</Project>

src/ExampleGame/ExampleGame.csproj

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/FinalEngine.Audio.OpenAL/Extensions/EngineBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace FinalEngine.Audio.Extensions;
77
using FinalEngine.Audio.Factories;
88
using FinalEngine.Audio.Loaders;
99
using FinalEngine.Hosting;
10-
using FinalEngine.Resources;
10+
using FinalEngine.Resources.Extensions;
1111
using Microsoft.Extensions.DependencyInjection;
1212

1313
public static class EngineBuilderExtensions
@@ -17,7 +17,7 @@ public static IEngineBuilder UseCasl(this IEngineBuilder builder)
1717
ArgumentNullException.ThrowIfNull(builder);
1818

1919
builder.Services.AddSingleton<ICaslAudioFactory, CaslAudioFactory>();
20-
builder.Services.AddSingleton<ResourceLoaderBase<ISound>, CaslSoundResourceLoader>();
20+
builder.Services.AddResourceLoader<ISound, CaslSoundResourceLoader>();
2121

2222
return builder;
2323
}

src/FinalEngine.Audio.OpenAL/FinalEngine.Audio.CASL.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
</ItemGroup>
1111

1212
<ItemGroup>
13-
<ProjectReference Include="..\FinalEngine.Hosting\FinalEngine.Hosting.csproj" />
13+
<ProjectReference Include="..\FinalEngine\FinalEngine.csproj" />
1414
</ItemGroup>
1515
</Project>

src/FinalEngine.Audio.OpenAL/Loaders/CaslSoundResourceLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public CaslSoundResourceLoader(IFileSystem fileSystem, ICaslAudioFactory factory
2222
this.factory = factory ?? throw new ArgumentNullException(nameof(factory));
2323
}
2424

25-
protected override ISound LoadResource(string filePath)
25+
public override ISound LoadResource(string filePath)
2626
{
2727
ArgumentException.ThrowIfNullOrWhiteSpace(filePath);
2828

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<Project Sdk="Microsoft.NET.Sdk" />

src/FinalEngine.Audio/ISound.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// <copyright file="ISound.cs" company="Software Antics">
2+
// Copyright (c) Software Antics. All rights reserved.
3+
// </copyright>
4+
5+
namespace FinalEngine.Audio;
6+
7+
using FinalEngine.Resources;
8+
9+
public interface ISound : IResource
10+
{
11+
bool IsLooping { get; set; }
12+
13+
float Volume { get; set; }
14+
15+
void Pause();
16+
17+
void Play();
18+
19+
void Reset();
20+
}

src/FinalEngine.Hosting/Extensions/ConfigurationBuilderExtensions.cs

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/FinalEngine.Hosting/Extensions/ServiceCollectionExtensions.cs

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/FinalEngine.Hosting/FinalEngine.Hosting.csproj

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<Project Sdk="Microsoft.NET.Sdk" />
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// <copyright file="IKeyboard.cs" company="Software Antics">
2+
// Copyright (c) Software Antics. All rights reserved.
3+
// </copyright>
4+
5+
namespace FinalEngine.Input.Keyboards;
6+
7+
public interface IKeyboard
8+
{
9+
bool IsAltDown { get; }
10+
11+
bool IsCapsLocked { get; }
12+
13+
bool IsControlDown { get; }
14+
15+
bool IsNumLocked { get; }
16+
17+
bool IsShiftDown { get; }
18+
19+
bool IsKeyDown(Key key);
20+
21+
bool IsKeyPressed(Key key);
22+
23+
bool IsKeyReleased(Key key);
24+
25+
internal void Update();
26+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// <copyright file="IKeyboardDevice.cs" company="Software Antics">
2+
// Copyright (c) Software Antics. All rights reserved.
3+
// </copyright>
4+
5+
namespace FinalEngine.Input.Keyboards;
6+
7+
using System;
8+
9+
public interface IKeyboardDevice : IDisposable
10+
{
11+
event EventHandler<KeyEventArgs>? KeyDown;
12+
13+
event EventHandler<KeyEventArgs>? KeyUp;
14+
}

0 commit comments

Comments
 (0)