public void ExposeData()
 {
     Scribe_Collections.LookList <Fluffy_BlueprintElement>(ref this.contents, "BuildableThings", LookMode.Deep, new object[]
     {
         //this
     });
     Scribe_Values.LookValue <string>(ref this.name, "Name", null, false);
     Scribe_Values.LookValue <IntVec2>(ref this.size, "Size", default(IntVec2), false);
 }
        public void ExposeData()
        {
            Scribe_Values.LookValue <string>(ref this.defName, "defName", null, true);
            Scribe_Values.LookValue <string>(ref this.createdBy, "createdBy", null, true);
            Scribe_Values.LookValue <string>(ref this.techLevelRequired, "techLevelRequired", null, true);
            Scribe_Values.LookValue <int>(ref this.chance, "chance", -1, true);
            Scribe_Values.LookValue <IntVec2>(ref this.size, "size", IntVec2.Invalid, true);
            Scribe_Values.LookValue <bool>(ref this.canHaveHoles, "canHaveHoles", false, true);
            Scribe_Values.LookValue <bool>(ref this.createTrigger, "createTrigger", false, true);

            Scribe_Values.LookValue <string>(ref this.buildingData, "buildingData", null, true);
            Scribe_Collections.LookList <LegendData>(ref this.buildingLegend, "buildingLegend", LookMode.Deep, new object[] { });
            Scribe_Collections.LookList <LegendData>(ref this.rotationLegend, "rotationLegend", LookMode.Deep, new object[] { });
            Scribe_Values.LookValue <string>(ref this.floorData, "floorData", null, true);
            Scribe_Collections.LookList <LegendData>(ref this.floorLegend, "floorLegend", LookMode.Deep, new object[] { });

            Scribe_Values.LookValue <string>(ref this.itemData, "itemData", null, true);
            Scribe_Collections.LookList <LegendData>(ref this.itemLegend, "itemLegend", LookMode.Deep, new object[] { });
            Scribe_Values.LookValue <string>(ref this.pawnData, "pawnData", null, true);
            Scribe_Collections.LookList <LegendData>(ref this.pawnLegend, "pawnLegend", LookMode.Deep, new object[] { });
        }
Exemplo n.º 3
0
 public static void LookList <T>(ref List <T> list, string label, LookMode lookMode = LookMode.Undefined, params object[] ctorArgs)
 {
     Scribe_Collections.LookList <T>(ref list, false, label, lookMode, ctorArgs);
 }