OnNetworkSubscriptionsUpdate
Usage
- No return behavior
Example Autogenerated
csharp
private void OnNetworkSubscriptionsUpdate( )
{
Puts( "OnNetworkSubscriptionsUpdate works!" );
}
csharp
private void OnNetworkSubscriptionsUpdate( )
{
Puts( "OnNetworkSubscriptionsUpdate works!" );
}
Location
- Network.Networkable::UpdateHighPrioritySubscriptions()
- Network.Networkable::UpdateSubscriptions(int removeLimit, int addLimit)
csharp
//---
List<Group> list = Pool.Get<List<Group>>();
List<Group> list2 = Pool.Get<List<Group>>();
this.sv.visibility.GetVisibleFromNear(this.group, list2);
this.AddVisibleFromNear(this.secondaryGroup, list2);
this.subscriber.subscribed.Compare(list2, list, null, null);
if (Interface.CallHook("OnNetworkSubscriptionsUpdate", this, list, null) == null)
{
for (int i = 0; i < list.Count; i++)
{
Group group = list[i];
this.subscriber.Subscribe(group);
//---
csharp
//---
List<Group> list2 = Pool.Get<List<Group>>();
List<Group> list3 = Pool.Get<List<Group>>();
this.sv.visibility.GetVisibleFromFar(this.group, list3);
this.AddVisibleFromNear(this.secondaryGroup, list3);
this.subscriber.subscribed.Compare(list3, list, list2, null);
if (Interface.CallHook("OnNetworkSubscriptionsUpdate", this, list, list2) == null)
{
for (int i = 0; i < list2.Count; i++)
{
Group group = list2[i];
if (removeLimit > 0)
//---