Comparing version 0.5.0 to 0.6.0
@@ -54,3 +54,5 @@ 'use strict'; | ||
velocity: averageVectors(points.map(({ vel }) => vel)), | ||
stateMap | ||
get(id) { | ||
return stateMap.get(id); | ||
} | ||
}; | ||
@@ -57,0 +59,0 @@ } |
{ | ||
"name": "lr-core", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Line Rider core library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -55,5 +55,5 @@ import test from 'tape' | ||
let rider = engine.getRider(INDEX) | ||
let shoulder = rider.stateMap.get('SHOULDER') | ||
let butt = rider.stateMap.get('BUTT') | ||
let nose = rider.stateMap.get('NOSE') | ||
let shoulder = rider.get('SHOULDER') | ||
let butt = rider.get('BUTT') | ||
let nose = rider.get('NOSE') | ||
@@ -173,3 +173,3 @@ t.ok( | ||
.getRider(track.duration) | ||
.stateMap.get('RIDER_MOUNTED') | ||
.get('RIDER_MOUNTED') | ||
.framesSinceUnbind | ||
@@ -185,6 +185,6 @@ t.equal(track.duration - riderCrashed, 1 + track.duration, 'rider should not have crashed') | ||
t.comment('Crashing at frame 433: order of lines is backwards') | ||
t.equal(engine.getRider(416).stateMap.get('TAIL').pos.x, 804.1054060579701, 'frame 416 tail should be consistent') | ||
t.equal(engine.getRider(416).stateMap.get('NOSE').pos.x, 813.3255772705486, 'frame 416 nose should be consistent') | ||
t.equal(engine.getRider(417).stateMap.get('TAIL').pos.x, 797.8845320873339, 'frame 417 tail should be consistent') | ||
t.equal(engine.getRider(417).stateMap.get('NOSE').pos.x, 810.0876743591476, 'frame 417 nose should be consistent') | ||
t.equal(engine.getRider(416).get('TAIL').pos.x, 804.1054060579701, 'frame 416 tail should be consistent') | ||
t.equal(engine.getRider(416).get('NOSE').pos.x, 813.3255772705486, 'frame 416 nose should be consistent') | ||
t.equal(engine.getRider(417).get('TAIL').pos.x, 797.8845320873339, 'frame 417 tail should be consistent') | ||
t.equal(engine.getRider(417).get('NOSE').pos.x, 810.0876743591476, 'frame 417 nose should be consistent') | ||
// printSim(engine, 2, 416) | ||
@@ -191,0 +191,0 @@ t.end() |
@@ -35,5 +35,7 @@ import classicRiderBody from './rider-data' | ||
velocity: averageVectors(points.map(({vel}) => vel)), | ||
stateMap | ||
get (id) { | ||
return stateMap.get(id) | ||
} | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159333
5219