// TOWN_07のカメラデータ // FieldMapCameraDataに登録されているEnumIntを利用するために必須 fmc <- FieldMapCameraData(); // 実際のデータ data <- [ { //a tlPosition = Vector3( -42.0, 0.0, -22.0), brPosition = Vector3( 6.0, 0.0, 10.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 15.0, radian = 40.0, lookRad = 30.0, position = Vector3( -42.0, 0.0, 10.0), }, { length = 15.0, radian = 40.0, lookRad = 30.0, position = Vector3( -42.0, 0.0, - 5.0), }, { length = 20.0, radian = 40.0, lookRad = 30.0, position = Vector3( -42.0, 0.0, -10.0), }, { length = 30.0, radian = 40.0, lookRad = 30.0, position = Vector3( -42.0, 0.0, -15.0), }, { length = 30.0, radian = 40.0, lookRad = 30.0, position = Vector3( -42.0, 0.0, -22.0), }, ], }, { //b tlPosition = Vector3( -46.0, 0.0, -44.0), brPosition = Vector3( -2.0, 0.0, -22.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 30.0, radian = 40.0, lookRad = 30.0, position = Vector3( -31.0, 0.0, -22.0), }, { length = 50.0, radian = 10.0, lookRad = 30.0, position = Vector3( -31.0, 0.0, -44.0), }, ], }, ]; // データ追加用関数 function ExeScript(object) { // データクリア object.loadDataClear(); // nutにあるデータを追加していく foreach(idx, val in ::data) { // 範囲エリア情報 object.loadDataAddArea(idx, val.tlPosition, val.brPosition, val.tag); // ポイント情報 foreach(idx2, val2 in val.data) { object.loadDataAddPoint(idx, idx2, val2.length, val2.radian, val2.lookRad, val2.position); } } }