NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_wm_lib.hpp
1#pragma once
3#include <game/mLib/m_vec.hpp>
4#include <game/bases/d_wm_csv_data.hpp>
5
6/// @unofficial
8 int nodeWorld;
9 const char *nodeName;
10 int world;
11 int level;
12 int entrance;
13 const char *levelNode;
14 mVec3_c nodePos;
15
17};
18
19namespace dWmLib {
20 enum Direction3D_e {
21 DIR3D_UP,
22 DIR3D_DOWN,
23 DIR3D_FRONT,
24 DIR3D_BACK,
25 DIR3D_LEFT,
26 DIR3D_RIGHT
27 };
28
29 /// @unofficial
30 enum CourseType_e {
31 COURSE_TYPE_NORMAL,
32 COURSE_TYPE_GHOST,
33 COURSE_TYPE_TOWER,
34 COURSE_TYPE_CASTLE,
35 COURSE_TYPE_KINOKO,
36 COURSE_TYPE_JUNCTION,
37 COURSE_TYPE_CANNON,
38 COURSE_TYPE_STAGE_37,
39 COURSE_TYPE_KOOPA_SHIP,
40 COURSE_TYPE_KINOKO_START,
41 COURSE_TYPE_PEACH_CASTLE,
42 COURSE_TYPE_INVALID
43 };
44
45 /// @unofficial
46 enum PointType_e {
47 POINT_TYPE_INTERSECTION,
48 POINT_TYPE_PATH,
49 POINT_TYPE_START_NODE,
50 POINT_TYPE_REGULAR_COURSE,
51 POINT_TYPE_OTHER
52 };
53
54 int GetCourseTypeFromCourseNo(int courseNo);
55 bool isKoopaShipAnchor();
56 u8 getStartPointKinokoHouseKindNum();
57 bool isStartPointKinokoHouseStar();
58 bool isStartPointKinokoHouseRed();
59 bool IsCourseClear(int world, int course);
60 int getPointDir(const mVec3_c &v1, const mVec3_c &v2);
61 int GetCurrentPlayResultStatus();
62 int getEnemyRevivalCount(int, int);
63
64 /// @unofficial
65 static ForceListElement sc_ForceList[] = {
66 {WORLD_7, "F7C0", WORLD_7, dCsvData_c::c_CASTLE_ID, 4, "W7C0", mVec3_c(2160, -30, -478)}
67 };
68
69 /// @unofficial
70 static int someCourseNo = dCsvData_c::c_START_ID;
71};
A three-dimensional floating point vector.
Definition m_vec.hpp:101