// Token: 0x0600000B RID: 11 RVA: 0x00002348 File Offset: 0x00000548 public static TerrainInstance MakeTerrainInstance(this SpecialTerrain tDef, Map map, IntVec3 loc) { var terrainInstance = (TerrainInstance)Activator.CreateInstance(tDef.terrainInstanceClass); terrainInstance.def = tDef; terrainInstance.Map = map; terrainInstance.Position = loc; return(terrainInstance); }
public void RegisterAt(SpecialTerrain special, IntVec3 cell) { if (!terrains.ContainsKey(cell)) { var newTerr = special.MakeTerrainInstance(map, cell); newTerr.Init(); terrains.Add(cell, newTerr); } }
// Token: 0x0600002B RID: 43 RVA: 0x00002AE8 File Offset: 0x00000CE8 public void RegisterAt(SpecialTerrain special, IntVec3 cell) { bool flag = !this.terrains.ContainsKey(cell); if (flag) { TerrainInstance terrainInstance = special.MakeTerrainInstance(this.map, cell); terrainInstance.Init(); this.terrains.Add(cell, terrainInstance); } }
// Token: 0x0600002B RID: 43 RVA: 0x00002AE8 File Offset: 0x00000CE8 public void RegisterAt(SpecialTerrain special, IntVec3 cell) { if (terrains.ContainsKey(cell)) { return; } var terrainInstance = special.MakeTerrainInstance(map, cell); terrainInstance.Init(); terrains.Add(cell, terrainInstance); }
// Token: 0x0600002A RID: 42 RVA: 0x00002ACC File Offset: 0x00000CCC public void RegisterAt(SpecialTerrain special, int i) { this.RegisterAt(special, this.map.cellIndices.IndexToCell(i)); }