Hello suppose I have an object say: Equip which contains a bunch of variables in the class.
I have already created the object and stored it into a Library object so it can be fetched later by an int ID.
Now suppose I create a Character object that wants to wear the Equip. The character object has a field say equipWeared.
I can either make equipWear an int to store the ID of the Equip I made or make it Equip type which is the class Equip is.
I am not making a new instance of Equip but just referencing it by assigning the variable the Equip from the Library object.
Which would be better and more efficient? Should I just put in an int ID number or put in a reference to the Equip?