ss/include/s
2024-11-24 13:04:46 +01:00
..
docgroup.h Documentation, header guards 2024-06-01 23:57:46 +02:00
README.txt Implement a solution that seemingly works 2024-11-13 19:08:38 +01:00
s_Crc.h update from dtk-template - clangd :) (#66) 2024-10-16 15:36:02 -04:00
s_FState.hpp update from dtk-template - clangd :) (#66) 2024-10-16 15:36:02 -04:00
s_FStateFct.hpp update from dtk-template - clangd :) (#66) 2024-10-16 15:36:02 -04:00
s_FStateID.hpp update from dtk-template - clangd :) (#66) 2024-10-16 15:36:02 -04:00
s_FStateMgr.hpp d_lyt_map skeleton 2024-11-24 13:04:46 +01:00
s_FStateVirtualID.hpp Implement a solution that seemingly works 2024-11-13 19:08:38 +01:00
s_Math.h d_a_obj_tumble_weed mostly done (#88) 2024-11-06 16:36:17 -05:00
s_Phase.hpp Documentation, header guards 2024-06-01 23:57:46 +02:00
s_State.hpp Implement a solution that seemingly works 2024-11-13 19:08:38 +01:00
s_StateID.hpp Implement a solution that seemingly works 2024-11-13 19:08:38 +01:00
s_StateIDChk.hpp update from dtk-template - clangd :) (#66) 2024-10-16 15:36:02 -04:00
s_StateInterfaces.hpp update from dtk-template - clangd :) (#66) 2024-10-16 15:36:02 -04:00
s_StateMethod.hpp update from dtk-template - clangd :) (#66) 2024-10-16 15:36:02 -04:00
s_StateMethodUsr_FI.hpp update from dtk-template - clangd :) (#66) 2024-10-16 15:36:02 -04:00
s_StateMgr.hpp d_lyt_map skeleton 2024-11-24 13:04:46 +01:00

The state system in this library was ported from https://github.com/NSMBW-Community/NSMBW-Decomp/tree/master/include/dol/sLib
with differences/modifications outlined below:

## No inline destructors

The NSMBW code uses inlined destructors. In SS, these destructors are all part of the s_StateID.cpp(?) TU,
and pretty much every generic instantiation of the state manager (which for a large part are in RELs)
will call back into those destructors in the main DOL. As a result, the destructors were made not inline
and explicitly instantiated in s_StateID.cpp

## s_StateIDChk.hpp

In order for vtable ordering to match, some classes had to be extracted to a new header.

## sStateMethodIf_c

S_StateMethod_c's destructors calls back into another destructors. sStateMethodIf_c follows the example of
the other abstract interface classes and provides this dtor.

## operator== / != return BOOL instead of bool

We're observing a lot of word-to-bool casts in code after these
operators are invoked, and while there are ways to force the conversion,
this seems the most reasonable.

## s_FStateVirtualID

Implemented by SS based on NSMBW symbols. Probably missing some parts, sync with NSMBW if they get around to it.