HazelrahBL / EraOfTribesTTS

Era of Tribes Board Game mod for Tabletop Simulator
2 stars 1 forks source link

[FEATURE] Add rotation snap points on player board #16

Open HazelrahBL opened 4 years ago

HazelrahBL commented 4 years ago

Is your feature request related to a problem? Please describe. When attempting to return a city or a vassal to the player board, there are no snap points so it's very difficult to return them properly.

Describe the solution you'd like Add rotation snap points on the player boards for cities and vassals.

HazelrahBL commented 4 years ago

II looked into this a little today. When adding snap points to a stated object, you have to add them to every state (which makes sense when you think about it). But there are 4 chooser boards (5 if you count the one under the table) each with 10 tribe states, and each of those states will need 32 snap points, each one of which is 10 lines in the JSON file each. That's 16000 lines of JSON!

Apart from being a pain to add those lines, it also bloats the JSON file.

There is a setSnapPoint() API call. There should be a way to set these in the states player board object programmatically with very few lines of code. My first attempt to do so tonight didn't bwork so I'll try again later.