public override void Serialize(ref Strategy.Ethnicity obj, ArchiveMode mode, SerializationStream stream) { // Serialize parent (for now we don't copy reference back because it shouldn't change) SiliconStudio.Xenko.Engine.AsyncScript parentObj = obj; parentSerializer.Serialize(ref parentObj, mode, stream); obj = (Strategy.Ethnicity)parentObj; }
public override void Serialize(ref Strategy.country_reign_form obj, ArchiveMode mode, SerializationStream stream) { // Serialize parent (for now we don't copy reference back because it shouldn't change) SiliconStudio.Xenko.Engine.AsyncScript parentObj = obj; parentSerializer.Serialize(ref parentObj, mode, stream); obj = (Strategy.country_reign_form)parentObj; nameSerializer.Serialize(ref obj.name, mode, stream); nameSerializer.Serialize(ref obj.form_id, mode, stream); }
public override void Serialize(ref Strategy.Government obj, ArchiveMode mode, SerializationStream stream) { // Serialize parent (for now we don't copy reference back because it shouldn't change) SiliconStudio.Xenko.Engine.AsyncScript parentObj = obj; parentSerializer.Serialize(ref parentObj, mode, stream); obj = (Strategy.Government)parentObj; staffSerializer.Serialize(ref obj.staff, mode, stream); leaderSerializer.Serialize(ref obj.leader, mode, stream); }
public override void Serialize(ref Strategy.City_Classification obj, ArchiveMode mode, SerializationStream stream) { // Serialize parent (for now we don't copy reference back because it shouldn't change) SiliconStudio.Xenko.Engine.AsyncScript parentObj = obj; parentSerializer.Serialize(ref parentObj, mode, stream); obj = (Strategy.City_Classification)parentObj; pop_limitSerializer.Serialize(ref obj.pop_limit, mode, stream); nameSerializer.Serialize(ref obj.name, mode, stream); nameSerializer.Serialize(ref obj.class_id, mode, stream); }
public override void Serialize(ref Strategy.Province obj, ArchiveMode mode, SerializationStream stream) { // Serialize parent (for now we don't copy reference back because it shouldn't change) SiliconStudio.Xenko.Engine.AsyncScript parentObj = obj; parentSerializer.Serialize(ref parentObj, mode, stream); obj = (Strategy.Province)parentObj; nameSerializer.Serialize(ref obj.name, mode, stream); province_idSerializer.Serialize(ref obj.province_id, mode, stream); populationsSerializer.Serialize(ref obj.populations, mode, stream); citiesSerializer.Serialize(ref obj.cities, mode, stream); }
public override void Serialize(ref Strategy.Government_Staff_Person obj, ArchiveMode mode, SerializationStream stream) { // Serialize parent (for now we don't copy reference back because it shouldn't change) SiliconStudio.Xenko.Engine.AsyncScript parentObj = obj; parentSerializer.Serialize(ref parentObj, mode, stream); obj = (Strategy.Government_Staff_Person)parentObj; nameSerializer.Serialize(ref obj.name, mode, stream); nameSerializer.Serialize(ref obj.gsp_id, mode, stream); religionSerializer.Serialize(ref obj.religion, mode, stream); believerSerializer.Serialize(ref obj.believer, mode, stream); }