26 lines
554 B
C#
26 lines
554 B
C#
using Fantasy;
|
|
using Fantasy.Async;
|
|
using Fantasy.Entitas.Interface;
|
|
|
|
namespace NB.Map;
|
|
|
|
public class MapRoomDestroySystem : DestroySystem<MapRoom>
|
|
{
|
|
protected override void Destroy(MapRoom self)
|
|
{
|
|
self.Map = 0;
|
|
self.Password = string.Empty;
|
|
self.CreateTime = 0;
|
|
self.Owner = 0;
|
|
self.Units.Clear();
|
|
}
|
|
}
|
|
|
|
public static class MapRoomSystem
|
|
{
|
|
public static async FTask<uint> Enter(this MapRoom self, long unitId)
|
|
{
|
|
await FTask.CompletedTask;
|
|
return ErrorCode.Successful;
|
|
}
|
|
} |