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

Add .editorconfig and apply formatting

This commit is contained in:
Rgebee 2023-08-27 15:20:26 +01:00
commit 696955463f
32 changed files with 6831 additions and 6808 deletions

View file

@ -1,29 +1,28 @@
using System.Runtime.InteropServices;
namespace Raylib_cs
namespace Raylib_cs;
/// <summary>
/// Rectangle type
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct Rectangle
{
/// <summary>
/// Rectangle type
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct Rectangle
public float X;
public float Y;
public float Width;
public float Height;
public Rectangle(float x, float y, float width, float height)
{
public float X;
public float Y;
public float Width;
public float Height;
this.X = x;
this.Y = y;
this.Width = width;
this.Height = height;
}
public Rectangle(float x, float y, float width, float 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}}}";
}
public override string ToString()
{
return $"{{X:{X} Y:{Y} Width:{Width} Height:{Height}}}";
}
}