Skip to content

Commit

Permalink
Add CreatedWithGamepadEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed Jul 8, 2023
1 parent 71ae5f7 commit ae57f62
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Src/GBX.NET/Engines/Game/CGameCtnChallenge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public enum EditorMode
{
Advanced,
Simple,
HasGhostBlocks
HasGhostBlocks,
Gamepad = 4
}

/// <summary>
Expand Down Expand Up @@ -342,6 +343,12 @@ public int? AuthorScore
[NodeMember]
public bool HasGhostBlocks => (editor & EditorMode.HasGhostBlocks) != 0;

/// <summary>
/// If the map was made using the gamepad editor.
/// </summary>
[NodeMember]
public bool CreatedWithGamepadEditor => (editor & EditorMode.Gamepad) != 0;

/// <summary>
/// If the map is a multilap.
/// </summary>
Expand Down

0 comments on commit ae57f62

Please sign in to comment.