From 33b743375d9abd79479d69d4bb8002ddd65f6a9f Mon Sep 17 00:00:00 2001
From: Ben Parsons <9parsonsb@gmail.com>
Date: Sun, 19 Dec 2021 03:02:16 +1100
Subject: [PATCH] 4.0.0-alpha.3
Set lang version to C# 10
---
README.md | 2 +-
Raylib-cs/Raylib-cs.csproj | 5 +++--
Raylib-cs/types/Model.cs | 10 +++-------
3 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/README.md b/README.md
index 3e2245d..41d1127 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ Raylib-cs targets net5.0 and net6.0.
This is the prefered method to get started - The package is still new so please report any [issues](https://github.com/ChrisDill/Raylib-cs/issues).
```
-dotnet add package Raylib-cs --version 4.0.0-alpha.2
+dotnet add package Raylib-cs --version 4.0.0-alpha.3
```
[](https://www.nuget.org/packages/Raylib-cs/)
diff --git a/Raylib-cs/Raylib-cs.csproj b/Raylib-cs/Raylib-cs.csproj
index ce99a73..581ae40 100644
--- a/Raylib-cs/Raylib-cs.csproj
+++ b/Raylib-cs/Raylib-cs.csproj
@@ -7,12 +7,13 @@
true
false
$(NoWarn);1591
+ 10.0
4.0.0
- 4.0.0-alpha.2
- 4.0.0-alpha.2
+ 4.0.0-alpha.3
+ 4.0.0-alpha.3
Chris Dill, Raysan5
true
Zlib
diff --git a/Raylib-cs/types/Model.cs b/Raylib-cs/types/Model.cs
index 5a96b73..a3dc489 100644
--- a/Raylib-cs/types/Model.cs
+++ b/Raylib-cs/types/Model.cs
@@ -115,13 +115,9 @@ namespace Raylib_cs
readonly int boneCount;
- public FramePoses this[int index]
- {
- get
- {
- return new(framePoses[index], boneCount);
- }
- }
+ public FramePoses this[int index] => new(framePoses[index], boneCount);
+
+ public Transform this[int index1, int index2] => new FramePoses(framePoses[index1], boneCount)[index2];
internal FramePosesCollection(Transform** framePoses, int frameCount, int boneCount)
{