using Godot; using Godot.Collections; namespace Cirno.Scripts.Actors._3D; [Tool] public partial class PlayerStartMarker3D : Marker3D { private readonly Vector3 _boxSize = new Vector3(0.5f, 0.8f, 0.5f); [Export] public int MarkerId { get; set; } = 0; public void _func_godot_apply_properties(Dictionary props) { //GroupName = (string)props["targetname"]; this.AddToGroup("SpawnMarkers"); MarkerId = props["id"].AsInt32(); } public override void _Ready() { this.AddToGroup("SpawnMarkers"); } public override void _Process(double delta) { if (!Engine.IsEditorHint()) return; #if !DISABLE_DD3D DebugDraw3D.DrawBox(this.GlobalPosition - _boxSize / 2, Quaternion.Identity, _boxSize, Colors.Green); #endif //DebugDraw3D.DrawSphere(this.GlobalPosition, 0.1f, Colors.Green); } }