// Token: 0x060039AC RID: 14764 RVA: 0x000CB27C File Offset: 0x000C947C protected static void SerializeSharedProperties(BitStream stream, global::InventoryItem item, global::ItemDataBlock db) { stream.WriteInvInt(item.uses); if (item.datablock.DoesLoseCondition()) { stream.WriteSingle(item.condition); stream.WriteSingle(item.maxcondition); } }
// Token: 0x060039AD RID: 14765 RVA: 0x000CB2C0 File Offset: 0x000C94C0 protected static void DeserializeSharedProperties(BitStream stream, global::InventoryItem item, global::ItemDataBlock db) { item.uses = stream.ReadInvInt(); if (item.datablock.DoesLoseCondition()) { item.condition = stream.ReadSingle(); item.maxcondition = stream.ReadSingle(); } }
// Token: 0x06003A9B RID: 15003 RVA: 0x000CDB1C File Offset: 0x000CBD1C protected override void DoSetActiveItem(global::InventoryItem item) { global::InventoryItem activeItem = this._activeItem; this._activeItem = item; if (activeItem != null) { global::IHeldItem heldItem = activeItem.iface as global::IHeldItem; if (heldItem != null) { heldItem.OnDeactivate(); } } if (this._activeItem != null) { global::IHeldItem heldItem2 = this._activeItem as global::IHeldItem; if (heldItem2 != null) { heldItem2.OnActivate(); } } }
// Token: 0x060037F6 RID: 14326 RVA: 0x000C6E80 File Offset: 0x000C5080 private Ident(global::InventoryItem item) { this = new global::Datablock.Ident(item, 130); }