forked from 0ad/0ad
parent
bff070c6cb
commit
dc722d76f3
@ -387,6 +387,9 @@ AddMock(10, IID_Position, {
|
|||||||
GetPosition: function() {
|
GetPosition: function() {
|
||||||
return {x:1, y:2, z:3};
|
return {x:1, y:2, z:3};
|
||||||
},
|
},
|
||||||
|
GetRotation: function() {
|
||||||
|
return {x:4, y:5, z:6};
|
||||||
|
},
|
||||||
IsInWorld: function() {
|
IsInWorld: function() {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
@ -404,6 +407,7 @@ TS_ASSERT_UNEVAL_EQUALS(cmp.GetEntityState(-1, 10), {
|
|||||||
selectionGroupName: "Selection Group Name",
|
selectionGroupName: "Selection Group Name",
|
||||||
},
|
},
|
||||||
position: {x:1, y:2, z:3},
|
position: {x:1, y:2, z:3},
|
||||||
|
rotation: {x:4, y:5, z:6},
|
||||||
hitpoints: 50,
|
hitpoints: 50,
|
||||||
maxHitpoints: 60,
|
maxHitpoints: 60,
|
||||||
needsRepair: false,
|
needsRepair: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user