NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
sCcDatNewF Struct Reference

#include <game/bases/d_cc.hpp>

Description

A structure that contains information about a collider.

Definition at line 82 of file d_cc.hpp.

Public Attributes

mVec2_POD_c mOffset
 The offset of the collider.
mVec2_POD_c mSize
u8 mKind
 The type of this collider. See CC_KIND_e.
u8 mAttack
 The attack type of this collider. See CC_ATTACK_e.
u32 mVsKind
 Which attack types this collider should be able to receive. This is a bitfield with the bits enumerated by CC_ATTACK_e.
u32 mVsDamage
u16 mStatus
 Status flags for this collider. See CC_STATUS_FLAG_e.
void(* mCallback )(dCc_c *self, dCc_c *target)
 The callback to execute when a collision occurs.

Member Data Documentation

◆ mOffset

mVec2_POD_c sCcDatNewF::mOffset

The offset of the collider.

The size of the collider. Note: This is the distance from the center to the edge, so half the actual size.

Definition at line 83 of file d_cc.hpp.

◆ mSize

mVec2_POD_c sCcDatNewF::mSize

Definition at line 87 of file d_cc.hpp.

◆ mKind

u8 sCcDatNewF::mKind

The type of this collider. See CC_KIND_e.

Definition at line 89 of file d_cc.hpp.

◆ mAttack

u8 sCcDatNewF::mAttack

The attack type of this collider. See CC_ATTACK_e.

Which types this collider should be able to collide with. This is a bitfield with the bits enumerated by CC_KIND_e.

Definition at line 90 of file d_cc.hpp.

◆ mVsKind

u32 sCcDatNewF::mVsKind

Which attack types this collider should be able to receive. This is a bitfield with the bits enumerated by CC_ATTACK_e.

Definition at line 94 of file d_cc.hpp.

◆ mVsDamage

u32 sCcDatNewF::mVsDamage

Definition at line 98 of file d_cc.hpp.

◆ mStatus

u16 sCcDatNewF::mStatus

Status flags for this collider. See CC_STATUS_FLAG_e.

Definition at line 100 of file d_cc.hpp.

◆ mCallback

void(* sCcDatNewF::mCallback) (dCc_c *self, dCc_c *target)

The callback to execute when a collision occurs.

Definition at line 102 of file d_cc.hpp.