mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-22 03:59:35 +08:00
22 lines
526 B
C#
22 lines
526 B
C#
using Milimoe.FunGame.Core.Entity;
|
|
using Milimoe.FunGame.Core.Interface.Base;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
namespace Milimoe.FunGame.Core.Api.Factory
|
|
{
|
|
internal class InventoryFactory : IFactory<Inventory>
|
|
{
|
|
public Type EntityType => typeof(Inventory);
|
|
|
|
public Inventory Create()
|
|
{
|
|
return new Inventory(General.UnknownUserInstance);
|
|
}
|
|
|
|
public static Inventory Create(User user)
|
|
{
|
|
return new Inventory(user);
|
|
}
|
|
}
|
|
}
|