JisolGame/JNFrame2/Assets/JNGame/Sync/App/Tile/JNSSTileServerService.MasterSlave.cs

20 lines
507 B
C#
Raw Normal View History

2024-08-31 15:35:12 +08:00
namespace JNGame.Sync.State.Tile
{
public enum TileMasterSlaveEnum
{
Master,
Slave,
}
/// <summary>
/// 瓦片状态同步 : 主从服务器代码
/// </summary>
public abstract partial class JNSSTileServerService : JNSStateServerService
{
public abstract TileMasterSlaveEnum MSRole { get; }
public bool IsMaster => MSRole == TileMasterSlaveEnum.Master;
public bool IsSlave => MSRole == TileMasterSlaveEnum.Slave;
}
}