HangarSerializer GetHangarSerializer() { HangarSerializer hs = new HangarSerializer(); hs.workBuildingSerializer = GetWorkBuildingSerializer(); hs.constructing = constructing; hs.shuttle_id = (shuttle == null ? -1 : shuttle.ID); return(hs); }
override public void Load(StructureSerializer ss, SurfaceBlock sblock) { LoadStructureData(ss, sblock); HangarSerializer hs = new HangarSerializer(); GameMaster.DeserializeByteArray <HangarSerializer>(ss.specificData, ref hs); constructing = hs.constructing; LoadWorkBuildingData(hs.workBuildingSerializer); shuttle = Shuttle.GetShuttle(hs.shuttle_id); }