One serializer (or custom type) for multiple classes
Options
Is there a way to add just one serializer that can handle mutiple types?
Something like:
And then that line of code is enough to serialize the following classes:
Something like:
PhotonPeer.RegisterType(typeof(IAddressable), 255, SerializeAddressable, DeserializeAddressable);
And then that line of code is enough to serialize the following classes:
class AddressableItem : IAddressable
class AddressableSkill : IAddressable
class AddressableCharacter : IAddressable
0
Comments
-
Nothing?0