summaryrefslogtreecommitdiff
path: root/src/SSystem/SComponent/c_tree.cpp
diff options
context:
space:
mode:
authorLuke Street <luke.street@encounterpc.com>2023-09-10 00:42:26 -0400
committerLuke Street <luke.street@encounterpc.com>2023-09-10 00:48:55 -0400
commitadb95b135c3d7498eba29bbd9728d345eed5a407 (patch)
tree655575b939c12067569263171b68c079b1a232c8 /src/SSystem/SComponent/c_tree.cpp
parent81ac53f1317dafb3506ae3ed8b2820d40645c3c8 (diff)
Import project
Original repository: https://github.com/encounter/ww
Diffstat (limited to 'src/SSystem/SComponent/c_tree.cpp')
-rw-r--r--src/SSystem/SComponent/c_tree.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/SSystem/SComponent/c_tree.cpp b/src/SSystem/SComponent/c_tree.cpp
new file mode 100644
index 00000000..05086dc0
--- /dev/null
+++ b/src/SSystem/SComponent/c_tree.cpp
@@ -0,0 +1,38 @@
+//
+// Generated by dtk
+// Translation Unit: c_tree.cpp
+//
+
+#include "SSystem/SComponent/c_tree.h"
+#include "SSystem/SComponent/c_list.h"
+#include "dolphin/types.h"
+
+/* 80244FD0-80244FF0 .text cTr_SingleCut__FP10node_class */
+int cTr_SingleCut(node_class* pNode) {
+ return cLs_SingleCut(pNode);
+}
+
+/* 80244FF0-80245034 .text cTr_Addition__FP21node_lists_tree_classiP10node_class */
+int cTr_Addition(node_lists_tree_class* pTree, int listIdx, node_class* pNode) {
+ if (listIdx >= pTree->mNumLists)
+ return 0;
+
+ return cLs_Addition(&pTree->mpLists[listIdx], pNode);
+}
+
+/* 80245034-80245078 .text cTr_Insert__FP21node_lists_tree_classiP10node_classi */
+int cTr_Insert(node_lists_tree_class* pTree, int listIdx, node_class* pNode, int idx) {
+ if (listIdx >= pTree->mNumLists)
+ return 0;
+
+ return cLs_Insert(&pTree->mpLists[listIdx], idx, pNode);
+}
+
+/* 80245078-802450D0 .text cTr_Create__FP21node_lists_tree_classP15node_list_classi */
+void cTr_Create(node_lists_tree_class* pTree, node_list_class* pLists, int numLists) {
+ pTree->mpLists = pLists;
+ pTree->mNumLists = numLists;
+
+ while (numLists-- > 0)
+ cLs_Create(pLists++);
+}