I was hoping to be able to send a list of inventory items from the server to the client in response to a request from the client for it, only sending a small portion of a list of inventory items that the client needed to load some things properly. But a List of ItemInstance objects aren't able to be serialized/deserialized automatically with the MessageBase messages, it seems.
Do I need to write custom serialize/deserialize methods in order to pass that list of ItemInstance to the client, or is there an easier way to do that I just haven't been able to locate yet? That ItemInstance has a lot of data in it, so I didn't want to start writing one if there was something already available.
For reference (this fails because it can't have generic parameters, ie: List):
public class CoolDataMessage : MessageBase
{
public string thisTextGoesFine; // Good
public int thisNumberGoesFine; // Good
public List<ItemInstance> partialListOfInventoryItems; // Doesn't work
// Do I need to write my own serialize/deserialize methods here?
// Or is there some built-in way I could pass this partialListOfInventoryItems to the client properly?
}