コード例 #1
0
    // Token: 0x06000188 RID: 392 RVA: 0x000089C8 File Offset: 0x00006BC8
    public static void ArrayRemoveAtAndResize <T>(ref T[] array, int position, int count = 1)
    {
        int newSize = array.Length;

        HGArrayUtilities.ArrayRemoveAt <T>(ref array, ref newSize, position, count);
        Array.Resize <T>(ref array, newSize);
    }
コード例 #2
0
            // Token: 0x06000E62 RID: 3682 RVA: 0x00040064 File Offset: 0x0003E264
            private void RemoveMemberAt(int i)
            {
                MinionOwnership minionOwnership = this.members[i];

                HGArrayUtilities.ArrayRemoveAt <MinionOwnership>(ref this.members, ref this._memberCount, i, 1);
                minionOwnership.HandleOwnerDiscovery(null);
                minionOwnership.HandleGroupDiscovery(null);
            }
コード例 #3
0
 // Token: 0x060020B0 RID: 8368 RVA: 0x0008D700 File Offset: 0x0008B900
 private static void OnConnectionLost(NetworkConnection conn)
 {
     for (int i = 0; i < ServerAuthManager.instanceCount; i++)
     {
         if (ServerAuthManager.instances[i].conn == conn)
         {
             HGArrayUtilities.ArrayRemoveAt <ServerAuthManager.KeyValue>(ref ServerAuthManager.instances, ref ServerAuthManager.instanceCount, i, 1);
             return;
         }
     }
 }
コード例 #4
0
 // Token: 0x06001B69 RID: 7017 RVA: 0x0008022B File Offset: 0x0007E42B
 private void RemoveTimerAt(int i)
 {
     this.indexAllocator.FreeIndex(this.timers[i].handle.uid);
     HGArrayUtilities.ArrayRemoveAt <TimerQueue.Timer>(ref this.timers, ref this.count, i, 1);
 }
コード例 #5
0
 // Token: 0x06001814 RID: 6164 RVA: 0x00072F51 File Offset: 0x00071151
 private void RemoveAt(int i)
 {
     HGArrayUtilities.ArrayRemoveAt <IndexAllocator.Range>(ref this.ranges, ref this.rangeCount, i, 1);
 }