// Token: 0x06003892 RID: 14482 RVA: 0x000C8E28 File Offset: 0x000C7028
 private void InstallMod(ref global::ItemRepresentation.ItemModPair to, int slot, global::ItemModDataBlock datablock, global::CharacterStateFlags flags)
 {
     to.dataBlock = datablock;
     if (to.representation)
     {
         this.KillModRep(ref to.representation, false);
     }
     if (to.dataBlock.hasModRepresentation && to.dataBlock.AddModRepresentationComponent(base.gameObject, out to.representation))
     {
         to.bindState = global::ItemRepresentation.BindState.None;
         to.representation.Initialize(this, slot, flags);
         if (to.representation)
         {
             if (this.worldModels)
             {
                 this._itemMods.BindAsProxy(slot, this);
             }
         }
         else
         {
             to.bindState      = global::ItemRepresentation.BindState.Vacant;
             to.representation = null;
         }
     }
 }
 // Token: 0x0600385F RID: 14431 RVA: 0x000C8110 File Offset: 0x000C6310
 private void UnBindModAsProxy(ref global::ItemRepresentation.ItemModPair pair)
 {
     if ((int)pair.bindState == 2)
     {
         pair.dataBlock.UnBindAsProxy(pair.representation);
         pair.bindState = global::ItemRepresentation.BindState.None;
     }
 }
 // Token: 0x0600385D RID: 14429 RVA: 0x000C80AC File Offset: 0x000C62AC
 private void UnBindModAsLocal(ref global::ItemRepresentation.ItemModPair pair, ref global::ModViewModelRemoveArgs a)
 {
     if ((int)pair.bindState == 3)
     {
         a.modRep = pair.representation;
         pair.dataBlock.UnBindAsLocal(ref a);
         pair.bindState = global::ItemRepresentation.BindState.None;
     }
 }
 // Token: 0x0600389E RID: 14494 RVA: 0x000C935C File Offset: 0x000C755C
 private static bool KillModForRep(ref global::ItemRepresentation.ItemModPair pair, global::ItemModRepresentation modRep, global::ItemRepresentation owner, bool fromCallback)
 {
     if (pair.representation == modRep)
     {
         owner.KillModRep(ref pair.representation, fromCallback);
         return(true);
     }
     return(true);
 }
 // Token: 0x0600385C RID: 14428 RVA: 0x000C8050 File Offset: 0x000C6250
 private void BindModAsLocal(ref global::ItemRepresentation.ItemModPair pair, ref global::ModViewModelAddArgs a)
 {
     if ((int)pair.bindState == 2)
     {
         this.UnBindModAsProxy(ref pair);
     }
     if ((int)pair.bindState == 1 || (int)pair.bindState == 3)
     {
         a.modRep = pair.representation;
         pair.dataBlock.BindAsLocal(ref a);
         pair.bindState = global::ItemRepresentation.BindState.Local;
     }
 }
 // Token: 0x0600388F RID: 14479 RVA: 0x000C8D3C File Offset: 0x000C6F3C
 private void ClearModPair(ref global::ItemRepresentation.ItemModPair pair)
 {
     this.KillModRep(ref pair.representation, false);
     this.EraseModDatablock(ref pair.dataBlock);
     pair = default(global::ItemRepresentation.ItemModPair);
 }