示例#1
0
 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;
 }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }
示例#6
0
        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);
        }