-
-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FMG 2.0: Codebase refactoring and modernization #842
base: master
Are you sure you want to change the base?
Conversation
It's not necessary at all. But that is one-time action that will allow a lot of cool things in the future. It also forces to write a better code and think a lot about the structure |
This change is really welcome! Thanks for your hard work, that must be
painful.
I'm interested in vite's on demand refresh feature. How can I kick in
easily ? (Which template to use if any, are there any pitalls to avoid?)
Azgaar ***@***.***> ezt írta (időpont: 2022. jún. 26., Vas
11:12):
… It's not necessary at all. But that is one-time action that will allow a
lot of cool things in the future. It also forces to write a better code and
think a lot about the structure
—
Reply to this email directly, view it on GitHub
<#842 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUMDVONUGBMHYIPMYBWTWDVRANJJANCNFSM5ZZCTPXA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Do you mean hot module replacement? If so, it works just fine out of the box. The template I used is a very basic vanilla-js + typescript: |
Yes, that one.
Azgaar ***@***.***> ezt írta (időpont: 2022. jún. 26., Vas
11:53):
… Do you mean hot module replacement? If so, it works just fine out of the
box.
The template I used is a very basic vanilla-js + typescript:
https://stackblitz.com/edit/vitejs-vite-epqe9h?file=index.html&terminal=dev
—
Reply to this email directly, view it on GitHub
<#842 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUMDVJZFY2KYZXJNVCCEJ3VRASCBANCNFSM5ZZCTPXA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Since we've discussed it in #902 I thought I'd ask, is there some way we can help with this migration work? |
Yes, the UI part if not refactored at all. There are multiple elements to work on. |
With regards to human readable remark - I don't see how a human readable format could be structured. Benefit of doing that would be that saved maps would have proper thumbnails on certain OSs and could be previewed so the user knows a general layout of the map they're about to open. |
There is no intention to store map data in svg. SVG can stay for a while, but the ultimate goal is to separate data from view, so the .map file can be even potentially rendered in other systems outside of FMG. |
Description
Starting working on a major code refactoring and modernization.
Goals:
Contract changes as of today
Regiments:
state.military
is renamed tostate.regiments
Routes:
pack.cells.road
is renamed topack.cells.route
pack.cells.route
values are repurposed, now 1 meansroad
, 2 -trail
, 3 -seaRoute
pack.routes
now stores all relevant routes dataDiplomacy:
pack.states[0].diplomacy
pack.states[x].campaigns
=> Both are now stored as an array in
pack.events.conflicts
Provinces:
pack.states[x].provinces
is removed. Now states don't store info about their provincesLabels:
text-anchor
for '#labels' element is changed from 'start' tomiddle
. All childtspan
elements now should have attributex
equal to0
instead of a calculated valueType of change
Versioning