pokeemerald/include/mevent_server.h

37 lines
765 B
C
Raw Normal View History

2019-03-31 21:50:25 +02:00
#ifndef GUARD_MEVENT_SERVER_H
#define GUARD_MEVENT_SERVER_H
2019-04-02 17:43:29 +02:00
#include "mevent_server_helpers.h"
struct mevent_cmd
{
u32 instr;
bool32 flag;
2019-04-02 19:26:06 +02:00
const void * parameter;
};
struct mevent_srv_common
{
u32 unk_00;
u32 param;
u32 mainseqno;
u32 cmdidx;
const struct mevent_cmd * cmdBuffer;
void * recvBuffer;
2019-04-02 19:57:03 +02:00
struct WonderCard * wonder_card;
struct WonderNews * wonder_news;
struct MEventStruct_Unk1442CC * mevent_unk1442cc;
2019-04-02 19:26:06 +02:00
const void * sendBuffer1;
u32 sendBuffer1Size;
2019-04-02 19:26:06 +02:00
const void * sendBuffer2;
u32 sendBuffer2Size;
u32 sendWord;
struct mevent_srv_sub manager;
};
2019-03-31 21:50:25 +02:00
void mevent_srv_new_wcard();
void mevent_srv_init_wnews();
2019-04-01 00:59:52 +02:00
u32 mevent_srv_common_do_exec(u16 * a0);
2019-03-31 21:50:25 +02:00
#endif //GUARD_MEVENT_SERVER_H