metadata:
Contains information about the app that generated the JSON text, such as the app name. Currently ignored during loading, allowing flexible use.
JSON textを生成したアプリ名などを記載。現在のところ読み込み時は無視する仕様なので自由に使用可能。
positiveDirection:
Specifies the positive direction of the coordinate axes with "LeftDown", "LeftUp", "RightDown", or "RightUp". Up, Down, Left, and Right are defined based on an orientation where the back line is above the house and the hog line is below it. Mobile Curling Editor uses "LeftDown".
"LeftDown","LeftUp","RightDown","RightUp"の4つで座標軸の正方向を指定。バックラインがハウスの上側、ホッグラインが下側となる向きを基準として、Up(上)、Down(下)、Left(左)、Right(右)を定義。Mobile Curling Editorでは"LeftDown"を採用。
houseCenter:
Defines the coordinates of the house center. Mobile Curling Editor uses (0,0).
ハウスの中心の座標を指定。Mobile Curling Editorでは(0,0)を採用。
houseRadius:
Defines the scale of the coordinate system by specifying the radius of the house (12-foot circle) as a numerical "value" and "unit". Mobile Curling Editor uses {"value":1.829,"unit":"m"}.
ハウス(12-foot circle)の半径を示す数値 "value" と単位 "unit" を記すことで、座標系のスケールを定義。Mobile Curling Editorでは {"value":1.829,"unit":"m"} を使用。
stones
color:
Indicates the stone color as "red" or "yellow".
"red" or "yellow"を記載。
position(x,y):
Mobile Curling Editor records stone positions in real-world curling scale (meters), to three decimal places.
Mobile Curling Editorでは、実際のカーリングのスケール(単位m)で小数点第3位まで記載。
number:
Assigns a number to each stone based on its proximity to the house center, in ascending order of distance.
ハウス中心から近い順に振られた数字。
JSON Text Format v1.1 Specification
The Curling Stone Placement JSON Text Format v1.1 Specification and the Mobile Curling Editor v1.3.0 Implementation Specification are available on GitHub.
JSON Text Format v1.1 仕様書
Curling Stone Placement JSON Text Format v1.1 の一般仕様書およびMobile Curling Editor v1.3.0の実装仕様書をGitHubで公開しています。
GitHub: Curling-Stone-Placement-JSON
{ "metadata": "MobileCurlingEditor",
"positiveDirection": "LeftDown",
"houseCenter": {"x": 0, "y": 0},
"houseRadius": {"value": 1.829, "unit": "m"},
"stones": [
{"color":"red","position":{"x":0.620,"y":-0.620},"number":1},
{"color":"red","position":{"x":-0.620,"y":-0.620},"number":2},
{"color":"red","position":{"x":0.620,"y":0.620},"number":3},
{"color":"red","position":{"x":-0.620,"y":0.620},"number":4},
{"color":"red","position":{"x":0.000,"y":-1.518},"number":5},
{"color":"red","position":{"x":-1.518,"y":0.000},"number":6},
{"color":"red","position":{"x":0.000,"y":1.518},"number":7},
{"color":"red","position":{"x":1.518,"y":0.000},"number":8}
]}
{ "metadata": "MobileCurlingEditor",
"positiveDirection": "LeftDown",
"houseCenter": {"x": 0, "y": 0},
"houseRadius": {"value": 1.829, "unit": "m"},
"stones": [
{"color":"red","position":{"x":-0.250,"y":2.700},"number":1},
{"color":"yellow","position":{"x":0.250,"y":2.700},"number":2},
{"color":"red","position":{"x":0.700,"y":2.700},"number":3},
{"color":"yellow","position":{"x":-0.700,"y":2.700},"number":4},
{"color":"red","position":{"x":-1.200,"y":2.700},"number":5},
{"color":"yellow","position":{"x":1.200,"y":2.700},"number":6},
{"color":"red","position":{"x":1.700,"y":2.700},"number":7},
{"color":"yellow","position":{"x":-1.700,"y":2.700},"number":8}
]}
{ "metadata": "MobileCurlingEditor",
"positiveDirection": "LeftDown",
"houseCenter": {"x": 0, "y": 0},
"houseRadius": {"value": 1.829, "unit": "m"},
"stones": [
{"color":"red","position":{"x":0.000,"y":2.000},"number":1},
{"color":"red","position":{"x":0.000,"y":2.360},"number":2},
{"color":"red","position":{"x":0.000,"y":2.720},"number":3},
{"color":"red","position":{"x":0.000,"y":3.080},"number":4},
{"color":"red","position":{"x":0.000,"y":3.440},"number":5},
{"color":"red","position":{"x":0.000,"y":3.800},"number":6},
{"color":"red","position":{"x":0.000,"y":4.160},"number":7},
{"color":"red","position":{"x":0.000,"y":4.520},"number":8}
]}
{ "metadata": "MobileCurlingEditor",
"positiveDirection": "LeftDown",
"houseCenter": {"x": 0, "y": 0},
"houseRadius": {"value": 1.829, "unit": "m"},
"stones": [
{"color":"red","position":{"x":0.000,"y":1.978},"number":1},
{"color":"red","position":{"x":0.000,"y":2.276},"number":2},
{"color":"red","position":{"x":0.000,"y":2.574},"number":3},
{"color":"red","position":{"x":0.000,"y":2.872},"number":4},
{"color":"red","position":{"x":0.000,"y":3.170},"number":5},
{"color":"red","position":{"x":0.000,"y":3.468},"number":6},
{"color":"red","position":{"x":0.000,"y":3.766},"number":7},
{"color":"red","position":{"x":0.000,"y":4.064},"number":8}
]}
{ "metadata": "MobileCurlingEditor",
"positiveDirection": "LeftDown",
"houseCenter": {"x": 0, "y": 0},
"houseRadius": {"value": 1.829, "unit": "m"},
"stones": [
{"color":"yellow","position":{"x":-0.008,"y":-1.075},"number":1},
{"color":"red","position":{"x":-0.004,"y":3.361},"number":2}
]}
{ "metadata": "MobileCurlingEditor",
"positiveDirection": "LeftDown",
"houseCenter": {"x": 0, "y": 0},
"houseRadius": {"value": 1.829, "unit": "m"},
"stones": [
{"color":"yellow","position":{"x":-0.008,"y":-1.075},"number":1},
{"color":"red","position":{"x":0.000,"y":4.260},"number":2}
]}