public static object Deserializer(System.Type expected, global::Orleans.Serialization.BinaryTokenStreamReader stream) { Server.ChrRaces result = new Server.ChrRaces(); result.CinematicSequence = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream))); result.ExpensionRequired = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream))); result.ExplorationData = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream))); result.Faction = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream))); result.FemaleName = ((string[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string[]), stream))); result.Flags = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream))); result.ModelFemale = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream))); result.ModelMale = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream))); result.Name = ((string[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string[]), stream))); result.NeutralName = ((string[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string[]), stream))); result.Race = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream))); object objResult = ((object)(result)); object temp12 = ((byte[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(byte[]), stream))); fieldInfo12.SetValue(objResult, temp12); object temp13 = ((string)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(string), stream))); fieldInfo13.SetValue(objResult, temp13); object temp14 = ((byte[])(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(byte[]), stream))); fieldInfo14.SetValue(objResult, temp14); object temp15 = ((uint)(Orleans.Serialization.SerializationManager.DeserializeInner(typeof(uint), stream))); fieldInfo15.SetValue(objResult, temp15); return objResult; }
public static object DeepCopier(object original) { Server.ChrRaces input = ((Server.ChrRaces)(original)); Server.ChrRaces result = new Server.ChrRaces(); Orleans.Serialization.SerializationContext.Current.RecordObject(original, result); result.CinematicSequence = input.CinematicSequence; result.ExpensionRequired = input.ExpensionRequired; result.ExplorationData = input.ExplorationData; result.Faction = input.Faction; result.FemaleName = ((string[])(Orleans.Serialization.SerializationManager.DeepCopyInner(input.FemaleName))); result.Flags = input.Flags; result.ModelFemale = input.ModelFemale; result.ModelMale = input.ModelMale; result.Name = ((string[])(Orleans.Serialization.SerializationManager.DeepCopyInner(input.Name))); result.NeutralName = ((string[])(Orleans.Serialization.SerializationManager.DeepCopyInner(input.NeutralName))); result.Race = input.Race; object objResult = ((object)(result)); object temp12 = ((byte[])(Orleans.Serialization.SerializationManager.DeepCopyInner(fieldInfo12.GetValue(input)))); fieldInfo12.SetValue(objResult, temp12); object temp13 = input.ShortName; fieldInfo13.SetValue(objResult, temp13); object temp14 = ((byte[])(Orleans.Serialization.SerializationManager.DeepCopyInner(fieldInfo14.GetValue(input)))); fieldInfo14.SetValue(objResult, temp14); object temp15 = input.Team; fieldInfo15.SetValue(objResult, temp15); return objResult; }