Files
iFactory.Godot/BITKit/Scripts/ECS/Core/EntityComponent.cs
CortexCore 37f46e6d16 readme
2023-07-18 16:42:33 +08:00

16 lines
363 B
C#

using System;
using BITKit.Core.Entites;
using Godot;
namespace BITKit;
/// <summary>
/// 基于Godot.Node3D的IEntityComponent实现
/// </summary>
public partial class EntityComponent : Node,IEntityComponent
{
public virtual Type BaseType => GetType();
public IEntity Entity { get; set; }
public virtual void OnStart(){}
public virtual void OnAwake(){}
}