rj-action-library/Runtime/App/App.cs

54 lines
720 B
C#
Raw Normal View History

using Godot;
using System.Collections.Generic;
namespace Rokojori
{
public enum AppPlatformOS
{
Windows,
MacOS,
iOS,
Android,
MetaHorizonOS,
Switch,
Switch2,
PS4,
PS5,
XBoxOne,
XBoxSeriesXS
}
public enum AppLauncher
{
Native,
Steam,
Epic,
Web
}
[Tool]
2025-08-31 06:05:39 +00:00
[GlobalClass,Icon("res://addons/rokojori_action_library/Icons/App.svg")]
public partial class App: Node
{
[Export]
public AppPlatformOS os;
[Export]
public AppLauncher launcher;
int _fps = 60;
2025-03-13 16:19:28 +00:00
public int x = 0;
[Export]
public int fps
{
get => _fps;
set { _fps = value; Engine.MaxFps = _fps; }
}
2025-08-31 06:05:39 +00:00
}
}