Esempio n. 1
0
    override public void Load(StructureSerializer ss, SurfaceBlock sblock)
    {
        LoadStructureData(ss, sblock);
        PlantSerializer ps = new PlantSerializer();

        GameMaster.DeserializeByteArray <PlantSerializer>(ss.specificData, ref ps);
        LoadPlantData(ps);
    }
Esempio n. 2
0
    protected PlantSerializer GetPlantSerializer()
    {
        PlantSerializer ps = new PlantSerializer();

        ps.id        = plant_ID;
        ps.lifepower = lifepower;
        ps.growth    = growth;
        ps.stage     = stage;
        return(ps);
    }
Esempio n. 3
0
 protected void LoadPlantData(PlantSerializer ps)
 {
     lifepower = ps.lifepower;
     SetStage(ps.stage);
     growth = ps.growth;
 }