FunGame-Core/Api/Factory/RoomFactory.cs
milimoe b4ce65a35b
更新 DataRequest, RunTime, GameMode; 添加 FunGameConfig (#33)
* 更新DataRequest GetResult<T>

* 更新了DataRequest的构造方法,以及RunTime类

* 更新RunTime控制器

* 从Desktop复制Config到Core;更新常量

* 添加GameMode
2023-06-19 09:07:20 +08:00

22 lines
710 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 RoomFactory : IFactory<Room>
{
public Type EntityType => typeof(Room);
public Room Create()
{
return RoomFactory.Create();
}
public static Room Create(long Id = 0, string Roomid = "-1", DateTime? CreateTime = null, User? RoomMaster = null, RoomType RoomType = RoomType.All, RoomState RoomState = RoomState.Created, string Password = "")
{
return new Room(Id, Roomid, CreateTime, RoomMaster, RoomType, RoomState, Password);
}
}
}