Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit 534783e

Browse files
author
Alexis Huvier
authored
Feat/raylib (#1)
* Use only Raylib as dependency * Remove and Reset everything * Add README to Package * Create basic Math classes * Create internal class * Create Color.cs * Create basic Window * Update Demo * Add ImGui.NET to dependencies * Create SeImGui * Update Window.cs * Update Math classes * Create Input classes * Create DebugManager and InputManager * Create Tests * Update Demos * Update dotnet.yml * Update dotnet.yml * Update dotnet.yml * Add transform from Vec2 and Vec2I to Vector2 * Create TextureManager and FontManager * Update dotnet.yml * Update dotnet.yml * Update dotnet.yml * Update dotnet.yml * Update dotnet.yml * Update dotnet.yml * Update dotnet.yml * Update dotnet.yml * Update dotnet.yml * Update dotnet.yml * fix(ci): Produire un build pour le pack * Update dotnet.yml * Allow package validation to fail * Add more information to Package * Add XML Docs * Create LogLevel and Log functions * Rename InputExtensions to Extensions * Add Log Extensions * Add Log in TextureManager and FontManager * Init AudioDevice + Add SetMasterVolume function * Create MusicManager and SoundManager * Enable nullable * Create Components * Create Entity and Widget * Create Scene and PauseState * Manage Scene in Window * Fix nullable warning * Update Demo * Create CameraManager * Add Json Dependence * Create Lang Classes and LangManager * [TEST] Add Lang and LangManager Tests * Create Binary / Json Save + Manager + Tests * Create CameraManager tests * Create GetTransformedPosition in TransformComponent * Create TextComponent.cs * Update demo * Update Camera Manager * Create Physics Utils * Update README Updated to match feat/raylib branch * V1.0.0-Alpha * Move File Classes * Add physics in Scene * Beginning of PhysicsComponent * Finish PhysicsComponent * Create AutoComponent.cs * Create RectComponent.cs * Update Renderers * Rotation is now float * Fix Camera * Update Demo * Update Dependencies * Fix origin in RectComponent * Create SpriteSheetComponent * Update Demo * Add more logs * Create Control System * Beginning Particles * Finish Particle * Add docs to Particle * Create ParticleEmitter and ParticleComponent * Update SpriteSheetComponent.cs * Update 1.0.0
1 parent f3a8ceb commit 534783e

File tree

186 files changed

+5188
-5754
lines changed

Some content is hidden

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

186 files changed

+5188
-5754
lines changed

.github/workflows/dotnet.yml

Lines changed: 80 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,93 @@
44
name: .NET
55

66
on:
7+
workflow_dispatch: # Allow running the workflow manually from the GitHub UI
78
push:
8-
branches: [ "**" ]
9-
pull_request:
10-
branches: [ "master" ]
9+
branches:
10+
- '**' # Run the workflow when pushing to the main branch
11+
release:
12+
types:
13+
- published # Run the workflow when a new GitHub release is published
1114

12-
jobs:
13-
build:
15+
env:
16+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
17+
DOTNET_NOLOGO: true
18+
NuGetDirectory: ${{ github.workspace}}/nuget
1419

15-
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
shell: pwsh
1623

24+
jobs:
25+
create_nuget:
26+
runs-on: ubuntu-latest
1727
steps:
1828
- uses: actions/checkout@v3
29+
with:
30+
fetch-depth: 0
31+
1932
- name: Setup .NET
2033
uses: actions/setup-dotnet@v3
21-
with:
22-
dotnet-version: 6.0.x
23-
- name: Restore dependencies
34+
35+
- name: Restore
2436
run: dotnet restore
37+
2538
- name: Build
26-
run: dotnet build --no-restore
27-
- name: Test
28-
run: dotnet test --no-build --verbosity normal
39+
run: dotnet build SharpEngine/SharpEngine.csproj -c Release
40+
41+
- name: Pack Nuget
42+
run: dotnet pack SharpEngine/SharpEngine.csproj -c Release --no-build --output ${{ env.NuGetDirectory }}
43+
44+
- uses: actions/upload-artifact@v3
45+
with:
46+
name: nuget
47+
if-no-files-found: error
48+
retention-days: 7
49+
path: ${{ env.NuGetDirectory }}/*.nupkg
50+
51+
validate_nuget:
52+
runs-on: ubuntu-latest
53+
needs: [ create_nuget ]
54+
steps:
55+
- name: Setup .NET
56+
uses: actions/setup-dotnet@v3
57+
58+
- uses: actions/download-artifact@v3
59+
with:
60+
name: nuget
61+
path: ${{ env.NuGetDirectory }}
62+
63+
- name: Install nuget validator
64+
run: dotnet tool update Meziantou.Framework.NuGetPackageValidation.Tool --global
65+
66+
- name: Validate package
67+
run: meziantou.validate-nuget-package (Get-ChildItem "${{ env.NuGetDirectory }}/*.nupkg")
68+
continue-on-error: true
69+
70+
run_test:
71+
runs-on: ubuntu-latest
72+
steps:
73+
- uses: actions/checkout@v3
74+
- name: Setup .NET
75+
uses: actions/setup-dotnet@v3
76+
- name: Run tests
77+
run: dotnet test --configuration Release
78+
79+
deploy:
80+
if: github.event_name == 'release'
81+
runs-on: ubuntu-latest
82+
needs: [ validate_nuget, run_test ]
83+
steps:
84+
- uses: actions/download-artifact@v3
85+
with:
86+
name: nuget
87+
path: ${{ env.NuGetDirectory }}
88+
89+
- name: Setup .NET
90+
uses: actions/setup-dotnet@v3
91+
92+
- name: Publish NuGet package
93+
run: |
94+
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
95+
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
96+
}

Demos/Manamon/Component/OutOfWindowComponent.cs

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

Demos/Manamon/Data/DB/EnemyData.cs

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

Demos/Manamon/Data/DB/MapData.cs

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

Demos/Manamon/Data/DB/MonsterData.cs

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

Demos/Manamon/Data/DB/SortData.cs

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

Demos/Manamon/Data/Enemy.cs

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

Demos/Manamon/Data/Monster.cs

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

Demos/Manamon/Data/Player.cs

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

Demos/Manamon/Entity/EnemyEntity.cs

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

0 commit comments

Comments
 (0)