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