2025-04-22 17:16:40 +08:00

35 lines
849 B
C#

using System;
namespace TEngine
{
internal sealed class ShowEntityInfo : IMemory
{
private Type _entityLogicType;
private object _userData;
public ShowEntityInfo()
{
_entityLogicType = null;
_userData = null;
}
public Type EntityLogicType => _entityLogicType;
public object UserData => _userData;
public static ShowEntityInfo Create(Type entityLogicType, object userData)
{
ShowEntityInfo showEntityInfo = MemoryPool.Acquire<ShowEntityInfo>();
showEntityInfo._entityLogicType = entityLogicType;
showEntityInfo._userData = userData;
return showEntityInfo;
}
public void Clear()
{
_entityLogicType = null;
_userData = null;
}
}
}