コード例 #1
0
            /* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

            public EquipmentList()
            {
                characteristic = Characteristic.CreateEmpty();
                partLength     = Enum.GetValues(typeof(PartOfEquipment)).Length;
                weaponSlot     = ( int )PartOfEquipment.Weapon;
                slots          = new Dictionary <int, int>();
                for (iterator = 0; iterator < partLength; iterator++)
                {
                    slots[iterator] = -1;
                }
            }
コード例 #2
0
 public Effect(bool isPassive, Personage sender, Personage target = null)
 {
     nameId                = 5;
     iconID                = 0;
     Timer                 = 0f;
     Count                 = 0;
     IsPassive             = isPassive;
     Dispellable           = true;
     NoLongerNeeded        = false;
     CurrentCharacteristic = Characteristic.CreateEmpty();
     Sender                = sender;
     Target                = target;
 }
コード例 #3
0
 public EffectList()
 {
     effects        = new List <Effect>();
     iterator       = 0;
     characteristic = Characteristic.CreateEmpty();
 }
コード例 #4
0
        /* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

        private void calculateCharacteristic()
        {
            baseCharacteristic    = Characteristic.CreateBase(level, rank);
            currentCharacteristic = Characteristic.CreateEmpty();
            updateCharacteristic();
        }