房间创建和进入相关逻辑和协议
This commit is contained in:
19
Hotfix/Map/Helper/MapUnitFactory.cs
Normal file
19
Hotfix/Map/Helper/MapUnitFactory.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Fantasy;
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace NB.Map;
|
||||
|
||||
public static class MapUnitFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建一个新的Player
|
||||
/// </summary>
|
||||
/// <param name="scene"></param>
|
||||
/// <param name="aId">ToKen令牌传递过来的aId</param>
|
||||
/// <returns></returns>
|
||||
public static MapUnit Create(Scene scene, long aId)
|
||||
{
|
||||
var player = Entity.Create<MapUnit>(scene, aId, true, true);
|
||||
return player;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user