readme
This commit is contained in:
15
BITKit/Scripts/ECS/Core/EntityComponent.cs
Normal file
15
BITKit/Scripts/ECS/Core/EntityComponent.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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(){}
|
||||
}
|
Reference in New Issue
Block a user