Esempio n. 1
0
    private void Setup()
    {
        ammoType = new WeaponTypeSet();

        currentAmmo = 0;
        maxAmmo     = 1;
    }
Esempio n. 2
0
 public WeaponTypeSet(WeaponTypeSet other) : this(bwapiPINVOKE.new_WeaponTypeSet__SWIG_1(WeaponTypeSet.getCPtr(other)), true)
 {
     if (bwapiPINVOKE.SWIGPendingException.Pending)
     {
         throw bwapiPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
    private void Setup(AmmoPouch templateArg)
    {
        ammoType = new WeaponTypeSet(templateArg.ammoType);

        currentAmmo = templateArg.currentAmmo;
        maxAmmo     = templateArg.maxAmmo;
    }
Esempio n. 4
0
    public CharacterData(CharacterDataTemplate templateArg)
    {
        Setup(templateArg.template);

        // set color hex code from the template's character color
        characterInfo.characterHexColorCode = ColorUtility.ToHtmlStringRGB(templateArg.characterInfoColor);

        if (templateArg.favoredWeaponTypesTemplate != null)
        {
            favoredWeaponTypes = new WeaponTypeSet(templateArg.favoredWeaponTypesTemplate);
        }

        if (templateArg.characterInventoryTemplate != null)
        {
            characterInventory = new CharacterInventory(templateArg.characterInventoryTemplate);
        }

        factionReputation = new FactionReputation(templateArg.factionReputationTemplate);

        activeAbilityLoadout = new ActiveAbilityLoadout();
        foreach (ActiveAbilityTemplate iterAbilityTemp in templateArg.activeAbilityTemplates)
        {
            activeAbilityLoadout.AddActiveAbility(new ActiveAbility(iterAbilityTemp));
        }

        outfitLoadout = new CharacterOutfitLoadout();
        foreach (CharacterOutfitTemplate iterTemp in templateArg.outfitTemplates)
        {
            outfitLoadout.AddOutfit(iterTemp);
        }
    }
Esempio n. 5
0
 public WeaponTypeSetEnumerator(WeaponTypeSet collection)
 {
     collectionRef = collection;
     keyCollection = new global::System.Collections.Generic.List <WeaponType>(collection.Values);
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Esempio n. 6
0
    private void Setup(CharacterData templateArg)
    {
        characterInfo  = new CharacterInfo(templateArg.characterInfo);
        characterStats = new CharacterStats(templateArg.characterStats);

        characterInventory = new CharacterInventory(templateArg.characterInventory);
        favoredWeaponTypes = new WeaponTypeSet(templateArg.favoredWeaponTypes);

        factionReputation = new FactionReputation(templateArg.factionReputation);

        activeAbilityLoadout = new ActiveAbilityLoadout(templateArg.activeAbilityLoadout);
        outfitLoadout        = new CharacterOutfitLoadout(templateArg.outfitLoadout);
    }
Esempio n. 7
0
    private void Setup()
    {
        characterInfo  = new CharacterInfo();
        characterStats = new CharacterStats();

        characterInventory = new CharacterInventory();
        favoredWeaponTypes = new WeaponTypeSet();

        factionReputation = new FactionReputation();

        activeAbilityLoadout = new ActiveAbilityLoadout();
        outfitLoadout        = new CharacterOutfitLoadout();
    }
Esempio n. 8
0
    private void Setup(WeaponTypeSet templateArg)
    {
        setId   = templateArg.setId;
        setName = templateArg.setName;

        doesNeedAmmo = templateArg.doesNeedAmmo;

        weaponTypes = new List <WeaponType>();
        foreach (WeaponType iterType in templateArg.weaponTypes)
        {
            weaponTypes.Add(iterType);
        }
    }
Esempio n. 9
0
    public WeaponSlotData(WeaponSlotDataTemplate templateArg)
    {
        // if given a weapon
        if (templateArg.weaponDataTemplate != null)
        {
            slotWeapon = new WeaponData(templateArg.weaponDataTemplate);
        }
        // else NO weapon template given
        else
        {
            slotWeapon = null;
        }

        requiredWeaponTypeSet = new WeaponTypeSet(templateArg.weaponTypeSetTemplate);
    }
Esempio n. 10
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WeaponTypeSet obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Esempio n. 11
0
    public AmmoPouch(AmmoPouchTemplate templateArg)
    {
        Setup(templateArg.template);

        ammoType = new WeaponTypeSet(templateArg.ammoTypeTemplate);
    }
Esempio n. 12
0
 public static WeaponTypeSet specialWeaponTypes() {
   WeaponTypeSet ret = new WeaponTypeSet(bwapiPINVOKE.specialWeaponTypes(), false);
   return ret;
 }
Esempio n. 13
0
 public AmmoPouch GetAmmoPouchFromAmmoType(WeaponTypeSet ammoTypeArg)
 {
     return(ammoPouches.Find(iterPouch => iterPouch.ammoType.setId == ammoTypeArg.setId));
 }
Esempio n. 14
0
 private void Setup(WeaponSlotData templateArg)
 {
     slotWeapon            = new WeaponData(templateArg.slotWeapon);
     requiredWeaponTypeSet = new WeaponTypeSet(templateArg.requiredWeaponTypeSet);
 }
Esempio n. 15
0
 private void Setup()
 {
     slotWeapon            = null;
     requiredWeaponTypeSet = null;
 }
Esempio n. 16
0
 public WeaponTypeSet(WeaponTypeSet templateArg)
 {
     Setup(templateArg);
 }