2023-04-17 01:53:29 +00:00
|
|
|
// Single entity that is positioned in terms of its top-left coordinate. Does
|
2023-02-15 21:47:11 +00:00
|
|
|
// not occur in ZUN's original TH01 code, but should be used to improve the
|
|
|
|
// code. Note the semantic difference to a `screen_point_t`.
|
|
|
|
struct entity_topleft_t {
|
|
|
|
screen_x_t left;
|
|
|
|
screen_y_t top;
|
|
|
|
};
|
|
|
|
|
|
|
|
// Generic SoA entity template
|
|
|
|
template <int Count> struct EntitiesTopleft {
|
2022-05-23 21:50:17 +00:00
|
|
|
screen_x_t left[Count];
|
|
|
|
screen_y_t top[Count];
|
|
|
|
|
|
|
|
static int count() {
|
|
|
|
return Count;
|
|
|
|
}
|
|
|
|
};
|