private static void write_obstacle(StreamWriter file, obstacle_s ob, int prev) { string pre = ""; for (int i = 0; i < prev; i++) { pre += " "; } file.WriteLine(pre + "<obstacle>"); file.WriteLine(pre + "name: " + ob.name); write_waypoint(file, ob.center, prev + 2); file.WriteLine(pre + "radius: " + ob.rad.ToString("F4", culture)); file.WriteLine(pre + "<end_obstacle>"); }
public int rot; // 0 = clockwise, 1 = counterclockwise; public buoy_s(string name, obstacle_s body, int rot) { this.name = name; this.body = body; this.rot = rot; }
public buoy_list_s(string name, obstacle_s body, int rot) { this.bu.name = name; this.bu.body = body; this.bu.rot = rot; this.isChecked = true; }