override public void Load(StructureSerializer ss, SurfaceBlock sblock) { LoadStructureData(ss, sblock); PlantSerializer ps = new PlantSerializer(); GameMaster.DeserializeByteArray <PlantSerializer>(ss.specificData, ref ps); LoadPlantData(ps); }
protected PlantSerializer GetPlantSerializer() { PlantSerializer ps = new PlantSerializer(); ps.id = plant_ID; ps.lifepower = lifepower; ps.growth = growth; ps.stage = stage; return(ps); }
protected void LoadPlantData(PlantSerializer ps) { lifepower = ps.lifepower; SetStage(ps.stage); growth = ps.growth; }