Files
kichikuou_xsystem35-sdl2/modules/NIGHTDLL/night.h
T

74 lines
1.1 KiB
C

#ifndef __NIGHT_H__
#define __NIGHT_H__
#include "config.h"
#include "portab.h"
#include "ags.h"
#include "sprite.h"
// キーウェイトの種類
#define KEYWAIT_NONE 0
#define KEYWAIT_SIMPLE 1
#define KEYWAIT_SPRITE 2
#define KEYWAIT_MESSAGE 3
#define KEYWAIT_SELECT 4
#define KEYWAIT_BACKLOG 5
#define MSGBUFMAX 512
#if 0
// 文字列置換用
typedef struct {
char *src; // 置き換え元文字列
char *dst; // 置き換え文字列
} strexchange_t;
#endif
struct _night {
// scenario
int Month;
int Day;
int DayOfWeek;
// keyevent
int waittype;
int waitskiplv;
int waitkey;
SDL_Rect updaterect;
FontType fonttype;
int fontsize;
sprite_t *sp[SPRITEMAX];
int msgplace;
int msgframe;
// msg
char msgbuf[MSGBUFMAX];
bool zhiding;
struct {
void (* cbmove)(agsevent_t *);
void (* cbrelease)(agsevent_t *);
} msg;
//SList *strreplace;
// sel
int selmode;
struct {
void (* cbmove)(agsevent_t *);
void (* cbrelease)(agsevent_t *);
} sel;
};
typedef struct _night night_t;
#define night nightprv
extern night_t night;
#endif /* __NIGHT_H__ */