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

Update structure types to record structs (#326)

This commit is contained in:
Samuel Gido 2026-02-17 15:09:17 -06:00 committed by GitHub
commit a31a4eb3ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 8 additions and 18 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?