public static void Clear(this HealthBinding pThis) { pThis.VsImpact.Clear(); pThis.VsPuncture.Clear(); pThis.VsSlash.Clear(); pThis.VsCold.Clear(); pThis.VsHeat.Clear(); pThis.VsElectric.Clear(); pThis.VsToxin.Clear(); pThis.VsViral.Clear(); pThis.VsRadiation.Clear(); pThis.VsGas.Clear(); pThis.VsMagnetic.Clear(); pThis.VsCorrosive.Clear(); pThis.VsBlast.Clear(); }
public static void SetToRobotic(this HealthBinding p) { p.VsImpact.Value = 0; p.VsPuncture.Value = 25; p.VsSlash.Value = -25; p.VsCold.Value = 0; p.VsHeat.Value = -50; p.VsElectric.Value = 50; p.VsToxin.Value = -25; p.VsViral.Value = 0; p.VsRadiation.Value = 25; p.VsGas.Value = 0; p.VsMagnetic.Value = 0; p.VsCorrosive.Value = 0; p.VsBlast.Value = 0; }
public static Health ToHealth(this HealthBinding pThis) { return(new Health( pThis.VsImpact.Value, pThis.VsPuncture.Value, pThis.VsSlash.Value, pThis.VsCold.Value, pThis.VsHeat.Value, pThis.VsElectric.Value, pThis.VsToxin.Value, pThis.VsViral.Value, pThis.VsRadiation.Value, pThis.VsGas.Value, pThis.VsMagnetic.Value, pThis.VsCorrosive.Value, pThis.VsBlast.Value)); }