Add various engine systems to debug commands
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
/// <summary>
|
||||
/// The audio service used for music and sound effects playback.
|
||||
/// </summary>
|
||||
API_CLASS(Static) class FLAXENGINE_API Audio
|
||||
API_CLASS(Static, Attributes="DebugCommand") class FLAXENGINE_API Audio
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_NO_SPAWN(Audio);
|
||||
friend class AudioStreamingHandler;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
/// </summary>
|
||||
API_CLASS(NoSpawn) class AudioDevice : public ScriptingObject
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_NO_SPAWN(AudioDevice);
|
||||
DECLARE_SCRIPTING_TYPE_NO_SPAWN(AudioDevice);
|
||||
|
||||
explicit AudioDevice()
|
||||
: ScriptingObject(SpawnParams(Guid::New(), TypeInitializer))
|
||||
@@ -31,7 +31,6 @@ DECLARE_SCRIPTING_TYPE_NO_SPAWN(AudioDevice);
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// The device name.
|
||||
/// </summary>
|
||||
@@ -41,4 +40,9 @@ public:
|
||||
/// The internal device name used by the audio backend.
|
||||
/// </summary>
|
||||
StringAnsi InternalName;
|
||||
|
||||
String ToString() const override
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
/// <summary>
|
||||
/// Global engine variables container.
|
||||
/// </summary>
|
||||
API_CLASS(Static) class FLAXENGINE_API Globals
|
||||
API_CLASS(Static, Attributes="DebugCommand") class FLAXENGINE_API Globals
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_NO_SPAWN(Globals);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/// <summary>
|
||||
/// Helper class to access display information.
|
||||
/// </summary>
|
||||
API_CLASS(Static) class FLAXENGINE_API Screen
|
||||
API_CLASS(Static, Attributes="DebugCommand") class FLAXENGINE_API Screen
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_NO_SPAWN(Screen);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/// <summary>
|
||||
/// Game ticking and timing system.
|
||||
/// </summary>
|
||||
API_CLASS(Static) class FLAXENGINE_API Time
|
||||
API_CLASS(Static, Attributes="DebugCommand") class FLAXENGINE_API Time
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_NO_SPAWN(Time);
|
||||
friend class Engine;
|
||||
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
/// <summary>
|
||||
/// Gets the current gravity force.
|
||||
/// </summary>
|
||||
API_PROPERTY() static Vector3 GetGravity();
|
||||
API_PROPERTY(Attributes="DebugCommand") static Vector3 GetGravity();
|
||||
|
||||
/// <summary>
|
||||
/// Sets the current gravity force.
|
||||
|
||||
@@ -132,12 +132,12 @@ public:
|
||||
/// <summary>
|
||||
/// True if GPU profiling is enabled, otherwise false to disable events collecting and GPU timer queries usage. Can be changed during rendering.
|
||||
/// </summary>
|
||||
API_FIELD() static bool Enabled;
|
||||
API_FIELD(Attributes="DebugCommand") static bool Enabled;
|
||||
|
||||
/// <summary>
|
||||
/// True if GPU events are enabled (see GPUContext::EventBegin), otherwise false. Cannot be changed during rendering.
|
||||
/// </summary>
|
||||
API_FIELD() static bool EventsEnabled;
|
||||
API_FIELD(Attributes="DebugCommand") static bool EventsEnabled;
|
||||
|
||||
/// <summary>
|
||||
/// The current frame buffer to collect events.
|
||||
|
||||
@@ -127,7 +127,7 @@ public:
|
||||
/// <summary>
|
||||
/// Controls the engine profiler (CPU, GPU, etc.) usage.
|
||||
/// </summary>
|
||||
API_PROPERTY() static bool GetEnabled();
|
||||
API_PROPERTY(Attributes="DebugCommand") static bool GetEnabled();
|
||||
|
||||
/// <summary>
|
||||
/// Controls the engine profiler (CPU, GPU, etc.) usage.
|
||||
|
||||
@@ -33,7 +33,7 @@ DECLARE_SCRIPTING_TYPE_NO_SPAWN(Streaming);
|
||||
/// <summary>
|
||||
/// Gets streaming statistics.
|
||||
/// </summary>
|
||||
API_PROPERTY() static StreamingStats GetStats();
|
||||
API_PROPERTY(Attributes="DebugCommand") static StreamingStats GetStats();
|
||||
|
||||
/// <summary>
|
||||
/// Requests the streaming update for all the loaded resources. Use it to refresh content streaming after changing configuration.
|
||||
|
||||
@@ -38,5 +38,5 @@ API_CLASS(Static) class FLAXENGINE_API Screenshot
|
||||
/// Remember that downloading data from the GPU may take a while so screenshot may be taken one or more frames later due to latency.
|
||||
/// </summary>
|
||||
/// <param name="path">The custom file location. Use null or empty to use default one.</param>
|
||||
API_FUNCTION() static void Capture(const StringView& path = StringView::Empty);
|
||||
API_FUNCTION(Attributes="DebugCommand") static void Capture(const StringView& path = StringView::Empty);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user