using System; using System.Linq; using Cpp2IlInjected; using MarsSDK; using UnityEngine; // Token: 0x0200015B RID: 347 [Token(Token = "0x200015B")] public class ItemPool { // Token: 0x060011A5 RID: 4517 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x60011A5")] [Address(RVA = "0x10BA700", Offset = "0x10B8F00", VA = "0x1810BA700")] public ItemPool(string itemName, Transform root, ItemSystem.ItemType itemType, int size, float aliveTime) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x060011A6 RID: 4518 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x60011A6")] [Address(RVA = "0x10BA4A0", Offset = "0x10B8CA0", VA = "0x1810BA4A0")] private void RegisterItemProcessor() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x060011A7 RID: 4519 RVA: 0x00028964 File Offset: 0x00026B64 [Token(Token = "0x60011A7")] [Address(RVA = "0x10BA160", Offset = "0x10B8960", VA = "0x1810BA160")] public void Init() { AssetItemRequest assetItemRequest = new AssetItemRequest(this.itemName); AssetItemRequest req = assetItemRequest; AssetItemRequest req2 = req; Action action = delegate { int assetGroup = req.AssetGroup; string k__BackingField = req.k__BackingField; Item component = Game.GetAsset(assetGroup, k__BackingField).GetComponent(); ItemPool <>4__this = this; float g_fUseTime = component.g_fUseTime; <>4__this.useTime = g_fUseTime; }; req2.k__BackingField = action; Game.LoadAsset(req); } // Token: 0x060011A8 RID: 4520 RVA: 0x000020D3 File Offset: 0x000002D3 [Token(Token = "0x60011A8")] [Address(RVA = "0x10BA2B0", Offset = "0x10B8AB0", VA = "0x1810BA2B0")] public Item NewUse(Vector3 position, Quaternion rotation, bool isDiscarded) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x060011A9 RID: 4521 RVA: 0x000289C0 File Offset: 0x00026BC0 [Token(Token = "0x60011A9")] [Address(RVA = "0x10BA0C0", Offset = "0x10B88C0", VA = "0x1810BA0C0")] public void AllCheckFloor() { GameObjectPoolLimited gameObjectPoolLimited = this.pooledItems; Action action = this.itemProcessor; gameObjectPoolLimited.ProcessActivePool(action); } // Token: 0x060011AA RID: 4522 RVA: 0x000289E8 File Offset: 0x00026BE8 [Token(Token = "0x60011AA")] [Address(RVA = "0x10BA5C0", Offset = "0x10B8DC0", VA = "0x1810BA5C0")] public bool TryGetActiveProperty(int propertyID) { Item[] activePoolClone = this.pooledItems.GetActivePoolClone(); Func func = delegate(Item property) { int propertyID2 = propertyID; return property.g_iPropertyID == propertyID2; }; Item item = Enumerable.FirstOrDefault(activePoolClone, func); int num = 0; return item != num; } // Token: 0x060011AB RID: 4523 RVA: 0x00028A34 File Offset: 0x00026C34 [Token(Token = "0x60011AB")] [Address(RVA = "0x66CA40", Offset = "0x66B240", VA = "0x18066CA40")] public float GetUseTime() { return this.useTime; } // Token: 0x060011AC RID: 4524 RVA: 0x00028A48 File Offset: 0x00026C48 [Token(Token = "0x60011AC")] [Address(RVA = "0x10BA110", Offset = "0x10B8910", VA = "0x1810BA110")] public void Dispose() { this.pooledItems.Dispose(); } // Token: 0x04001B8F RID: 7055 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4001B8F")] private GameObjectPoolLimited pooledItems; // Token: 0x04001B90 RID: 7056 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4001B90")] private Action itemProcessor; // Token: 0x04001B91 RID: 7057 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4001B91")] private string itemName; // Token: 0x04001B92 RID: 7058 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4001B92")] private float useTime; // Token: 0x04001B93 RID: 7059 [FieldOffset(Offset = "0x2C")] [Token(Token = "0x4001B93")] private float aliveTime; }