Commit graph

10 commits

Author SHA1 Message Date
a2b5820906 Implemented PWA 2022-06-26 15:22:22 -05:00
7fe57798bb Switched from vue-cli-service to vite
Should be thoroughly tested still
Also involved removing operator overloads, which weren't good anyways
2022-06-25 22:34:18 -05:00
ade00f2ebd Remove unused lib file 2022-05-01 19:23:46 -05:00
0acfebb412 Implemented Particles feature 2022-03-27 00:39:23 -05:00
a12fae5fae Added stub declaration files for libs that don't provide one 2022-03-08 01:13:53 -06:00
ebf26c58e7 Call Decimal.fromValue on objects that are Decimal-like
I _already_ know I'm going to update b_e.js without remembering I made
this change. If you've noticed that has occurred please link me to this
commit and shame me.
2022-02-20 16:02:39 -06:00
6f781b33fa New layer API WIP 2022-01-13 22:25:47 -06:00
e499447cf5 Added operator overloading for Decimals
Note: This feature is being enabled through babel, and unfortunately
doesn't really have any typescript support. Using an overloaded operator
will show an error and be typed as "any". If ecmascript ever
support operator overloading, then typescript will follow suit and these
issues can be resolved.
Here's the current proposal for how that could look like, although it's
a long way's off from being accepted, if it ever is:
https://github.com/tc39/proposal-operator-overloading

Alternatively, there's a proposal for declaring that certain types have
operator overloads, which would also work just perfectly:
https://github.com/microsoft/TypeScript/issues/42218

In the meantime, the errors will unfortunately remain present, although
they won't cause any issues in production.

BTW, the rhs can be any DecimalSource, but the lhs has to be a Decimal.
2021-09-19 23:10:01 -05:00
0afcd1cd3d First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.

The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-16 23:30:54 -05:00
5e4ec334a7 Implemented "main" UI and added big number abstraction 2021-05-19 23:27:23 -05:00