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); }); }
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); }); }