Watch
2
0
Fork
You've already forked raylib-cs
0

Update simple structs to record structs

This commit is contained in:
Samuel Jackson Gido 2026-02-14 17:42:55 -06:00
commit 8737aa73a9
7 changed files with 8 additions and 8 deletions

View file

@ -7,7 +7,7 @@ namespace Raylib_cs;
/// Ray, ray for raycasting
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct Ray
public record struct Ray
{
/// <summary>
/// Ray position (origin)
@ -30,7 +30,7 @@ public struct Ray
/// Raycast hit information
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct RayCollision
public record struct RayCollision
{
/// <summary>
/// Did the ray hit something?