public void DetachArmorData(ArmorData armorData) { if (armorData == null) { return; } m_ArmorDatas.Remove(armorData); RefreshData(); }
protected internal override void OnShow(object userData) { base.OnShow(userData); m_ArmorData = userData as ArmorData; if (m_ArmorData == null) { Log.Error("Armor data is invalid."); return; } GameEntry.Entity.AttachEntity(Entity, m_ArmorData.OwnerId, AttachPoint); }
public void AttachArmorData(ArmorData armorData) { if (armorData == null) { return; } if (m_ArmorDatas.Contains(armorData)) { return; } m_ArmorDatas.Add(armorData); RefreshData(); }
public static void ShowArmor(this EntityComponent entityComponent, ArmorData data) { entityComponent.ShowEntity(typeof(Armor), "Armor", data); }