public override void OnSetToCurrent() { Console.AssignCommand("fill", (args) => { terrainOperations.FillWith(minCorner.X, minCorner.Y, minCorner.Z, maxCorner.X, maxCorner.Y, maxCorner.Z, int.Parse(args[0])); }); }
public override void OnSetToCurrent() { Console.AssignCommand("setData", delegate(string[] args) { if (terrainRaycast.LookingAt.HasValue) { Point3 p = terrainRaycast.LookingAt.Value.Position; terrainManager.ChangeCell(p.X, p.Y, p.Z, BlockTerrain.ReplaceData(terrainManager.Terrain.GetCellValue(p.X, p.Y, p.Z), int.Parse(args[0]))); } }); Console.AssignCommand("setContent", delegate(string[] args) { placeBlockValue = int.Parse(args[0]); }); }