예제 #1
0
        private Part setPart(int slotIndex, EquipmentPartType partType, Part newPart)
        {
            Part part = GetPart(slotIndex, partType);

            parts[slotIndex, (int)partType] = newPart;
            return(part);
        }
예제 #2
0
 public bool TryGetEquippedPart(int slotIndex, EquipmentPartType partType, out AvatarModel.Part outPart)
 {
     outPart = this.GetPart(slotIndex, partType);
     return(outPart != null && outPart.Equipment != null);
 }
예제 #3
0
 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);
 }
예제 #4
0
 public AvatarModel.Part GetPart(int slotIndex, EquipmentPartType partType)
 {
     return(this.parts[slotIndex, (int)partType]);
 }
예제 #5
0
 public Part GetPart(int slotIndex, EquipmentPartType partType)
 {
     return(parts[slotIndex, (int)partType]);
 }