Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
InventoryItemComponent.c
Go to the documentation of this file.
1
/*
2
===========================================
3
Do not modify, this script is generated
4
===========================================
5
*/
6
11
12
class
InventoryItemComponent
:
GameComponent
13
{
14
ref
ScriptInvoker<bool>
m_OnLockedStateChangedInvoker =
new
ScriptInvoker<bool>
();
15
16
ref
ScriptInvoker<InventoryStorageSlot, InventoryStorageSlot>
m_OnParentSlotChangedInvoker =
new
ScriptInvoker<InventoryStorageSlot, InventoryStorageSlot>
();
17
19
proto external
IEntity
GetOwner
();
21
proto external
bool
IsLocked();
22
proto external
bool
IsUserLocked();
23
proto external
bool
IsSystemLocked();
24
// Get slot where item is located (returns null if none)
25
proto external
InventoryStorageSlot
GetParentSlot();
26
proto external
ItemAttributeCollection
GetAttributes();
28
proto external
void
HideOwner();
30
proto external
void
ShowOwner();
32
proto external
void
SetTraceable(
bool
traceable);
34
proto external
void
DisablePhysics();
36
proto external
void
EnablePhysics();
38
proto external
void
ActivateOwner(
bool
active);
40
proto external
float
GetAdditionalWeight();
46
proto external
void
SetAdditionalWeight
(
float
additionalWeight);
48
proto external
float
GetTotalWeight();
50
proto external
float
GetAdditionalVolume();
56
proto external
void
SetAdditionalVolume(
float
additionalVolume);
58
proto external
float
GetTotalVolume();
64
proto external
void
PlaceOnGround(
IEntity
callerEntity = null);
66
proto external
bool
IsHiddenInVicnity();
68
proto external
UIInfo
GetUIInfo
();
71
proto external
bool
RequestUserLock(
IEntity
caller,
bool
locked);
77
proto external
BaseItemAttributeData
FindAttribute(
typename
typeName);
79
proto external
IEntity
CreatePreviewEntity(
BaseWorld
world,
int
camera);
80
81
// callbacks
82
83
// It should be called with a right return value to change the visibility of entities with hierarchy according to needs.
84
event
protected
bool
ShouldChangeVisibilityOfHierarchy
() {
return
false
; };
86
event
protected
bool
ShouldHideInVicinity
();
88
event
protected
bool
OverridePlacementTransform
(
IEntity
caller, out
vector
computedTransform[4]);
90
event
protected
void
OnPlacedOnGround
();
91
event
protected
void
OnPostInit
(
IEntity
owner);
92
event
private
void
OnLockedStateChanged(
bool
nowLocked) {
if
(m_OnLockedStateChangedInvoker) m_OnLockedStateChangedInvoker.Invoke(nowLocked); };
93
event
private
void
OnParentSlotChanged(
InventoryStorageSlot
oldSlot,
InventoryStorageSlot
newSlot) {
if
(m_OnParentSlotChangedInvoker) m_OnParentSlotChangedInvoker.Invoke(oldSlot, newSlot); };
94
}
95
SetAdditionalWeight
override void SetAdditionalWeight()
Definition
SCR_CharacterIdentityBioGroupConfig.c:292
GetUIInfo
SCR_UIInfo GetUIInfo()
Definition
SCR_EditableEntityCampaignBuildingModeLabelSetting.c:27
BaseItemAttributeData
Definition
BaseItemAttributeData.c:13
BaseWorld
Definition
BaseWorld.c:13
GameComponent
Definition
GameComponent.c:13
IEntity
Definition
IEntity.c:13
InventoryItemComponent
Definition
InventoryItemComponent.c:13
InventoryItemComponent::OnPlacedOnGround
void OnPlacedOnGround()
Override this function if for example physics should be enabled or item's owner should be activated w...
InventoryItemComponent::OverridePlacementTransform
bool OverridePlacementTransform(IEntity caller, out vector computedTransform[4])
Override final transformation of dropped item, return true in case transformation should be applied.
InventoryItemComponent::ShouldHideInVicinity
bool ShouldHideInVicinity()
implement custom visibility behavior in vicinity
InventoryItemComponent::ShouldChangeVisibilityOfHierarchy
bool ShouldChangeVisibilityOfHierarchy()
Definition
InventoryItemComponent.c:84
InventoryItemComponent::OnPostInit
void OnPostInit(IEntity owner)
InventoryStorageSlot
Definition
InventoryStorageSlot.c:13
ItemAttributeCollection
Definition
ItemAttributeCollection.c:13
UIInfo
UIInfo - allows to define UI elements.
Definition
UIInfo.c:14
vector
Definition
vector.c:13
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition
SCR_FuelNode.c:128
ScriptInvoker
ScriptInvokerBase< func > ScriptInvoker
Definition
tools.c:134
scripts
Game
generated
Components
InventorySystem
InventoryItemComponent.c
Generated by
1.17.0