Add missing PREPs

This commit is contained in:
SilentSpike 2018-04-27 15:43:41 +01:00
parent 5bc57cd793
commit 7d55163463
12 changed files with 95 additions and 2 deletions

View File

@ -0,0 +1,17 @@
class Extended_PreStart_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preStart));
};
};
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
};
};
class Extended_PostInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_postInit));
};
};

View File

@ -0,0 +1,7 @@
PREP(enteredStateCardiacArrest);
PREP(enteredStateFatalInjury);
PREP(handleStateDefault);
PREP(handleStateInjured);
PREP(handleStateUnconscious);
PREP(leftStateCardiacArrest);
PREP(transitionStateSecondChance);

View File

@ -0,0 +1,2 @@
#include "script_component.hpp"

View File

@ -0,0 +1,7 @@
#include "script_component.hpp"
ADDON = false;
#include "XEH_PREP.hpp"
ADDON = true;

View File

@ -0,0 +1,3 @@
#include "script_component.hpp"
#include "XEH_PREP.hpp"

View File

@ -0,0 +1,24 @@
PREP(addHeartRadeAdjustment);
PREP(getBloodLoss);
PREP(getBloodPressure);
PREP(getBloodVolumeChanges);
PREP(getCardiacOutput);
PREP(getHeartRate);
PREP(getPainPerceived);
PREP(getPainTotal);
PREP(hasStableVitals);
PREP(hasTourniquetAppliedTo);
PREP(initUnit);
PREP(isBeingCarried);
PREP(isBeingDragged);
PREP(isInMedicalFacility);
PREP(isInMedicalVehicle);
PREP(isInStableoCondition);
PREP(isMedic);
PREP(isMedicalVehicle);
PREP(isUnconscious);
PREP(setCardiacArrest);
PREP(setDead);
PREP(setHeartRate);
PREP(setPainTotal);
PREP(setUnconscious);

View File

@ -20,10 +20,10 @@ PREP(treatment_success);
PREP(treatmentBandage);
PREP(treatmentBandageLocal);
PREP(treatmentCPR);
PREP(treatmentCPR_failure);
PREP(treatmentCPR_progress);
PREP(treatmentCPR_start);
PREP(treatmentCPR);
PREP(treatmentCPRLocal);
PREP(treatmentFullHeal);
PREP(treatmentFullHealLocal);
@ -41,6 +41,7 @@ PREP(treatmentTourniquetRemove);
// misc
PREP(addToLog);
PREP(addToTriageCard);
PREP(calculateBlood);
PREP(canAccessMedicalEquipment);
PREP(dropDownTriageCard);
PREP(getTriageStatus);
@ -50,7 +51,6 @@ PREP(HealTimeMedkit);
PREP(isBeingCarried);
PREP(isBeingDragged);
PREP(onMedicationUsage);
PREP(calculateBlood);
// items
PREP(checkItems);

View File

@ -0,0 +1,17 @@
class Extended_PreStart_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preStart));
};
};
class Extended_PreInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_preInit));
};
};
class Extended_PostInit_EventHandlers {
class ADDON {
init = QUOTE(call COMPILE_FILE(XEH_postInit));
};
};

View File

@ -0,0 +1,4 @@
PREP(handleUnitVitals);
PREP(updateHeartRate);
PREP(updatePainSuppress);
PREP(updatePeripheralResistance);

View File

@ -0,0 +1,2 @@
#include "script_component.hpp"

View File

@ -0,0 +1,7 @@
#include "script_component.hpp"
ADDON = false;
#include "XEH_PREP.hpp"
ADDON = true;

View File

@ -0,0 +1,3 @@
#include "script_component.hpp"
#include "XEH_PREP.hpp"