コード例 #1
0
 private void OnHardpointMassChanged(Hardpoint sender, MassChangedEventArgs args)
 {
     RecalculateMass();
 }
コード例 #2
0
 public HardpointData(Hardpoint hardpoint)
 {
     Name = hardpoint.Name;
     InstalledEquipmentData = hardpoint.IsEquipmentInstalled ? hardpoint.InstalledEquipment.GetSerializationData() : null;
 }
コード例 #3
0
 private void OnHardpointUnmounted(Hardpoints sender, Hardpoint hardpoint)
 {
     hardpoint.MassChanged -= OnHardpointMassChanged;
     RecalculateMass();
 }