2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-14 14:31:22 +00:00

10 Commits

Author SHA1 Message Date
Lioncash
5ff100fdd1 DNAMP1/ScriptObjects: Convert SCRIPT_OBJECT_DB into a std::array
Now that all elements of the std::vector would otherwise be constexpr,
we can use a std::array here instead, given they're all able to
deterministically be available at compile-time.

This gets rid of a runtime static heap allocation at program start.
2020-02-24 03:42:24 -05:00
Lioncash
2ec236fc45 DNAMP1/ScriptObjects: Trim headers in ScriptObjects.hpp
All of these can be migrated into the cpp file, since they're only used
there.

Greatly reduces the amount of work the preprocessor has to do in files
that include this one.
2020-02-24 03:42:05 -05:00
Lioncash
e27ac1e2a1 DNAMP1/ScriptObjects: Eliminate several runtime static constructors
All of these entries make use of captureless lambdas, so there's no need
to make use of std::function. We can just use a regular function
pointer, which allows making all of the file-static entries within
IScriptObject constexpr. Eliminating all of their runtime static
constructors.
2020-02-24 03:20:39 -05:00
Jack Andersen
636c82a568 New code style refactor 2018-12-07 19:30:43 -10:00
Jack Andersen
7c7da6671a SIMD refactor 2018-12-07 15:49:15 -10:00
Jack Andersen
8301adc3d6 Huge compile performance refactor 2017-12-28 22:08:12 -10:00
Jack Andersen
ccbd19b9ea Add VISIGen utility 2017-02-23 22:28:44 -10:00
af69c9d3ab Rename namespaces 2016-02-13 01:02:47 -08:00
Phillip Stephens
cdeb1234c8 Make SCRIPT_OBJECT_DB const 2015-10-05 13:48:54 -07:00
c3ee18abf5 Script Object DNAs 2015-09-30 16:18:19 -07:00