Skip to content

Releases: Folleach/GeometryDashAPI

Some improvements

02 Oct 19:45
aac1bb1
Compare
Choose a tag to compare

Changes:

  • ModeratorType as an enum
  • LocalLevels now is IReadOnlyCollection

For more internal changes, see #28

Fix bug in serialization: protected properties

30 Sep 17:20
Compare
Choose a tag to compare

TypeDescriptor could not find protected properties.
Because of this ignored them

Add hex for color & naming fixes

21 Sep 16:37
Compare
Choose a tag to compare

Hex colors

Now you can create add a color like this

level.AddColor(new Color(11)
{
    Rgb = RgbColor.FromHex("#ffa500") // orange
});

And convert color to the hex too

foreach (var color in level.Colors)
    Console.WriteLine(RgbColor.ToHex(color.Rgb));

Naming fixes

UserPreview.Starts rename to UserPreview.Stars
Account.Starts rename to Starts.Stars

This is my mistake, they meant the stars initially, not the starts

Improvment for your tests

16 Sep 08:18
Compare
Choose a tag to compare

I've added IGameClient for GameClient.
This is necessary so that you can write tests, like this

public static class TestExtensions
{
    private static readonly ObjectSerializer serializer = new();

    public static Task<ServerResponse<T>> AsSuccessResponse<T>(this T value) where T : IGameObject
    {
        var data = serializer.Encode(value).ToString();
        return Task.FromResult(new ServerResponse<T>(HttpStatusCode.OK, data));
    }
}

public class Tests
{
    public void MyFavoriteTest()
    {
        var gameClient = A.Fake<IGameClient>();
        A.CallTo(() => gameClient.LoginAsync("test", "123")).Returns(new LoginResponse()
        {
            AccountId = 111,
            UserId = 333
        }.AsSuccessResponse());
    }
}

A.Fake it is FakeItEasy library, see documentation if you are interested

In game messages for GameClient

03 Sep 09:22
bf2088d
Compare
Choose a tag to compare

bugfix on .net framework 4.8

09 Aug 17:17
Compare
Choose a tag to compare

Fixes for compability with .net 4.8

07 Aug 19:22
Compare
Choose a tag to compare
Pre-release
v0.2.13-alpha

rollback runner OS to ubuntu for publish.yml

Add difficulties to level reponse

05 Jun 18:12
Compare
Choose a tag to compare
v0.2.12

add demon difficulty

use async in file stream

03 Jun 22:56
Compare
Choose a tag to compare
v0.2.11

use async in file stream

Added netstandard 2.0 again

03 Jun 20:32
Compare
Choose a tag to compare
v0.2.10

add netstandard 2.0 again...