GodotComponentTest/scenes/WorldView.cs

31 lines
560 B
C#

using Godot;
using System;
public class WorldView : Spatial
{
// ui elements
// scene nodes
// resources
// exports
[Export] public NodePath World;
[Export] public Vector2 ViewCenterPlaneCoord;
// signals
// delegate void OnCoordClicked(Vector2 world_pos);
// other members
private World _world;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
_world = GetNode<World>(World);
}
public override void _Process(float delta)
{
}
}