New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
ActorCreateInfo Struct Reference

#include <Profile.h>

Public Types

enum  Flag : u16 {
  cFlag_IgnoreSpawnRange = 1 << 1 , cFlag_ScrollSetupDeferred = 1 << 2 , cFlag_MapObj = 1 << 3 , cFlag_Grouped = 1 << 4 ,
  cFlag_NoCoinEdit = 1 << 5 , cFlag_CoinEditPatternControlled = 1 << 6 , cFlag_Coin = 1 << 7 , cFlag_CoinBlock = 1 << 8 ,
  cFlag_PakkunBlack = 1 << 9 , cFlag_ManagedChildTemplate = 1 << 10 , cFlag_GroupedScrollSetupDeferred = 1 << 11 , cFlag_None = 0
}

Public Attributes

s32 offset_x
s32 offset_y
struct { 
   s32   offset_x 
   s32   offset_y 
   s32   half_size_x 
   s32   half_size_y 
} spawn_range
struct { 
   u16   up 
   u16   down 
   u16   left 
   u16   right 
} cull_range
Flag flag

Static Public Attributes

static const ActorCreateInfo cDefault

Friends

constexpr Flag operator| (Flag lhs, Flag rhs)

Member Enumeration Documentation

◆ Flag

Enumerator
cFlag_IgnoreSpawnRange 

Creates the actor regardless of camera proximity.

cFlag_ScrollSetupDeferred 

Queues the actor for creation only after scroll limiters and other camera properties have been applied.

cFlag_MapObj 

Avoids blocking boost mode block placement and adjusts the Z-position to be further in front.

cFlag_Grouped 

Marks the actor as Group Controller-managed, using nybbles 5-6 (high byte of mParam0) as the group ID. Also implies cFlag_IgnoreSpawnRange.

cFlag_NoCoinEdit 

Prevents spawning in Coin Edit mode.

cFlag_CoinEditPatternControlled 

Prevents spawning in Coin Edit mode and is marked as being controlled by a coin edit pattern.

cFlag_Coin 

Participates in coin counting routines.

cFlag_CoinBlock 

Participates in coin-block counting routines, but only if nybble 20 is 0 and nybble 13 & 1 is 0 (aka mParam1 & 0x1000000F)

cFlag_PakkunBlack 

Spawns as a muncher tile instead of constructing an Actor instance.

cFlag_ManagedChildTemplate 

Treats creation of the map actor as a reusable operation from an external manager actor.

cFlag_GroupedScrollSetupDeferred 

Both cFlag_ScrollSetupDeferred and cFlag_Grouped.

cFlag_None 

◆ operator|

Flag operator| ( Flag lhs,
Flag rhs )
friend

Member Data Documentation

◆ offset_x

s32 ActorCreateInfo::offset_x

◆ offset_y

s32 ActorCreateInfo::offset_y

◆ half_size_x

s32 ActorCreateInfo::half_size_x

◆ half_size_y

s32 ActorCreateInfo::half_size_y

◆ [struct]

struct { ... } ActorCreateInfo::spawn_range

◆ up

u16 ActorCreateInfo::up

◆ down

u16 ActorCreateInfo::down

◆ left

u16 ActorCreateInfo::left

◆ right

u16 ActorCreateInfo::right

◆ [struct]

struct { ... } ActorCreateInfo::cull_range

◆ flag

Flag ActorCreateInfo::flag

◆ cDefault

const ActorCreateInfo ActorCreateInfo::cDefault
static