public static N8Level AttachLevel(N8Level Input, N8Block To, bool Absolute = true) { var NotLands = Utilities.GetNotLands(Input); foreach (N8Block b in NotLands) { if (Absolute) { To.AttachToMeAbsolute(b); } else { To.AttachToMe(b); } } return Input; }
private static void EnforceBounds(N8Block b) { if (b.position.Z < -1000) { b.position.Z = -1000; } if (b.position.Z > 2000) { b.position.Z = 2000; } if (b.position.X < -2000) { b.position.X = -2000; } if (b.position.X > 2000) { b.position.X = 2000; } if (b.position.Y < -2000) { b.position.Y = -2000; } if (b.position.Y > 2000) { b.position.Y = 2000; } }