2022-12-28 16:22:53 +01:00
|
|
|
using Godot;
|
|
|
|
using System;
|
|
|
|
|
2023-02-12 16:30:56 +01:00
|
|
|
public class WorldInfoComponent : Component
|
2022-12-28 16:22:53 +01:00
|
|
|
{
|
|
|
|
[Export] public NodePath World;
|
2023-05-20 12:27:30 +02:00
|
|
|
|
2022-12-28 16:22:53 +01:00
|
|
|
public TileWorld TileWorld;
|
|
|
|
|
|
|
|
// Called when the node enters the scene tree for the first time.
|
|
|
|
public override void _Ready()
|
|
|
|
{
|
|
|
|
TileWorld = GetNode<TileWorld>(World);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void SetWorld(TileWorld tileWorld)
|
|
|
|
{
|
|
|
|
TileWorld = tileWorld;
|
|
|
|
}
|
|
|
|
}
|