I am working on a game and I have a List of available characters each player chooses from, each character contains a (3D)Model and a Texture2D Icon that has been loaded in through the Content Pipeline.
The issue is, I want more than one player to select the same character, but player1Char = charDatabase[choosenChar];
is by reference, so any repeat selections would refer to the same Model.
Here's the constructor of the Character class I am trying to copy, CModel class is just a model with with position, rotation and scale values for that model.
public Character(CModel model, string name, int HP, Vector2 iconPositionOnSheet)
What I think I want to do is make a deep copy of that class, but the Model class is not serializeable. The only other way I can think of doing it is loading up the same model from its file with the Content.Load if a repeat is selected, but I am wondering if there is a way to simply copy the character class and therefore the model, because that would work easier for me.