feat: made sure the aspect ration fit a pixel art game and added useful addons
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m16s

This commit is contained in:
2025-06-27 15:19:12 +02:00
parent 4ec91c1277
commit 9a79715e47
550 changed files with 18812 additions and 0 deletions

View File

@ -0,0 +1,89 @@
using System;
using System.Collections.Generic;
using Godot;
namespace GodotStateCharts
{
/// <summary>
/// C# wrapper for the SerializedStateChartState Godot resource.
/// </summary>
public class SerializedStateChartState : ResourceWrapper
{
private SerializedStateChartState(Resource wrapped) : base(wrapped)
{
}
public static SerializedStateChartState Of(Resource resource)
{
if (resource.GetScript().As<Script>() is not GDScript gdScript
|| !gdScript.ResourcePath.EndsWith("serialized_state_chart_state.gd"))
{
throw new ArgumentException("Given resource is not a SerializedStateChartState.");
}
return new SerializedStateChartState(resource);
}
public string Name
{
get => Wrapped.Get("name").AsString();
set => Wrapped.Set("name", value);
}
public int StateType
{
get => Wrapped.Get("state_type").AsInt32();
set => Wrapped.Set("state_type", value);
}
public bool Active
{
get => Wrapped.Get("active").AsBool();
set => Wrapped.Set("active", value);
}
public string PendingTransitionName
{
get => Wrapped.Get("pending_transition_name").AsString();
set => Wrapped.Set("pending_transition_name", value);
}
public float PendingTransitionRemainingDelay
{
get => Wrapped.Get("pending_transition_remaining_delay").AsSingle();
set => Wrapped.Set("pending_transition_remaining_delay", value);
}
public float PendingTransitionInitialDelay
{
get => Wrapped.Get("pending_transition_initial_delay").AsSingle();
set => Wrapped.Set("pending_transition_initial_delay", value);
}
public List<SerializedStateChartState> Children
{
get
{
var wrappedChildren = Wrapped.Get("children").AsGodotArray();
var result = new List<SerializedStateChartState>();
// ReSharper disable once LoopCanBeConvertedToQuery
foreach (var item in wrappedChildren)
{
result.Add(Of(item.As<Resource>()));
}
return result;
}
set
{
var wrappedChildren = new Godot.Collections.Array();
foreach (var child in value)
{
wrappedChildren.Add(child.Wrapped);
}
Wrapped.Set("children", wrappedChildren);
}
}
}
}