| 1992 | } |
| 1993 | |
| 1994 | void Player::setNetArmorSecret(EquipmentSlot slot, ArmorItemPtr const& armor) { |
| 1995 | String const& slotName = EquipmentSlotNames.getRight(slot); |
| 1996 | setSecretProperty(strf("armorWearer.{}.data", slotName), itemSafeDescriptor(armor).diskStore()); |
| 1997 | if (m_armorSecretNetVersions.empty()) |
| 1998 | setSecretProperty("armorWearer.replicating", true); |
| 1999 | setSecretProperty(strf("armorWearer.{}.version", slotName), ++m_armorSecretNetVersions[slot]); |
| 2000 | } |
| 2001 | |
| 2002 | void Player::setNetArmorSecrets(bool includeEmpty) { |
| 2003 | if (m_clientContext && m_clientContext->netCompatibilityRules().version() < 9) { |
nothing calls this directly
no test coverage detected