public void ExposeData() { MapExposeUtility.ExposeUshort(map, (IntVec3 c) => (ushort)((roofGrid[map.cellIndices.CellToIndex(c)] != null) ? roofGrid[map.cellIndices.CellToIndex(c)].shortHash : 0), delegate(IntVec3 c, ushort val) { SetRoof(c, DefDatabase <RoofDef> .GetByShortHash(val)); }, "roofs"); }
public void ExposeData() { MapExposeUtility.ExposeUshort(this.map, (IntVec3 c) => this.roofGrid[this.map.cellIndices.CellToIndex(c)], delegate(IntVec3 c, ushort val) { this.SetRoof(c, DefDatabase <RoofDef> .GetByShortHash(val)); }, "roofs"); }
public ThingDef ThingDefAt(IntVec3 c) { return(DefDatabase <ThingDef> .GetByShortHash(this.defGrid[this.map.cellIndices.CellToIndex(c)])); }
private void <ExposeData> m__1(IntVec3 c, ushort val) { this.SetRoof(c, DefDatabase <RoofDef> .GetByShortHash(val)); }
public RoofDef RoofAt(int x, int z) { return(DefDatabase <RoofDef> .GetByShortHash(this.roofGrid[this.map.cellIndices.CellToIndex(x, z)])); }
public RoofDef RoofAt(IntVec3 c) { return(DefDatabase <RoofDef> .GetByShortHash(this.roofGrid[this.map.cellIndices.CellToIndex(c)])); }