コード例 #1
0
 private void RefreshInfo(long dockingBaseEid, int level, bool enable, bool isConnected)
 {
     Task.Run(() =>
     {
         var info = new ProductionRefreshInfo
         {
             facilityType     = GetFacilityType(),
             level            = level,
             senderPBSEid     = Eid,
             targetPBSBaseEid = dockingBaseEid,
             enable           = enable,
             isConnected      = isConnected,
         };
         ProductionManager.RefreshPBSFacility(info);
     });
 }
コード例 #2
0
        public void SendMessageToProductionEngineOnConnection(PBSDockingBase dockingBase)
        {
            Task.Run(() =>
            {
                var data = new ProductionRefreshInfo
                {
                    facilityType     = GetFacilityType(),
                    level            = 0,
                    senderPBSEid     = Eid,
                    targetPBSBaseEid = dockingBase.Eid,
                    enable           = false,
                    isConnected      = true, //itt csak ez szamit, a tobbi default
                };

                ProductionManager.PBSFacilityConnected(data);
            });
        }