GFramework/GFramework.Godot/pool/IPoolableNode.cs
GwWuYou 5d623462ce feat(pool): 添加对象池系统基础架构
- 实现了抽象对象池系统支持基于键值的对象池管理
- 定义了对象池系统接口和可池化对象接口规范
- 提供了获取、释放和清空对象池的核心功能
- 添加了Godot节点专用的对象池系统抽象类
- 实现了对象在池中生命周期管理的回调机制
2026-01-11 21:07:23 +08:00

17 lines
457 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using GFramework.Core.Abstractions.pool;
using Godot;
namespace GFramework.Godot.pool;
/// <summary>
/// 可池化节点接口继承自IPoolableObject接口
/// 用于定义可以被对象池管理的Godot节点类型
/// </summary>
public interface IPoolableNode : IPoolableObject
{
/// <summary>
/// 将当前对象转换为Node类型
/// </summary>
/// <returns>返回当前对象对应的Node实例</returns>
Node AsNode();
}