Major Fishing changes
This commit is contained in:
parent
1a12d986c4
commit
9e91220be4
11 changed files with 173 additions and 49 deletions
|
|
@ -5,18 +5,26 @@ using UnityEngine;
|
|||
public class Item : ScriptableObject, IComparable<Item> {
|
||||
public string displayName;
|
||||
public string description;
|
||||
public int id; //TODO: create an actual ID System that makes snens
|
||||
private int _id = -1;
|
||||
public Sprite selectedSprite;
|
||||
public Sprite defaultSprite;
|
||||
public int cost;
|
||||
|
||||
|
||||
public int ID => _id;
|
||||
|
||||
public Item(string displayName, string description, int id) {
|
||||
this.displayName = displayName;
|
||||
this.description = description;
|
||||
this.id = id;
|
||||
this._id = id;
|
||||
}
|
||||
|
||||
public int CompareTo(Item other) {
|
||||
return this.id - other.id;
|
||||
return this._id - other._id;
|
||||
}
|
||||
|
||||
public void SetID(int id) {
|
||||
if (_id != -1) {
|
||||
_id = id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue