Skip to content

Commit

Permalink
pls clang don't shit on me for this
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Auto committed Oct 20, 2023
1 parent 2cf909f commit bab838a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions docs/game_data/spel2.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions docs/src/includes/_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ Axis-Aligned-Bounding-Box, represents for example a hitbox of an entity or the s
Type | Name | Description
---- | ---- | -----------
[AABB](#AABB) | [new()](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=AABB) | Create a new axis aligned bounding box - defaults to all zeroes
[AABB](#AABB) | [new(AABB)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=AABB) | Copy an axis aligned bounding box
[AABB](#AABB) | [new(AABB other)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=AABB) | Copy an axis aligned bounding box
[AABB](#AABB) | [new(Vec2 top_left, Vec2 bottom_right)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=AABB) |
[AABB](#AABB) | [new(float left_, float top_, float right_, float bottom_)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=AABB) | Create a new axis aligned bounding box by specifying its values
float | [left](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=left) |
Expand Down Expand Up @@ -613,7 +613,7 @@ prinspect(string.format("%x"), color:get_ucolor()) -- 800000ff
Type | Name | Description
---- | ---- | -----------
[Color](#Color) | [new()](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Color) | Create a new color - defaults to black
[Color](#Color) | [new(Color)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Color) |
[Color](#Color) | [new(Color other)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Color) |
[Color](#Color) | [new(Color color)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Color) |
[Color](#Color) | [new(float r_, float g_, float b_, float a_)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Color) | Create a new color by specifying its values
float | [r](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=r) |
Expand Down Expand Up @@ -909,7 +909,7 @@ int | [row](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=row) |
Type | Name | Description
---- | ---- | -----------
[Triangle](#Triangle) | [new()](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Triangle) |
[Triangle](#Triangle) | [new(Triangle)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Triangle) |
[Triangle](#Triangle) | [new(Triangle other)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Triangle) |
[Triangle](#Triangle) | [new(Vec2 _a, Vec2 _b, Vec2 _c)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Triangle) |
[Triangle](#Triangle) | [new(float ax, float ay, float bx, float by, float cx, float cy)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Triangle) |
[Vec2](#Vec2) | [A](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=A) |
Expand All @@ -933,7 +933,7 @@ Simple object to hold pair of coordinates
Type | Name | Description
---- | ---- | -----------
[Vec2](#Vec2) | [new()](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Vec2) |
[Vec2](#Vec2) | [new(Vec2)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Vec2) |
[Vec2](#Vec2) | [new(Vec2 other)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Vec2) |
[Vec2](#Vec2) | [new(float x_, float y_)](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=Vec2) |
float | [x](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=x) |
float | [y](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=y) |
Expand Down
2 changes: 1 addition & 1 deletion src/game_api/color.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct Color
{
/// Create a new color - defaults to black
constexpr Color() = default;
constexpr Color(const Color&) = default;
constexpr Color(const Color& other) = default;
constexpr Color(Color&&) = default;
constexpr Color& operator=(const Color&) = default;
constexpr Color& operator=(Color&&) = default;
Expand Down
6 changes: 3 additions & 3 deletions src/game_api/math.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct Vec2
{
Vec2() = default;

Vec2(const Vec2&) = default;
Vec2(const Vec2& other) = default;

Vec2(float x_, float y_)
: x(x_), y(y_){};
Expand Down Expand Up @@ -144,7 +144,7 @@ struct AABB
AABB() = default;

/// Copy an axis aligned bounding box
AABB(const AABB&) = default;
AABB(const AABB& other) = default;
/// NoDoc
AABB(const std::tuple<float, float, float, float> tuple)
{
Expand Down Expand Up @@ -289,7 +289,7 @@ struct AABB
struct Triangle
{
Triangle() = default;
Triangle(const Triangle&) = default;
Triangle(const Triangle& other) = default;
Triangle(const Vec2& _a, const Vec2& _b, const Vec2& _c)
: A(_a), B(_b), C(_c){};
Triangle(float ax, float ay, float bx, float by, float cx, float cy)
Expand Down

0 comments on commit bab838a

Please sign in to comment.