-
Notifications
You must be signed in to change notification settings - Fork 7
/
7Serializables.cs
36 lines (27 loc) · 1.14 KB
/
7Serializables.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using GTA;
using System;
namespace ZombiesMod
{
[Serializable]
public class FoodInventoryItem : InventoryItemBase, IFood, IAnimatable, ICraftable
{
public FoodInventoryItem(int amount, int maxAmount, string id, string description, string animationDict, string animationName, AnimationFlags animationFlags, int animationDuration, FoodType foodType, float restorationAmount)
: base(amount, maxAmount, id, description)
{
this.AnimationDict = animationDict;
this.AnimationName = animationName;
this.AnimationFlags = animationFlags;
this.AnimationDuration = animationDuration;
this.FoodType = foodType;
this.RestorationAmount = restorationAmount;
}
public string AnimationDict { get; set; }
public string AnimationName { get; set; }
public AnimationFlags AnimationFlags { get; set; }
public int AnimationDuration { get; set; }
public FoodType FoodType { get; set; }
public float RestorationAmount { get; set; }
public CraftableItemComponent[] RequiredComponents { get; set; }
public NearbyResource NearbyResource { get; set; }
}
}