Data Structures | |
class | Class |
Super root of all classes in Enforce script. More... | |
class | Managed |
TODO doc. More... | |
class | NonSerialized |
TODO doc. More... | |
class | ScriptModule |
Module containing compiled scripts. More... | |
class | EnScript |
class | array< Class T > |
class | set< Class T > |
class | map< Class TKey, Class TValue > |
Associative array template usage: More... | |
Functions | |
proto native external bool | IsInherited (typename type) |
Returns true when instance is of the type, or inherited one. | |
proto native owned external string | ClassName () |
Returns name of class-type. | |
string | GetDebugName () |
proto native external | Type () |
Returns typename of object's class. | |
proto static external | StaticType () |
Returns typename of object's reference. | |
static | StaticGetType (typename t) |
Returns typename of class even without a variable or instance. | |
proto external string | ToString () |
static proto Class | Cast (Class from) |
Try to safely down-cast base class to child class. | |
static proto bool | CastTo (out Class to, Class from) |
Try to safely down-cast base class to child class. | |
private static proto bool | SafeCastType (Class type, out Class to, Class from) |
This function is for internal script usage. | |
private void | ~ScriptModule () |
proto volatile int | Call (Class inst, string function, void parm) |
proto volatile int | CallFunction (Class inst, string function, out void returnVal, void parm) |
proto volatile int | CallFunctionParams (Class inst, string function, out void returnVal, Class parms) |
proto native void | Release () |
static proto native ScriptModule | LoadScript (ScriptModule parentModule, string scriptFile, bool listing) |
Do load script and create ScriptModule for it. | |
private void | EnScript () |
private void | ~EnScript () |
static proto int | GetClassVar (Class inst, string varname, int index, out void result) |
Dynamic read of variable value by its name. | |
static proto int | SetClassVar (Class inst, string varname, int index, void input) |
Dynamic write to variable by its name. | |
static proto int | SetVar (out void var, string value) |
Sets variable value by value in string. | |
static proto void | Watch (void var, int flags) |
Debug tool for watching certain variable. Invokes debugger whenever is variable used. | |
proto void | Sort (void param_array[], int num) |
Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically) | |
proto void | reversearray (void param_array) |
proto void | copyarray (void destArray, void srcArray) |
proto int | ParseStringEx (inout string input, string token) |
Parses one token from input string. Result is put into token string, and type of token is returned. Input string is left-truncated by the resulting token length. | |
proto int | ParseString (string input, out string tokens[]) |
Parses string into array of tokens returns number of tokens. | |
proto native int | KillThread (Class owner, string name) |
Kills thread. | |
proto volatile void | Idle () |
proto owned string | ThreadFunction (Class owner, string name, int backtrace, out int linenumber) |
Debug function. Returns current function on stack of the thread. | |
string | String (string s) |
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello " + var));. | |
void | PrintString (string s) |
Helper for printing out string expression. Example: PrintString("Hello " + var);. | |
proto native int | Count () |
proto native void | Clear () |
proto void | Set (int n, T value) |
proto int | Find (T value) |
proto T | Get (int n) |
proto int | Insert (T value) |
proto int | InsertAt (T value, int index) |
void | InsertAll (notnull array< T > from) |
Inserts all elements from array. | |
proto native void | Remove (int index) |
proto native void | RemoveOrdered (int index) |
proto native void | Resize (int newSize) |
proto native void | Reserve (int newSize) |
proto native void | Swap (notnull array< T > other) |
proto native void | Sort (bool reverse=false) |
proto int | Copy (notnull array< T > from) |
proto int | Init (T init[]) |
void | RemoveItem (T value) |
void | RemoveItemUnOrdered (T value) |
bool | IsValidIndex (int index) |
void | Debug () |
Print all elements in array. | |
int | GetRandomIndex () |
Returns a random index of array. If Count is 0, return index is -1 . | |
T | GetRandomElement () |
Returns a random element of array. | |
void | SwapItems (int item1_index, int item2_index) |
void | InsertArray (array< T > other) |
void | Invert () |
int | MoveIndex (int curr_index, int move_number) |
Returns a index in array moved by specific number. | |
void | ShuffleArray () |
int | DifferentAtPosition (array< T > pOtherArray) |
Returns an index where 2 arrays start to differ from each other. | |
proto native int | Count () |
proto native void | Clear () |
proto int | Find (T value) |
proto T | Get (int n) |
proto int | Insert (T value) |
proto int | InsertAt (T value, int index) |
proto native void | Remove (int index) |
proto int | Copy (set< T > from) |
proto native void | Swap (set< T > other) |
proto int | Init (T init[]) |
void | InsertSet (set< T > other) |
void | RemoveItem (T value) |
void | RemoveItems (set< T > other) |
void | Debug () |
proto native int | Count () |
proto native void | Clear () |
proto TValue | Get (TKey key) |
proto bool | Find (TKey key, out TValue val) |
proto TValue | GetElement (int index) |
proto TKey | GetKey (int i) |
proto void | Set (TKey key, TValue value) |
proto void | Remove (TKey key) |
proto void | RemoveElement (int i) |
proto bool | Contains (TKey key) |
proto bool | Insert (TKey key, TValue value) |
proto int | Copy (map< TKey, TValue > from) |
array< TKey > | GetKeyArray () |
array< TValue > | GetValueArray () |
bool | ReplaceKey (TKey old_key, TKey new_key) |
TKey | GetKeyByValue (TValue value) |
bool | GetKeyByValueChecked (TValue value, out TKey key) |
proto native MapIterator | Begin () |
proto native MapIterator | End () |
proto native MapIterator | Next (MapIterator it) |
proto TKey | GetIteratorKey (MapIterator it) |
proto TValue | GetIteratorElement (MapIterator it) |
float
ftime; The deltaTime since last frame float
FLT_MAX; The maximum value for float float
FLT_MIN; The minimum value for float typedef int MapIterator |
typedef array<bool> TBoolArray |
typedef array<Class> TClassArray |
typedef map<Class, Class> TClassClassMap |
typedef map<Class, float> TClassFloatMap |
typedef map<Class, int> TClassIntMap |
typedef map<Class, Managed> TClassManagedMap |
typedef map<Class, ref Managed> TClassManagedRefMap |
typedef map<Class, string> TClassStringMap |
typedef map<Class, typename> TClassTypenameMap |
typedef map<Class, vector> TClassVectorMap |
typedef array<float> TFloatArray |
typedef map<int, Class> TIntClassMap |
typedef map<int, float> TIntFloatMap |
typedef map<int, int> TIntIntMap |
typedef map<int, Managed> TIntManagedMap |
typedef map<int, ref Managed> TIntManagedRefMap |
typedef map<int, string> TIntStringMap |
typedef map<int, typename> TIntTypenameMap |
typedef map<int, vector> TIntVectorMap |
typedef array<Managed> TManagedArray |
typedef map<Managed, Class> TManagedClassMap |
typedef map<Managed, float> TManagedFloatMap |
typedef map<Managed, int> TManagedIntMap |
typedef map<Managed, Managed> TManagedManagedMap |
typedef map<Managed, ref Managed> TManagedManagedRefMap |
typedef array<ref Managed> TManagedRefArray |
typedef map<ref Managed, Class> TManagedRefClassMap |
typedef map<ref Managed, float> TManagedRefFloatMap |
typedef map<ref Managed, int> TManagedRefIntMap |
typedef map<ref Managed, Managed> TManagedRefManagedMap |
typedef map<ref Managed, ref Managed> TManagedRefManagedRefMap |
typedef set<ref Managed> TManagedRefSet |
typedef map<ref Managed, string> TManagedRefStringMap |
typedef map<ref Managed, typename> TManagedRefTypenameMap |
typedef map<ref Managed, vector> TManagedRefVectorMap |
typedef set<Managed> TManagedSet |
typedef map<Managed, string> TManagedStringMap |
typedef map<Managed, typename> TManagedTypenameMap |
typedef map<Managed, vector> TManagedVectorMap |
typedef array<string> TStringArray |
typedef map<string, Class> TStringClassMap |
typedef map<string, float> TStringFloatMap |
typedef map<string, int> TStringIntMap |
typedef map<string, Managed> TStringManagedMap |
typedef map<string, ref Managed> TStringManagedRefMap |
typedef set<string> TStringSet |
typedef map<string, string> TStringStringMap |
typedef map<string, typename> TStringTypenameMap |
typedef map<string, vector> TStringVectorMap |
typedef array<typename> TTypenameArray |
typedef map<typename, Class> TTypeNameClassMap |
typedef map<typename, float> TTypeNameFloatMap |
typedef map<typename, int> TTypeNameIntMap |
typedef map<typename, Managed> TTypeNameManagedMap |
typedef map<typename, ref Managed> TTypeNameManagedRefMap |
typedef set<typename> TTypenameSet |
typedef map<typename, string> TTypeNameStringMap |
typedef map<typename, typename> TTypeNameTypenameMap |
typedef map<typename, vector> TTypeNameVectorMap |
typedef array<vector> TVectorArray |
|
private |
dynamic call of function when inst == NULL, it's global function call, otherwise it's method of class returns true, when success The call creates new thread, so it's legal to use sleep/wait
Referenced by UIScriptedMenu::Init(), and EnProfilerTests::TestFuncCountData().
|
private |
dynamic call of function when inst == NULL, it's global function call, otherwise it's method of class returns true, when success The call do not create new thread!!!!
Referenced by CallQueueContext::CallParams(), ComponentEnergyManager::DeviceUpdate(), ComponentEnergyManager::Event_OnInit(), DayZCreature::ModCommandHandlerBefore(), PluginBase::OnKeyPress(), PluginBase::OnMouse(), OnMouseButtonUp(), UniversalTemperatureSource::OnTimer(), TimerBase::OnTimer(), array::Run(), SetControlType(), ComponentEnergyManager::SwitchOff(), ComponentEnergyManager::SwitchOn(), TestCleanup(), EnProfilerTests::TestFuncCountData(), AnimationTimer::Tick(), UpdataControllerInput(), and Update().
|
private |
Referenced by CallQueueContext::CallParams(), WidgetEventHandler::OnChildAdd(), WidgetEventHandler::OnChildRemove(), WidgetEventHandler::OnClick(), WidgetEventHandler::OnDoubleClick(), WidgetEventHandler::OnDrag(), WidgetEventHandler::OnDraggingOver(), WidgetEventHandler::OnDrop(), WidgetEventHandler::OnDropReceived(), WidgetEventHandler::OnFocus(), WidgetEventHandler::OnFocusLost(), WidgetEventHandler::OnMouseButtonDown(), WidgetEventHandler::OnMouseButtonUp(), WidgetEventHandler::OnMouseEnter(), WidgetEventHandler::OnMouseLeave(), WidgetEventHandler::OnMouseWheel(), UniversalTemperatureSource::OnTimer(), TimerBase::OnTimer(), and EnProfilerTests::TestFuncCountData().
Try to safely down-cast base class to child class.
Try to safely down-cast base class to child class.
bool
true when 'from' is not null and cast successfull, false when casting is not valid or 'from' is null Referenced by AbortWeaponEvent(), ActionCarHornBase::ActionCondition(), ActionBuryBody::ActionCondition(), ActionCoverHeadTarget::ActionCondition(), ActionDigGardenPlot::ActionCondition(), ActionDigInStash::ActionCondition(), ActionCondition(), ActionDisinfectPlant::ActionCondition(), ActionEatFruit::ActionCondition(), ActionFertilizeSlot::ActionCondition(), ActionFillGeneratorTank::ActionCondition(), ActionFillObject::ActionCondition(), ActionGagTarget::ActionCondition(), ActionLockDoors::ActionCondition(), ActionRefuelTorch::ActionCondition(), ActionRepairShelter::ActionCondition(), ActionRepairTent::ActionCondition(), ActionRepairTentPart::ActionCondition(), ActionShaveTarget::ActionCondition(), ActionUncoverHeadTarget::ActionCondition(), ActionUngagTarget::ActionCondition(), ActionUnlockShippingContainer::ActionCondition(), ActionUnlockDoors::ActionCondition(), ActionViewBinoculars::ActionCondition(), ActionViewOptics::ActionCondition(), ActionDefibrilateBase::ActionCondition(), ActionCloseDoors::ActionCondition(), ActionEnterLadder::ActionCondition(), ActionGetInTransport::ActionCondition(), ActionHarvestCrops::ActionCondition(), ActionOpenDoors::ActionCondition(), ActionPickupChicken::ActionCondition(), ActionRemovePlant::ActionCondition(), ActionRemoveSeed::ActionCondition(), ActionAnimateCarSelection::ActionCondition(), ActionAnimateSeats::ActionCondition(), ActionCarDoors::ActionCondition(), ActionCarDoorsOutside::ActionCondition(), ActionSwitchLights::ActionCondition(), ActionClapBearTrapWithThisItem::ActionCondition(), ActionOpen::ActionCondition(), ActionToggleNVMode::ActionCondition(), ActionZoomIn::ActionCondition(), ActionZoomOut::ActionCondition(), ActionStopEngine::ActionCondition(), ActionSwitchSeats::ActionCondition(), ActionWorldCraft::ActionConditionContinue(), CatchingContextTrapsBase::AdjustBaitItemChance(), UIScriptedMenu::Apply(), Environment::ApplyDrynessToItemEx(), ActionGetOutTransport::ApplyJumpOutDmg(), Environment::ApplyWetnessToItem(), ManBase::BrokenLegForceProne(), ButtonHighlight(), ButtonNormal(), CAContinuousEmptyMagazine::CalcAndSetQuantity(), CAContinuousTransferQuantity::CalcAndSetQuantity(), PluginBase::CalculateHealth(), ManBase::CalculateVisibilityForAI(), DayZPlayer::CameraHandler(), WeaponManager::CanAttachMagazine(), DayZPlayer::CanClimb(), Attachments::CanCombineAmmo(), VicinitySlotsContainer::CanCombineAmmo(), AttachmentCategoriesContainer::CanDisplayAnyCategory(), RecipeBase::CanDo(), ActionEmptyMagazine::CanEmpty(), ItemBase::CanLoadAttachment(), ActionLoadMagazine::CanLoadMagazine(), UIScriptedMenu::CanOpenMenu(), CanPlayEmote(), ItemBase::CanReceiveAttachment(), WeaponManager::CanSwapMagazine(), TrapBase::CauseVictimToStartLimping(), ScriptedWidgetEventHandler::CheckForActionWidgetOverrides(), ManBase::CheckForBurlap(), ManBase::CheckForGag(), ScriptedWidgetEventHandler::ColorRed(), ScriptedWidgetEventHandler::ColorWhite(), ConnectionLost::ConnectionLost(), BreakLongWoodenStick::CopyOldPropertiesToNew(), UnboxLambda::CopyOldPropertiesToNew(), CopyOldPropertiesToNew(), TorchLambda::CopyOldPropertiesToNew(), ActionFishingNewCB::CreateActionComponent(), ActionFishingNew::CreateAndSetupActionCallback(), CreateAndSetupActionCallback(), ActionRepositionPluggedItem::CreateAndSetupActionCallback(), ActionTakeArrowToHands::CreateAndSetupActionCallback(), ActionTakeHybridAttachmentToHands::CreateAndSetupActionCallback(), ActionTakeItemToHands::CreateAndSetupActionCallback(), ActionTakeMaterialToHands::CreateAndSetupActionCallback(), AnimatedActionBase::CreateAndSetupActionCallback(), MissionBase::CreateCharacter(), PlayerSpawnHandler::CreateChildItem(), CreateDamageTriggerEx(), CreateEmoteCallback(), CreateOrgan(), Hologram::CreateTrigger(), CreateTrigger(), EffectAreaLoader::CreateZones(), DamageCrew(), DamageDealtEffect::DamageDealtEffect(), DayZIntroScene::DayZIntroScene(), DayZPlayerCameraBase::DayZPlayerCameraIronsights(), DayZPlayerImplementAiming::DayZPlayerImplementAiming(), InventoryActionHandler::DeactiveAction(), DeferredWeaponFailed(), ActionDefibrilateBase::DefibrillateServer(), StaminaHandler::DepleteStaminaEx(), CatchingContextFishingBase::DeserializeData(), CatchingContextTrapsBase::DeserializeData(), ActionDismantlePart::DismantleCondition(), Hud::DisplayBadge(), Hud::DisplayNotifier(), Hud::DisplayPresence(), Hud::DisplayStance(), Hud::DisplayTendencyNormal(), RecipeBase::Do(), ClosableContainer::DraggingOverHeader(), WeaponDebug::DrawLineOfFireCameraHybrid(), WeaponDebug::DrawLineOfFireMuzzleToHit(), ManBase::DropAllItems(), ActionDeployBase::DropDuringPlacing(), ManBase::EEItemIntoHands(), Mask_Base::EEItemLocationChanged(), InventoryItemSuper::EEKilled(), EffectRadial(), Trigger::EOnEnter(), Trigger::EOnLeave(), AreaDamageTriggerBase::EOnTouch(), Hologram::EvaluateCollision(), ActionFishingNew::EvaluateFishingResult(), VicinityItemManager::ExcludeFromContainer_Phase1(), VicinityItemManager::ExcludeFromContainer_Phase2(), VicinityItemManager::ExcludeFromContainer_Phase3(), CAContinuousCraft::Execute(), CAContinuousFertilizeGardenSlot::Execute(), CAContinuousMineWood::Execute(), CAContinuousRepeatStartEngine::Execute(), CAContinuousTransferQuantity::Execute(), CAContinuousWaterPlant::Execute(), CAContinuousWaterSlot::Execute(), FlashbangEffect::FlashbangEffect(), FloatingCrossHair(), GameplayEffectsDataImage(), GenerateResult(), CatchingContextFishingRodAction::GenerateResult(), GestureMenuItem(), ActionTargetsCursor::GetActionManager(), ScriptedWidgetEventHandler::GetActionManager(), GetActionManager(), FishingRod_Base_New::GetActionWidgetOverride(), ActionMountBarbedWire::GetBarbedWire(), CarScript::GetCarDoorsState(), HandsContainer::GetCombinationFlags(), ItemManager::GetCombinationFlags(), ScriptedWidgetEventHandler::GetCrosshairPosition(), ActionTargetsCursor::GetItemHealth(), QuantityConversions::GetItemQuantity(), QuantityConversions::GetItemQuantity(), ActionTargetsCursor::GetItemQuantity(), QuantityConversions::GetItemQuantityMax(), QuantityConversions::GetItemQuantityText(), GetLocalProperties(), GetMeleeTarget(), CAContinuousMineRock::GetMiningData(), CAContinuousMineWood::GetMiningData(), InventoryItem::GetNumberOfItems(), ActionHarvestCrops::GetPlantSlot(), ActionTargetsCursor::GetPlayer(), ScriptedWidgetEventHandler::GetPlayer(), GetPlayer(), DeveloperTeleport::GetPlayerRootForTeleporting(), ScriptedWidgetEventHandler::GetRadioFrequency(), Managed::GetRequester(), ActionWorldCraft::GetText(), CGame::GetUserFOVFromConfig(), WeaponDebug::GetWeaponInHands(), BotGuardBase::GuardCondition(), HandEventBase(), DayZPlayer::HandleDeath(), BaseBuildingBase::HandleDropAttachment(), HandleDropCartridge(), HandleEngineSound(), HandleInventory(), PlayerSpawnHandler::HandleNewItem(), HandlePlayerBody(), HandleStoreCartridge(), HandleWeaponEvents(), DayZPlayer::HandleWeapons(), QuantityConversions::HasItemQuantity(), UIScriptedMenu::Init(), Init(), ScriptedWidgetEventHandler::Init(), Hud::Init(), Hud::InitBadgesAndNotifiers(), PPEMatClassParameterCommandData::InitDefaults(), IsAuthoritative(), IsEntityBehindEntityInAngle(), EntityAI::IsIgnoredObject(), HumanCommandVehicle::IsObjectIgnoredOnGettingOut(), IsOwner(), IsProxy(), VONManager::IsVoiceThresholdMinimum(), IsWearingBurlap(), ActionUncoverHeadTarget::IsWearingBurlap(), ActionUngagSelf::IsWearingGag(), ActionUngagTarget::IsWearingGag(), ManBase::IsWearingSplint(), ItemBase::ItemFall(), LoadingScreen(), ActionLockDoors::LockDoor(), UIScriptedMenu::MarkSelected(), DayZCreature::ModCommandHandlerBefore(), ModifierBase(), ActionWorldCraft::OnActionInfoUpdate(), ActionContinuousBase::OnAnimationEvent(), AKS74U::OnDebugSpawn(), Aug_Base::OnDebugSpawn(), Weapon_Base::OnDebugSpawn(), B95_base::OnDebugSpawn(), CZ550_Base::OnDebugSpawn(), RifleSingleShot_Base::OnDebugSpawn(), Mosin9130_Base::OnDebugSpawn(), Repeater::OnDebugSpawn(), Winchester70_Base::OnDebugSpawn(), Izh43Shotgun_Base::OnDebugSpawn(), Mp133Shotgun_Base::OnDebugSpawn(), VSS_Base::OnDebugSpawn(), CivilianBelt::OnDebugSpawn(), HelmetBase::OnDebugSpawn(), HipPack_ColorBase::OnDebugSpawn(), MilitaryBelt::OnDebugSpawn(), PlateCarrierVest::OnDebugSpawn(), FishingRod_Base_New::OnDebugSpawn(), Container_Base::OnDebugSpawn(), ItemBase::OnDebugSpawn(), CarScript::OnDebugSpawn(), AttachmentCategoriesRow::OnDropReceivedFromHeader(), ActionFishingNew::OnEnd(), ActionViewOptics::OnEndAnimationLoopClient(), ActionViewOptics::OnEndAnimationLoopServer(), ActionViewOptics::OnEndClient(), ActionContinuousBase::OnEndInput(), ActionFishingNew::OnEndInput(), ActionViewOptics::OnEndServer(), ActionCollectBloodSelf::OnEndServer(), ActionCollectBloodTarget::OnEndServer(), ActionCollectSampleSelf::OnEndServer(), ActionCollectSampleTarget::OnEndServer(), OnEndServer(), ActionAnimateCarSelection::OnEndServer(), ActionZoomIn::OnEndServer(), ActionZoomOut::OnEndServer(), WeaponStateBase::OnEntry(), WeaponStartAction::OnEntry(), WeaponFire::OnEntry(), OnEntry(), CGame::OnEvent(), OnEvent(), MissionBase::OnEvent(), ActionAttachWheels::OnExecuteClient(), ActionEmptyMagazine::OnExecuteServer(), ActionLoadMagazine::OnExecuteServer(), ActionRefuelTorch::OnExecuteServer(), OnExecuteServer(), ActionSwitchLights::OnExecuteServer(), ActionAttachWheels::OnExecuteServer(), ActionClapBearTrapWithThisItem::OnExecuteServer(), ActionStopEngine::OnExecuteServer(), WeaponFire::OnExit(), ActionFishingNew::OnFinishProgress(), ActionFillObject::OnFinishProgressClient(), ActionDefibrilateSelf::OnFinishProgressClient(), ActionDefibrilateTarget::OnFinishProgressClient(), ActionBreakLongWoodenStick::OnFinishProgressServer(), ActionCoverHeadSelf::OnFinishProgressServer(), ActionCoverHeadTarget::OnFinishProgressServer(), OnFinishProgressServer(), ActionFillObject::OnFinishProgressServer(), ActionGagSelf::OnFinishProgressServer(), ActionGagTarget::OnFinishProgressServer(), ActionRepairPart::OnFinishProgressServer(), ActionRepairShelter::OnFinishProgressServer(), ActionRepairTent::OnFinishProgressServer(), ActionShaveTarget::OnFinishProgressServer(), ActionStripCarrierVest::OnFinishProgressServer(), ActionUngagSelf::OnFinishProgressServer(), ActionUngagTarget::OnFinishProgressServer(), ActionWorldCraft::OnFinishProgressServer(), ActionDefibrilateSelf::OnFinishProgressServer(), Barrel_ColorBase::OnFreezeStateChangeServer(), OnFreezeStateChangeServer(), SymptomBase::OnInit(), ItemBase::OnInventoryEnter(), Weapon::OnItemLocationChanged(), Icon::OnPerformCombination(), HandsContainer::OnPerformCombination(), EntityPlacementCallback::OnQuery(), ManBase::OnQuickBarSingleUse(), TrapBase::OnServerSteppedOn(), EntityPlacementCallback::OnSetup(), OnShow(), CAContinuousRepeatFishing::OnSignalEnd(), ActionFishingNew::OnSignalEnd(), CAContinuousRepeatFishing::OnSignalStart(), ActionFishingNew::OnSignalStart(), ActionSwitchSeats::OnStart(), ActionViewOptics::OnStartAnimationLoopClient(), ActionViewOptics::OnStartAnimationLoopServer(), ActionCloseDoors::OnStartServer(), ActionGetOutTransport::OnStartServer(), ActionOpenDoors::OnStartServer(), ActionPullBodyFromTransport::OnStartServer(), ActionAnimateCarSelection::OnStartServer(), PPERequester_GameplayBase::OnStop(), InventoryItem::OnStoreLoad(), UngagSelfLambda::OnSuccess(), WeaponStartAction::OnUpdate(), OnUpdate(), WeaponFireMultiMuzzle::OnUpdate(), WeaponStateBase::OnUpdate(), OnVehicleJumpOutServer(), ItemOptics::OnWasAttached(), HeadGear_Base::OnWasAttached(), ItemBase::OnWasAttached(), ItemOptics::OnWasDetached(), ItemBase::OnWasDetached(), Icon::PerformCombination(), Hologram::PlaceEntity(), ManBase::PredictiveSwapEntities(), Environment::ProcessItemHierarchyRecursive(), DayZPlayer::ProcessWeaponEvent(), RandomizeSignalValues(), ActionFishingNew::ReadFromContext(), VicinityItemManager::RefreshVicinityItems(), GameplayEffectsData::RegisterData(), PPEClassBase::RegisterParameterColorEx(), PPEClassBase::RegisterParameterScalarFloatEx(), ManBase::ReloadWeapon(), ManBase::RemoveAllItems(), ItemBase::RemoveCookingAudioVisuals(), RemoveSplint(), ActionRepairTent::RepairDamageTransfer(), CatchingResultBase::RollChanceSeeded(), RollNextResultChance(), SelectStoreCartridge(), ActionBase::SendMessageToClient(), InventoryActionHandler::SetAction(), ActionTargetsCursor::SetActionWidget(), ScriptedWidgetEventHandler::SetActionWidget(), Weapon_Base::SetAttachmentsHealth(), ManBase::SetContaminatedEffectEx(), DayZIntroScenePC::SetInitPostprocesses(), DayZIntroSceneXbox::SetInitPostprocesses(), ActionTargetsCursor::SetInteractActionIcon(), ScriptedWidgetEventHandler::SetInteractActionIcon(), ScriptedWidgetEventHandler::SetItemDesc(), ActionTargetsCursor::SetItemDesc(), ActionTargetsCursor::SetItemHealth(), ScriptedWidgetEventHandler::SetItemHealth(), ActionTargetsCursor::SetItemQuantity(), ScriptedWidgetEventHandler::SetItemQuantity(), ScriptedWidgetEventHandler::SetRadioFrequency(), Hud::SetStamina(), CAContinuousCraft::Setup(), CAContinuousDisinfectPlant::Setup(), CAContinuousEmptyMagazine::Setup(), CAContinuousFertilizeGardenSlot::Setup(), CAContinuousFill::Setup(), CAContinuousFish::Setup(), CAContinuousLoadMagazine::Setup(), CAContinuousTransferQuantity::Setup(), CAContinuousWaterPlant::Setup(), CAContinuousWaterSlot::Setup(), ActionFishingNew::SetupAction(), ActionWorldCraft::SetupAction(), ScriptedWidgetEventHandler::SetValue(), Hud::SetWalkieTalkieText(), ScriptedWidgetEventHandler::SetWeaponModeAndZeroing(), ScriptedWidgetEventHandler::SetWeaponQuantity(), SoftSkillManagerDebug(), ActionSortAmmoPile::SortAmmo(), SpawnAdditionalItems(), CarchingResultFishingAction::SpawnAndSetup(), CatchingResultTrapBase::SpawnAndSetup(), PlayerSpawnHandler::SpawnComplexChildrenItems(), PluginBase::SpawnEntityOnCursorDir(), PluginBase::SpawnEntityOnGroundPatternGrid(), PluginBase::SpawnEntityOnGroundPos(), PlayerSpawnHandler::SpawnSimpleChildrenItems(), ActionEnterLadder::Start(), StopCooling(), SwitchPreset(), SyncAnimState(), HandsContainer::TakeAsAttachment(), ClosableContainer::TakeAsAttachment(), DeveloperTeleport::TeleportAtCursor(), DeveloperTeleport::TeleportAtCursorEx(), ScriptedWidgetEventHandler::TextMapUpdateWidget(), PluginDayzPlayerDebug_Weapons::Tick(), TransferEntityVariables(), ActionUnlockShippingContainer::TranslateLockSelectionIntoDoorIdx(), DayZPlayer::TriggerPullPlayerOutOfVehicle(), Managed::TrySpawnNextDrop(), ActionUncoverHeadBase::UncoverHead(), ActionUnlockShippingContainer::UnlockDoor(), ActionUnlockDoors::UnlockDoor(), GameplayEffectsData::Update(), Hud::UpdateBloodName(), UIScriptedMenu::UpdateItemInfoQuantity(), MissionBase::UpdatePlayersStats(), UniversalTemperatureSourceLambdaBaseImpl::UpdateVicinityTemperatureRecursive(), UniversalTemperatureSourceLambdaBaseImpl::WarmAndCoolItemsInVicinity(), ActionFishingNew::WriteToContext(), ActionMountBarbedWire::WriteToContext(), ActionRepairCarPart::WriteToContext(), ActionRepairPart::WriteToContext(), ActionRepairTent::WriteToContext(), ActionRepairTentPart::WriteToContext(), and ActionRepairVehiclePartBase::WriteToContext().
|
private |
Returns name of class-type.
inst | Class |
string
class-type Referenced by Class::GetDebugName().
|
private |
Destroyes all elements of the array and sets the Count to 0. The underlying memory of the array is not freed.
|
private |
|
private |
Clears the hash map.
|
private |
Returns if map contains element with given key.
Copes contents of from
array to this array.
|
private |
proto void copyarray | ( | void | destArray, |
void | srcArray | ||
) |
|
private |
O(1) complexity.
|
private |
|
private |
|
inlineprivate |
Returns an index where 2 arrays start to differ from each other.
int
Index from where arrays differ
|
private |
|
inlineprivate |
|
private |
Tries to find the first occurance of given value in the array.
value
if found, -1 otherwise
|
private |
Tries to find the first occurance of given value in the set.
value
if found, -1 otherwise
|
private |
Search for an element with the given key.
key | The key of the element to find |
val | result is stored to val |
|
private |
n
|
private |
|
private |
Search for an element with the given key.
key | The key of the element to find |
|
staticprivate |
Dynamic read of variable value by its name.
inst | When inst == NULL, it's for global variable, otherwise it's class member | |
index | Is index when variable is array | |
[out] | result | Variable must be of the same type! |
|
inlineprivate |
References Class::ClassName().
|
private |
Return the i:th element in the map. Note: This operation is O(n) complexity. Use with care!
index | The position of the element in the map |
|
private |
|
private |
|
private |
Return the i:th element key in the map. Note: This operation is O(n) complexity. Use with care!
i | The position of the element key in the map |
|
inlineprivate |
References Count, and GetElement().
|
inlineprivate |
References Count, and GetElement().
|
inlineprivate |
|
inlineprivate |
Returns a random index of array. If Count is 0, return index is -1 .
int
Random index of array References Count, and Math::RandomInt().
|
inlineprivate |
References Count, and GetElement().
proto volatile void Idle | ( | ) |
Yiels execution to other threads and then it continues. Obsolete...
|
private |
|
private |
|
private |
Inserts element at the end of array.
value | Element to be inserted |
|
private |
Inserts element at the end of array.
value | Element to be inserted |
|
private |
Insert new element into hash map.
key | Key of element to be inserted. |
value | Data of element to be inserted. |
|
inlineprivate |
Inserts all elements from array.
from | array<T> array from which all elements will be added arr1.Insert( "Dave" );
arr1.Insert( "Mark" );
arr1.Insert( "John" );
arr2.Insert( "Sarah" );
arr2.Insert( "Cate" );
arr1.InsertAll(arr2);
for ( int i = 0; i < arr1.Count(); i++ )
{
Print( arr1.Get(i) );
}
delete arr2;
delete arr1;
>> "Dave"
>> "Mark"
>> "John"
>> "Sarah"
>> "Cate"
|
|
inlineprivate |
Inserts element at certain position and moves all elements behind this position by one.
value | Element to be inserted |
index | Position at which element is inserted. Must be less than Array::GetCardinality() |
Inserts element at certain position and moves all elements behind this position by one.
value | Element to be inserted |
index | Position at which element is inserted. Must be less than Array::GetCardinality() |
|
inlineprivate |
Kills thread.
owner | Can be NULL for global threads. |
name | Name of the first function on stack |
int
???
|
staticprivate |
Do load script and create ScriptModule for it.
parentModule | Module |
scriptFile | Script path |
listing | ?? |
ScriptModule
Loaded scripted module Returns a index in array moved by specific number.
int
Moved index in this array References Count.
|
private |
Parses string into array of tokens returns number of tokens.
input | string String for parse | |
[out] | tokens | array [] Parsed string in array |
int
Number of tokens Parses one token from input string. Result is put into token string, and type of token is returned. Input string is left-truncated by the resulting token length.
[in,out] | input | string String for parse\ Output is without founded token |
[out] | token | string Founded string token |
int
Type of token Token types: 0 - error, no token 1 - defined token (special characters etc. . / * ) 2 - quoted string. Quotes are removed -> TODO 3 - alphabetic string 4 - number 5 - end of line -> TODO
void PrintString | ( | string | s | ) |
Helper for printing out string expression. Example: PrintString("Hello " + var);.
References Print().
Referenced by RecoilBase::ApplyMouseOffset(), StatDebugObject::Debug(), RemotePlayerDamageDebug::Debug(), DebugDamage(), WeaponDebug::DrawLineOfFireCameraHybrid(), PluginRecipesManagerBase::GenerateHumanReadableRecipeList(), GetPlugin(), PluginFileHandler::LoadConfigFile(), ScriptedWidgetEventHandler::OnDoubleClick(), ScriptedWidgetEventHandler::OnDrag(), ScriptedWidgetEventHandler::OnDraggingOver(), ScriptedWidgetEventHandler::OnDrop(), ScriptedWidgetEventHandler::OnDropReceived(), ScriptedWidgetEventHandler::OnMouseButtonDown(), ScriptedWidgetEventHandler::OnMouseButtonUp(), ScriptedWidgetEventHandler::OnMouseEnter(), OnRPC(), PluginBase::OnSpawnErrorReport(), PluginRecipesManagerBase::PrintCache(), PluginBase::PrintedDebug(), PrintElements(), HandsContainer::ShowActionMenuCombine(), ManBase::ShowUnconsciousScreen(), and RecoilBase::Update().
|
private |
|
private |
Removes element from array. The empty position is replaced by last element, so removal is quite fast but do not retain order.
index | Index of element to be removed |
|
private |
Removes element from array, but retain all elements ordered.
index | Index of element to be removed |
|
private |
Removes element with given key.
|
private |
Removes i:th element with given key. Note: This operation is O(n) complexity. Use with care!
i | The position of the element key in the map |
|
inlineprivate |
|
inlineprivate |
References Remove().
|
inlineprivate |
|
inlineprivate |
References Remove().
|
private |
Removes element from array, but retain all elements ordered. It's slower than Remove
index | Index of element to be removed |
|
private |
Resizes the array to given size internally. Is used for optimization purposes when the approx. size is known beforehand
|
private |
Resizes the array to given size. If the newSize
is lower than current Count overflowing objects are destroyed. If the newSize
is higher than current Count missing elements are initialized to zero (null).
proto void reversearray | ( | void | param_array | ) |
This function is for internal script usage.
|
private |
Sets n-th element to given value.
|
private |
Sets value of element with given key. If element with key not exists, it is created. Note: creating new elements is faster using Insert function.
Dynamic write to variable by its name.
inst | when inst == NULL, it's for global variable, otherwise it's class member |
varname | |
index | Is index when variable is array |
input | Input variable must be of the same type! |
Sets variable value by value in string.
[out] | var | |
value |
|
inlineprivate |
References Count.
|
private |
Sorts elements of array, depends on underlaying type.
proto void Sort | ( | void | param_array[], |
int | num | ||
) |
Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically)
param_array | array Array to sort |
num | int How many items will be sorted in array |
void
Referenced by ActionConstructor::ConstructActions(), and EmoteConstructor::ConstructEmotes().
|
inlinestaticprivate |
Returns typename of class even without a variable or instance.
typename
class-type
|
staticprivate |
Helper for passing string expression to functions with void parameter. Example: Print(String("Hello " + var));.
Referenced by ScriptConsoleEnfScriptTab::Add(), ScriptConsoleOutputTab::Add(), CalculateLinePointFade(), Hud::DisplayNotifier(), Hud::DisplayTendencyNormal(), Hud::DisplayTendencyTemp(), Hud::InitBadgesAndNotifiers(), ScriptedWidgetEventHandler::Remove(), and ScriptedWidgetEventHandler::Show().
|
private |
Swaps the contents of this and other
arrays. Does not involve copying of the elements.
|
private |
Debug function. Returns current function on stack of the thread.
owner | Can be NULL for global threads |
name | Name of the first function on stack |
backtrace | ??? |
linenumber | ??? |
string
???
|
private |
|
private |
|
staticprivate |
Debug tool for watching certain variable. Invokes debugger whenever is variable used.
var | Certain variable for watching |
flags | = 1 means it will break even when not modified |
void
|
inlineprivate |
|
private |