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

17 Commits

Author SHA1 Message Date
9bae2f943e
Rename everything 2021-04-10 01:42:06 -07:00
14c92e85ce Use pas::EAnimationState in CPAS* 2020-04-22 05:09:27 -04:00
Lioncash
891fd05442 CPASAnimState: Add HasAnims()
GetNumAnims() is only used in two places to do existence checking. We
can just provide a dedicated function for this and also have size
querying as well.
2020-04-06 13:15:13 -04:00
Lioncash
6381f021b7 CPASAnimState: Make use of size_t for GetAnimParmData()
Given the rest of the interface now uses size_t, we can convert this
over. While we're at it, we can also take the result of the at() call
inside of it in order to avoid any copies of data altogether.
2020-04-06 13:10:43 -04:00
Lioncash
17c1582ba2 CPASAnimState: Make PickRandomAnimation() private
This isn't used externally anywhere.
2020-04-06 13:06:31 -04:00
Lioncash
0b74a3e995 CPASAnimState: Make use of size_t for indices
Same behavior, but plays nicer with containers.

This can technically result in less zero-extensions with regards to
memory indexing and registers, but this wasn't the underlying reason for the change.
2020-04-06 13:02:22 -04:00
Lioncash
4043b63721 CPASAnimState: Make computation functions private
These are currently only used internally.
2020-04-06 12:56:29 -04:00
Lioncash
d79b9d925e CPAS*: Make constructors explicit
Prevents undesirable implicit constructions from occurring.
2020-02-28 04:38:23 -05:00
Lioncash
fe05c42be4 CPASAnimState: Remove const_cast usages
A cache is typically a use case for mutable (as the outside user of the
class wouldn't directly rely on the cache as part of the API, this would
only function to assist the API perform better), so we can mark the
selection cache as mutable and make the code nicer to read overall.
2020-02-28 04:33:42 -05:00
Lioncash
a633b8e8fd General: Normalize RuntimeCommon include paths
Performs the same normalizing done to the RuntimeCommonB target, now all
of the runtime headers have normalized include paths.
2019-09-28 04:14:29 -04:00
Jack Andersen
636c82a568 New code style refactor 2018-12-07 19:30:43 -10:00
Jack Andersen
c91e5df986 Convert to pragma once 2018-10-06 17:42:33 -10:00
Jack Andersen
778b37e0f8 CPASAnimState fixes 2017-07-06 11:06:56 -10:00
4244f39bd5 CPASDatabase imps 2016-08-20 22:47:47 -07:00
c55db47941 PASDatabase imps
Add SpecialFunction loader
2016-04-27 12:59:38 -07:00
Jack Andersen
5de5c3d85f Character factory support classes 2016-04-12 20:07:23 -10:00
Jack Andersen
4f7d6e167f Several initial character classes 2016-04-09 18:49:02 -10:00