Exemple #1
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="jsonData">オブジェクト情報</param>
 public OtherObjectEntity(OtherObjectJsonData jsonData)
 {
     _type     = jsonData.type;
     _position = jsonData.measureIndex + jsonData.measurePosition.To01();
     _value    = jsonData.value;
 }
Exemple #2
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="speedChangeJsonData">速度変更情報</param>
 public SpeedChangeEntity(OtherObjectJsonData speedChangeJsonData)
 {
     _position = speedChangeJsonData.measureIndex + speedChangeJsonData.measurePosition.To01();
     _speed    = float.Parse(speedChangeJsonData.value);
 }