Just writing code nothing special.
This commit is contained in:
@ -7,8 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
#include "../../libs.h"
|
||||
#include "../../vn/vncharacter.h"
|
||||
|
||||
typedef struct {
|
||||
char *bruh;
|
||||
} pokercharacters_t;
|
||||
|
||||
} dawngame_t;
|
@ -9,6 +9,8 @@
|
||||
|
||||
#if SETTING_GAME == SETTING_GAME_POKER
|
||||
#include "poker/pokergame.h"
|
||||
#elif SETTING_GAME == SETTING_GAME_DAWN
|
||||
#include "dawn/dawngame.h"
|
||||
#endif
|
||||
|
||||
/** Describes the current game */
|
||||
@ -20,5 +22,7 @@ typedef struct {
|
||||
|
||||
#if SETTING_GAME == SETTING_GAME_POKER
|
||||
pokergame_t pokerGame;
|
||||
#elif SETTING_GAME == SETTING_GAME_DAWN
|
||||
dawngame_t dawnGame;
|
||||
#endif
|
||||
} game_t;
|
30
include/dawn/game/poker/pokerdiscussion.h
Normal file
30
include/dawn/game/poker/pokerdiscussion.h
Normal file
@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../../libs.h"
|
||||
#include "pokergame.h"
|
||||
|
||||
#define POKER_DISCUSSION_MESSAGE_COUNT_MAX 32
|
||||
|
||||
#define POKER_DISCUSSION_REASON_TEST 0x00
|
||||
|
||||
#define POKER_DISCUSSION_REASON_MATCH_START 0x01
|
||||
#define POKER_DISCUSSION_REASON_ROUND_START 0x02
|
||||
#define POKER_DISCUSSION_REASON_BLINDS_TAKEN 0x03
|
||||
|
||||
typedef struct {
|
||||
pokergame_t *poker;
|
||||
uint8_t reason;
|
||||
uint8_t playerCause;
|
||||
uint8_t playerTarget;
|
||||
} pokerdiscussiondata_t;
|
||||
|
||||
typedef struct {
|
||||
char *messages[POKER_DISCUSSION_MESSAGE_COUNT_MAX];
|
||||
uint8_t count;
|
||||
} pokerdiscussion_t;
|
Reference in New Issue
Block a user