-
Notifications
You must be signed in to change notification settings - Fork 0
/
LootPoint.cs
80 lines (73 loc) · 1.84 KB
/
LootPoint.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
using UnityEngine;
using System.Collections;
[System.Serializable]
public class LootPoint
{
public string dotName;
public GameObject spawnInstance;
public LootPoint(string name, GameObject sI)
{
dotName = name;
spawnInstance = sI;
}
/*public string itemName;
public string itemDesc;
public int itemID;
public int amountOfSlots;
public float itemWeight;
public ItemOfType itemType;
public ItemSpawnPoint itemSpawnPoint;
public ItemRarity itemRarity;
public GameObject itemDragDropPrefab;
public GameObject itemPickupPrefab;
public Vector2 cellSize;
public Vector2 dragOffset;
public enum ItemOfType
{
Food,
Drink,
CraftingMaterial,
Placable
}
public enum ItemSpawnPoint
{
Industrial,
Military,
DestroyedVehicles,
Houses,
TestingRoom
}
public enum ItemRarity
{
VeryCommon,
Common,
SlightlyCommon,
Normal,
Rare,
VeryRare,
ExtremelyRare,
Legendary
}
*/
/*public Item(string name,int id,int slotsAmount,string desc,float itemW,ItemOfType type, ItemSpawnPoint spawnPoint, ItemRarity itemRare, Transform PickupPre, Transform DnDPre, float cellX, float cellY, int offsetLeft, Vector3 dragOff, Vector3 placeOff)
{
itemName = name;
itemID = id;
slotsAmount = amountOfSlots;
itemDesc = desc;
itemIcon = Resources.Load<Texture2D>("Item Icons/"+name);
itemWeight = itemW;
itemCellSizeX = cellX;
itemCellSizeY = cellY;
itemLeftOffset = offsetLeft;
itemType = type;
itemSpawnPoint = spawnPoint;
itemRarity = itemRare;
dragOff = dragOffset;
placeOff = placeOffset;
}*/
/*public Item()
{
itemID = -1;
}*/
}