// TOWN_07のカメラデータ // FieldMapCameraDataに登録されているEnumIntを利用するために必須 fmc <- FieldMapCameraData(); // 実際のデータ data <- [ { tlPosition = Vector3( -26.0, 0.0, -2.0), brPosition = Vector3( 17.0, 0.0, 2.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_X, data = [ { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( -13.0, 0.0, 0.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( -17.0, 0.0, 0.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( -2.0, 0.0, 0.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 2.0, 0.0, 0.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 4.0, 0.0, 0.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 8.0, 0.0, 0.0), }, ], }, { tlPosition = Vector3( -16.0, 0.0, -34.0), brPosition = Vector3( -14.0, 0.0, -2.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( -15.0, 0.0, -2.0), }, { length = 20.0, radian = -90.0, lookRad = 20.0, position = Vector3( -15.0, 0.0, -9.0), }, { length = 20.0, radian = -90.0, lookRad = 20.0, position = Vector3( -15.0, 0.0, -13.0), }, ], }, { tlPosition = Vector3( -27.0, 0.0, -12.0), brPosition = Vector3( -16.0, 0.0, -10.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_X, data = [ { length = 20.0, radian = -90.0, lookRad = 20.0, position = Vector3( -16.0, 0.0, -11.0), }, { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( -17.0, 0.0, -11.0), }, ], }, { tlPosition = Vector3( -1.0, 0.0, 2.0), brPosition = Vector3( 1.0, 0.0, 19.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 0.0, 0.0, 2.0), }, { length = 20.0, radian = -90.0, lookRad = 20.0, position = Vector3( 0.0, 0.0, 1.0), }, ], }, { tlPosition = Vector3( 5.0, 0.0, -10.0), brPosition = Vector3( 7.0, 0.0, -2.0), tag = fmc.FIELDMAP_CAMERA_DATA_CLOSELY_Z, data = [ { length = 20.0, radian = 0.0, lookRad = 20.0, position = Vector3( 6.0, 0.0, -2.0), }, { length = 20.0, radian = -90.0, lookRad = 20.0, position = Vector3( 6.0, 0.0, -3.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); } } }