Update RoomVisual.poly to also accept positions#113
Conversation
There was a problem hiding this comment.
Verified that the PR works.
This misses one example of poly usage, which is also the example given in the screeps documentation - using an array of objects that contain x and y properties (e.g. a path).
Recommend changing to poly(points: Array<{x:number, y:number} | [number, number] | RoomPosition>, style?: PolyStyle): RoomVisual; or equivalent.
Updated tsconfig.json newLine to meet new Typescript compiler casing requirements
|
The changes I've pushed allow objects meeting the |
|
I tested these changes and was unable to declare a RoomVisual Need to add I know this has been languishing here, but hopefully we can get this repo updated and such |
|
Added constructor object instance for RoomVisual as per @thaelina's suggestion and rebuilt. |
From the documentation: