18 lines
485 B
C#
18 lines
485 B
C#
using System;
|
|
using BITKit.Core.Entites;
|
|
using Godot;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
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 BuildService(IServiceCollection serviceCollection){}
|
|
public virtual void OnStart(){}
|
|
public virtual void OnAwake(){}
|
|
}
|