Skip to content

Commit b79fc69

Browse files
committed
Matched 10 small functions
1 parent f98d31f commit b79fc69

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

src/SB/Game/zTalkBox.cpp

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,3 +365,58 @@ void ztalkbox::permit(U32 add_flags, U32 remove_flags)
365365
shared.permit &= ~remove_flags;
366366
shared.permit |= add_flags;
367367
}
368+
369+
namespace
370+
{
371+
372+
static void parse_tag_pause(xtextbox::jot&, const xtextbox&, const xtextbox&, const xtextbox::split_tag&)
373+
{
374+
375+
}
376+
377+
static void reset_tag_pause(xtextbox::jot&, const xtextbox&, const xtextbox&, const xtextbox::split_tag&)
378+
{
379+
380+
}
381+
382+
static unsigned char trigger_pause(const xtextbox::jot&)
383+
{
384+
return 1;
385+
}
386+
}
387+
388+
void start_state_type::stop()
389+
{
390+
}
391+
392+
signed char start_state_type::update(xScene&, float)
393+
{
394+
return 2;
395+
}
396+
397+
void next_state_type::stop()
398+
{
399+
400+
}
401+
402+
void stop_state_type::start()
403+
{
404+
405+
}
406+
407+
void stop_state_type::stop()
408+
{
409+
410+
}
411+
412+
signed char stop_state_type::update(xScene&, float)
413+
{
414+
return -1;
415+
}
416+
417+
void wait_context::reset_type()
418+
{
419+
420+
*(U16*)&this->type = 0;
421+
422+
}

src/SB/Game/zTalkBox.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,24 @@ namespace
155155
void stop();
156156
};
157157

158+
struct next_state_type
159+
{
160+
void stop();
161+
};
162+
163+
struct start_state_type
164+
{
165+
void stop();
166+
signed char update(xScene&, float);
167+
};
168+
169+
struct stop_state_type
170+
{
171+
void start();
172+
void stop();
173+
signed char update(xScene&, float);
174+
};
175+
158176
struct jot;
159177
struct callback
160178
{
@@ -252,6 +270,7 @@ namespace
252270
F32 delay;
253271
U32 event_mask;
254272
query_enum query;
273+
void reset_type();
255274
};
256275

257276
struct trigger_pair

0 commit comments

Comments
 (0)