Beispiel #1
0
        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);
        }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 public void InitPlanes(CSCommon.Data.PlanesData planesData)
 {
     mPlanesInstance = MapManager.Instance.CreatePlanes();
     mPlanesInstance.InitPlanesInstance(planesData);
 }