feat(scripting): add field model editing and defaults support
This commit is contained in:
@@ -72,6 +72,7 @@ set(XCENGINE_SCRIPT_CORE_SOURCES
|
||||
set(XCENGINE_GAME_SCRIPT_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/GameScripts/BuiltinComponentProbe.cs
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/GameScripts/AddComponentProbe.cs
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/GameScripts/FieldMetadataProbe.cs
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/GameScripts/ScriptComponentApiProbe.cs
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/GameScripts/RuntimeGameObjectProbe.cs
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/GameScripts/HierarchyProbe.cs
|
||||
|
||||
17
managed/GameScripts/FieldMetadataProbe.cs
Normal file
17
managed/GameScripts/FieldMetadataProbe.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using XCEngine;
|
||||
|
||||
namespace Gameplay
|
||||
{
|
||||
public sealed class FieldMetadataProbe : MonoBehaviour
|
||||
{
|
||||
public int Health;
|
||||
public float Speed;
|
||||
public string Label = string.Empty;
|
||||
public Vector3 SpawnPoint;
|
||||
public GameObject Target;
|
||||
public Quaternion UnsupportedRotation;
|
||||
public static int SharedCounter;
|
||||
private bool HiddenFlag = true;
|
||||
public bool HiddenFlagMirror => HiddenFlag;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user