You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
594 B
18 lines
594 B
using Babushka.scripts.CSharp.Common.Farming;
|
|
using Babushka.scripts.CSharp.GameEntity.Management;
|
|
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.GameEntity.Entities;
|
|
|
|
public class VesnaEntity : PositionalEntity
|
|
{
|
|
public override string EntityType => OWN_TYPE_NAME;
|
|
public const string OWN_TYPE_NAME = "VesnaEntity";
|
|
|
|
public override void InstantiateEntityNode(Node2D parent)
|
|
{
|
|
var node = (VesnaBehaviour2D) EntityManager.Instance.NodeCreator.InstantiateNode(OWN_TYPE_NAME);
|
|
node.player2d.GlobalPosition = position;
|
|
parent.AddChild(node);
|
|
}
|
|
} |