public bool InitGlobalMap(System.Guid mapSourceId, PlanesInstance planes) { MapInstance map = MapManager.Instance.CreateMap(); map.InitMap(planes, Guid.Empty, mapSourceId); mMaps.Add(map); LogicProcessorManager.Instance.PushMap(map); return(true); }
public PlanesInstance CreatePlanes() { for (Byte i = 0; i < PlanesNumMax; i++) { if (mPlanesInstance[i] == null) { PlanesInstance planes = new PlanesInstance(); mPlanesInstance[i] = planes; planes.IndexInPlanesServer = i; RPC.PackageWriter pkg = new RPC.PackageWriter(); H_RPCRoot.smInstance.HGet_DataServer(pkg).UpdatePlanesServerPlanesNumber(pkg, (int)i); pkg.DoCommand(IPlanesServer.Instance.DataConnect, RPC.CommandTargetType.DefaultType); return(planes); } } return(null); }
public void InitPlanes(CSCommon.Data.PlanesData planesData) { mPlanesInstance = MapManager.Instance.CreatePlanes(); mPlanesInstance.InitPlanesInstance(planesData); }