Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
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)
 
void SCR_ResourceSystemSubscriptionManager ()
 

Static Public Attributes

static const int REPLICATION_MAX_FRAME_BUDGET = 10
 
static const int GRACEFUL_HANDLES_MAX_FRAME_BUDGET = 10
 

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

ref SCR_ContainerBudgetManager< array< ref SCR_ResourceSystemSubscriptionListing >, SCR_ResourceSystemSubscriptionListingm_ReplicationBudgetManager
 
ref SCR_ContainerBudgetManager< array< ref SCR_ResourceSystemSubscriptionHandleBase >, SCR_ResourceSystemSubscriptionHandleBasem_GracefulHandlesBudgetManager
 
ref array< ref SCR_ResourceSystemSubscriptionListingm_aListings = {}
 
ref array< SCR_ResourceSystemSubscriptionHandleBasem_aHandles = {}
 
ref array< ref SCR_ResourceSystemSubscriptionHandleBasem_aGracefulHandles = {}
 

Constructor & Destructor Documentation

◆ SCR_ResourceSystemSubscriptionManager()

void SCR_ResourceSystemSubscriptionManager.SCR_ResourceSystemSubscriptionManager ( )

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 ( )

It could not always remove the specific null listing, but eventually it should clear them out.

◆ ReplicateListeners()

void SCR_ResourceSystemSubscriptionManager.ReplicateListeners ( )

It could not always remove the specific null listing, but eventually it should clear them out.

◆ 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

◆ 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_GracefulHandlesBudgetManager

ref SCR_ContainerBudgetManager<array<ref SCR_ResourceSystemSubscriptionHandleBase>, SCR_ResourceSystemSubscriptionHandleBase> SCR_ResourceSystemSubscriptionManager.m_GracefulHandlesBudgetManager
protected

◆ m_ReplicationBudgetManager

ref SCR_ContainerBudgetManager<array<ref SCR_ResourceSystemSubscriptionListing>, SCR_ResourceSystemSubscriptionListing> SCR_ResourceSystemSubscriptionManager.m_ReplicationBudgetManager
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: