So I am reading the check marked reply on this post: http://gamedev.stackexchange.com/questions/30296/loading-class-instance-from-xml-with-texture2d
I have never used generic classes before and am absolutely confused on what he is talking about. I read up on them and understand how they should be used, but the respondent's answer doesn't sound like it makes sense in a generic class.
What exactly is he saying I should be passing into the generic class' constructor? Is he saying pass the Weapon instance into it, or the Texture instance? Because if I pass a Weapon instance into it as T t, I cannot call t.TextureId because the Type is unknown.