Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_ResourceSystemSubscriptionManager Interface Reference

Public Member Functions

SCR_ResourceSystemSubscriptionHandleBase GetHandle (RplId resourceComponentRplId, TypeName interactorType, EResourceType resourceType, EResourceGeneratorID resourceIdentifier)
 
bool SubscribeListener (RplId listener, notnull SCR_ResourceInteractor interactor)
 
bool UnsubscribeListener (RplId listener, notnull SCR_ResourceInteractor interactor)
 
void UnsubscribeListenerCompletely (RplId listener)
 
void ProcessGracefulHandles ()
 
void ReplicateListeners ()
 
SCR_ResourceSystemSubscriptionHandleBase RequestSubscriptionListenerHandle (notnull SCR_ResourceInteractor interactor, RplId ownerRplId)
 
SCR_ResourceSystemSubscriptionHandleBase RequestSubscriptionListenerHandleGraceful (notnull SCR_ResourceInteractor interactor, RplId ownerRplId)
 
void OnSubscriptionListenerHandleDeleted (notnull SCR_ResourceSystemSubscriptionHandleBase handle)
 
void OnResourceInteractorDeleted (notnull SCR_ResourceInteractor interactor)
 

Static Public Attributes

static const int REPLICATION_MAX_FRAME_BUDGET = 10
 
static const int GRACEFUL_HANDLES_MAX_FRAME_BUDGET = 10
 
static const int GRACEFUL_HANDLES_POKED_THRESHOLD = 10000
 

Protected Member Functions

SCR_ResourceSystemSubscriptionListing GetListing (notnull SCR_ResourceInteractor interactor)
 
bool GetNextListingCandidate (inout int position, inout int higherLimitPosition, inout SCR_ResourceSystemSubscriptionListing listing, notnull SCR_ResourceInteractor interactor)
 
bool GetNextHandleCandidate (inout int position, inout int higherLimitPosition, inout SCR_ResourceSystemSubscriptionHandleBase handle, RplId resourceComponentRplId, TypeName interactorType, EResourceType resourceType, EResourceGeneratorID resourceIdentifier)
 

Protected Attributes

int m_iGracefulHandlesPivot
 
int m_iReplicateListenersPivot
 
ref array< ref SCR_ResourceSystemSubscriptionListingm_aListings = {}
 
ref array< SCR_ResourceSystemSubscriptionHandleBasem_aHandles = {}
 
ref array< ref SCR_ResourceSystemSubscriptionHandleBasem_aGracefulHandles = {}
 

Member Function Documentation

◆ GetHandle()

SCR_ResourceSystemSubscriptionHandleBase SCR_ResourceSystemSubscriptionManager.GetHandle ( RplId resourceComponentRplId,
TypeName interactorType,
EResourceType resourceType,
EResourceGeneratorID resourceIdentifier )

◆ GetListing()

SCR_ResourceSystemSubscriptionListing SCR_ResourceSystemSubscriptionManager.GetListing ( notnull SCR_ResourceInteractor interactor)
protected

◆ GetNextHandleCandidate()

bool SCR_ResourceSystemSubscriptionManager.GetNextHandleCandidate ( inout int position,
inout int higherLimitPosition,
inout SCR_ResourceSystemSubscriptionHandleBase handle,
RplId resourceComponentRplId,
TypeName interactorType,
EResourceType resourceType,
EResourceGeneratorID resourceIdentifier )
protected

Component rpl id.

Resource interactor type.

Resource type.

Resource identifier type

Final result (Match was found).

◆ GetNextListingCandidate()

bool SCR_ResourceSystemSubscriptionManager.GetNextListingCandidate ( inout int position,
inout int higherLimitPosition,
inout SCR_ResourceSystemSubscriptionListing listing,
notnull SCR_ResourceInteractor interactor )
protected

◆ OnResourceInteractorDeleted()

void SCR_ResourceSystemSubscriptionManager.OnResourceInteractorDeleted ( notnull SCR_ResourceInteractor interactor)

◆ OnSubscriptionListenerHandleDeleted()

void SCR_ResourceSystemSubscriptionManager.OnSubscriptionListenerHandleDeleted ( notnull SCR_ResourceSystemSubscriptionHandleBase handle)

◆ ProcessGracefulHandles()

void SCR_ResourceSystemSubscriptionManager.ProcessGracefulHandles ( )

◆ ReplicateListeners()

void SCR_ResourceSystemSubscriptionManager.ReplicateListeners ( )

◆ RequestSubscriptionListenerHandle()

SCR_ResourceSystemSubscriptionHandleBase SCR_ResourceSystemSubscriptionManager.RequestSubscriptionListenerHandle ( notnull SCR_ResourceInteractor interactor,
RplId ownerRplId )

Component rpl id.

Resource interactor type.

Resource type.

Resource identifier type

◆ RequestSubscriptionListenerHandleGraceful()

SCR_ResourceSystemSubscriptionHandleBase SCR_ResourceSystemSubscriptionManager.RequestSubscriptionListenerHandleGraceful ( notnull SCR_ResourceInteractor interactor,
RplId ownerRplId )

Component rpl id.

Resource interactor type.

Resource type.

Resource identifier type

◆ SubscribeListener()

bool SCR_ResourceSystemSubscriptionManager.SubscribeListener ( RplId listener,
notnull SCR_ResourceInteractor interactor )

◆ UnsubscribeListener()

bool SCR_ResourceSystemSubscriptionManager.UnsubscribeListener ( RplId listener,
notnull SCR_ResourceInteractor interactor )

◆ UnsubscribeListenerCompletely()

void SCR_ResourceSystemSubscriptionManager.UnsubscribeListenerCompletely ( RplId listener)

Member Data Documentation

◆ GRACEFUL_HANDLES_MAX_FRAME_BUDGET

const int SCR_ResourceSystemSubscriptionManager.GRACEFUL_HANDLES_MAX_FRAME_BUDGET = 10
static

◆ GRACEFUL_HANDLES_POKED_THRESHOLD

const int SCR_ResourceSystemSubscriptionManager.GRACEFUL_HANDLES_POKED_THRESHOLD = 10000
static

◆ m_aGracefulHandles

ref array<ref SCR_ResourceSystemSubscriptionHandleBase> SCR_ResourceSystemSubscriptionManager.m_aGracefulHandles = {}
protected

◆ m_aHandles

ref array<SCR_ResourceSystemSubscriptionHandleBase> SCR_ResourceSystemSubscriptionManager.m_aHandles = {}
protected

◆ m_aListings

ref array<ref SCR_ResourceSystemSubscriptionListing> SCR_ResourceSystemSubscriptionManager.m_aListings = {}
protected

◆ m_iGracefulHandlesPivot

int SCR_ResourceSystemSubscriptionManager.m_iGracefulHandlesPivot
protected

◆ m_iReplicateListenersPivot

int SCR_ResourceSystemSubscriptionManager.m_iReplicateListenersPivot
protected

◆ REPLICATION_MAX_FRAME_BUDGET

const int SCR_ResourceSystemSubscriptionManager.REPLICATION_MAX_FRAME_BUDGET = 10
static

The documentation for this interface was generated from the following file: