private Part setPart(int slotIndex, EquipmentPartType partType, Part newPart) { Part part = GetPart(slotIndex, partType); parts[slotIndex, (int)partType] = newPart; return(part); }
public bool TryGetEquippedPart(int slotIndex, EquipmentPartType partType, out AvatarModel.Part outPart) { outPart = this.GetPart(slotIndex, partType); return(outPart != null && outPart.Equipment != null); }
private AvatarModel.Part setPart(int slotIndex, EquipmentPartType partType, AvatarModel.Part newPart) { AvatarModel.Part part = this.GetPart(slotIndex, partType); this.parts[slotIndex, (int)partType] = newPart; return(part); }
public AvatarModel.Part GetPart(int slotIndex, EquipmentPartType partType) { return(this.parts[slotIndex, (int)partType]); }
public Part GetPart(int slotIndex, EquipmentPartType partType) { return(parts[slotIndex, (int)partType]); }