2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-07-02 19:13:43 -04:00

BREAKING: Update names of methods, variables, and other elements (#181)

Breaking change to update naming across Raylib-cs to make it more consistent with C# naming conventions.

---------

Co-authored-by: MrScautHD <65916181+MrScautHD@users.noreply.github.com>
This commit is contained in:
2023-08-14 21:33:48 +01:00
committed by GitHub
parent 8edc98ad95
commit 23ed54cc24
30 changed files with 1280 additions and 1293 deletions

View File

@ -8,22 +8,22 @@ namespace Raylib_cs
[StructLayout(LayoutKind.Sequential)]
public partial struct Rectangle
{
public float x;
public float y;
public float width;
public float height;
public float X;
public float Y;
public float Width;
public float Height;
public Rectangle(float x, float y, float width, float height)
{
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.X = x;
this.Y = y;
this.Width = width;
this.Height = height;
}
public override string ToString()
{
return $"{{X:{x} Y:{y} Width:{width} Height:{height}}}";
return $"{{X:{X} Y:{Y} Width:{Width} Height:{Height}}}";
}
}
}