Example #1
0
 public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream)
 {
     Shared.PlayerCreateInfo result = new Shared.PlayerCreateInfo();
     result.@class = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream)));
     result.map = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream)));
     result.orientation = ((float)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(float), stream)));
     result.position_x = ((float)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(float), stream)));
     result.position_y = ((float)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(float), stream)));
     result.position_z = ((float)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(float), stream)));
     result.race = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream)));
     result.zone = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream)));
     return result;
 }
Example #2
0
 public static object DeepCopier(object original)
 {
     Shared.PlayerCreateInfo input = ((Shared.PlayerCreateInfo)(original));
     Shared.PlayerCreateInfo result = new Shared.PlayerCreateInfo();
     Orleans.Serialization.SerializationContext.Current.RecordObject(original, result);
     result.@class = input.@class;
     result.map = input.map;
     result.orientation = input.orientation;
     result.position_x = input.position_x;
     result.position_y = input.position_y;
     result.position_z = input.position_z;
     result.race = input.race;
     result.zone = input.zone;
     return result;
 }