コード例 #1
0
 public void SetProperty(ItemSpecProperty prop)
 {
     if (_properties.ContainsKey(prop.PropertyId))
     {
         _properties[prop.PropertyId].Value = prop.Value;
     }
     else
     {
         _properties.Add(prop.PropertyId, new ItemSpecProperty(prop));
     }
 }
コード例 #2
0
        public static void SetDurabilityMax(this ItemSpec item, short value)
        {
            var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.DurabilityMax, value);

            item.SetProperty(spec);
        }
コード例 #3
0
        public static void SetCost(this ItemSpec item, int value)
        {
            var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.Cost, value);

            item.SetProperty(spec);
        }
コード例 #4
0
        public static void SetModelName(this ItemSpec item, string value)
        {
            var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.ModelName, value);

            item.SetProperty(spec);
        }
コード例 #5
0
        public static void SetHungerReduceAmount(this ItemSpec item, short value)
        {
            var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.HungerReduceAmount, value);

            item.SetProperty(spec);
        }
コード例 #6
0
        public static void SetDescription(this ItemSpec item, string value)
        {
            var spec = new ItemSpecProperty((short)ItemSpecPropertyEnum.Description, value);

            item.SetProperty(spec);
        }