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