3 protected RplId m_OwnerRplId;
4 protected RplId m_ResourceComponentRplId;
5 protected typename m_InteractorType;
9 protected WorldTimestamp m_fLastPokedAt;
14 Managed owner = Replication.FindItem(ownerRplId);
24 string stringType =
string.Format(
"SCR_ResourceSystemSubscriptionHandle<%1>", owner.Type());
25 typename type = stringType.ToType();
31 handle.OnInit(manager, ownerRplId, resourceComponentRplId, interactorType, resourceType, resourceIdentifier);
37 WorldTimestamp GetLastPokedAt()
39 return m_fLastPokedAt;
49 RplId GetResourceComponentRplId()
51 return m_ResourceComponentRplId;
55 typename GetInteractorType()
57 return m_InteractorType;
63 return m_eResourceIdentifier;
69 return m_eResourceType;
75 m_fLastPokedAt =
GetGame().GetWorld().GetTimestamp();
79 protected void OnDelete()
81 if (m_SubscriptionManager)
82 m_SubscriptionManager.OnSubscriptionListenerHandleDeleted(
this);
88 m_SubscriptionManager = manager;
89 m_OwnerRplId = ownerRplId;
90 m_ResourceComponentRplId = resourceComponentRplId;
91 m_InteractorType = interactorType;
92 m_eResourceType = resourceType;
93 m_eResourceIdentifier = resourceIdentifier;
100 OnInit(manager, ownerRplId, resourceComponentRplId, interactorType, resourceType, resourceIdentifier);