Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ResourceSystemSubscriptionHandle.c
Go to the documentation of this file.
1
class
SCR_ResourceSystemSubscriptionHandle
<
Class
OWNER_TYPE> :
SCR_ResourceSystemSubscriptionHandleBase
2
{
3
protected
OWNER_TYPE
m_Owner
;
4
5
//------------------------------------------------------------------------------------------------
6
OWNER_TYPE
GetOwner
()
7
{
8
return
m_Owner
;
9
}
10
11
//------------------------------------------------------------------------------------------------
12
override
protected
void
OnDelete
()
13
{
14
super.OnDelete();
15
16
if
(
m_Owner
)
17
m_Owner
.RequestUnsubscription(
m_ResourceComponentRplId
,
m_InteractorType
,
m_eResourceType
,
m_eResourceIdentifier
);
18
}
19
20
//------------------------------------------------------------------------------------------------
21
override
protected
void
OnInit
(notnull
SCR_ResourceSystemSubscriptionManager
manager,
RplId
ownerRplId,
RplId
resourceComponentRplId,
typename
interactorType,
EResourceType
resourceType,
EResourceGeneratorID
resourceIdentifier)
22
{
23
super.OnInit(manager, ownerRplId, resourceComponentRplId, interactorType, resourceType, resourceIdentifier);
24
25
m_Owner
= OWNER_TYPE.Cast(
Replication
.FindItem(ownerRplId));
26
27
if
(
m_Owner
)
28
m_Owner
.RequestSubscription(
m_ResourceComponentRplId
,
m_InteractorType
,
m_eResourceType
,
m_eResourceIdentifier
);
29
}
30
}
EResourceType
EResourceType
Definition
SCR_ResourceContainer.c:2
EResourceGeneratorID
EResourceGeneratorID
Definition
SCR_ResourceGenerator.c:2
Class
Super root of all classes in Enforce script.
Definition
Types.c:35
Replication
Main replication API.
Definition
Replication.c:14
RplId
Replication item identifier.
Definition
RplId.c:14
SCR_ResourceSystemSubscriptionHandle< Class OWNER_TYPE >::m_Owner
OWNER_TYPE m_Owner
Definition
SCR_ResourceSystemSubscriptionHandle.c:3
SCR_ResourceSystemSubscriptionHandle< Class OWNER_TYPE >::GetOwner
OWNER_TYPE GetOwner()
Definition
SCR_ResourceSystemSubscriptionHandle.c:6
SCR_ResourceSystemSubscriptionHandle< Class OWNER_TYPE >::OnDelete
void OnDelete()
Definition
SCR_ResourceSystemSubscriptionHandle.c:12
SCR_ResourceSystemSubscriptionHandle< Class OWNER_TYPE >::OnInit
void OnInit(notnull SCR_ResourceSystemSubscriptionManager manager, RplId ownerRplId, RplId resourceComponentRplId, typename interactorType, EResourceType resourceType, EResourceGeneratorID resourceIdentifier)
Definition
SCR_ResourceSystemSubscriptionHandle.c:21
SCR_ResourceSystemSubscriptionHandleBase::m_eResourceIdentifier
EResourceGeneratorID m_eResourceIdentifier
Definition
SCR_ResourceSystemSubscriptionHandleBase.c:7
SCR_ResourceSystemSubscriptionHandleBase::SCR_ResourceSystemSubscriptionHandleBase
sealed void SCR_ResourceSystemSubscriptionHandleBase(SCR_ResourceSystemSubscriptionManager manager, RplId ownerRplId, RplId resourceComponentRplId, typename interactorType, EResourceType resourceType, EResourceGeneratorID resourceIdentifier)
Definition
SCR_ResourceSystemSubscriptionHandleBase.c:97
SCR_ResourceSystemSubscriptionHandleBase::m_ResourceComponentRplId
RplId m_ResourceComponentRplId
Definition
SCR_ResourceSystemSubscriptionHandleBase.c:4
SCR_ResourceSystemSubscriptionHandleBase::m_eResourceType
EResourceType m_eResourceType
Definition
SCR_ResourceSystemSubscriptionHandleBase.c:6
SCR_ResourceSystemSubscriptionHandleBase::m_InteractorType
m_InteractorType
Definition
SCR_ResourceSystemSubscriptionHandleBase.c:5
SCR_ResourceSystemSubscriptionHandle
Definition
SCR_ResourcePlayerControllerInventoryComponent.c:19
SCR_ResourceSystemSubscriptionManager
Definition
SCR_ResourceSystemSubscriptionManager.c:2
scripts
Game
Sandbox
Resources
Subscription
Handler
SCR_ResourceSystemSubscriptionHandle.c
Generated by
1.17.0