You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
921 B
C#
36 lines
921 B
C#
using OMS.NET.DbClass;
|
|
|
|
namespace OMS.NET.Instructs
|
|
{
|
|
public class GetMapLayerInstruct : Instruct
|
|
{
|
|
public GetMapLayerInstruct()
|
|
{
|
|
this.Type = "get_mapLayer";
|
|
}
|
|
|
|
public override Task Handler(string wsid)
|
|
{
|
|
return Task.Run(() =>
|
|
{
|
|
if (GlobalArea.LoginCheckByID(wsid))
|
|
{
|
|
List<MapLayer> mapLayers = MapLayer.GetMapLayerList().Where(m => m.Phase != 2).ToList();
|
|
this.ResponseOrBroadcastInstructs.Add(new SendMapLayerInstruct()
|
|
{
|
|
IsResponse = true,
|
|
Data = mapLayers
|
|
});
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
public class SendMapLayerInstruct : Instruct
|
|
{
|
|
public SendMapLayerInstruct()
|
|
{
|
|
this.Type = "send_mapLayer";
|
|
}
|
|
}
|
|
} |