//------------------------------------------------------------
// Game Framework
// Copyright © 2013-2021 loyalsoft. All rights reserved.
// Homepage: http://www.game7000.com/
// Feedback: http://www.game7000.com/
//------------------------------------------------------------
namespace GameFramework.Entity
{
///
/// 实体辅助器接口。
///
public interface IEntityHelper
{
///
/// 实例化实体。
///
/// 要实例化的实体资源。
/// 实例化后的实体。
object InstantiateEntity(object entityAsset);
///
/// 创建实体。
///
/// 实体实例。
/// 实体所属的实体组。
/// 用户自定义数据。
/// 实体。
IEntity CreateEntity(object entityInstance, IEntityGroup entityGroup, object userData);
///
/// 释放实体。
///
/// 要释放的实体资源。
/// 要释放的实体实例。
void ReleaseEntity(object entityAsset, object entityInstance);
}
}