3#include "dcon_generated.hpp"
32 dcon::state_definition_id
state;
34 memset(
this, 0,
sizeof(*
this));
45static_assert(
sizeof(message) ==
constexpr int32_t expiration_in_days
bool can_accept(sys::state &state, message const &m)
void decline(sys::state &state, message const &m)
void update_pending(sys::state &state)
void accept(sys::state &state, message const &m)
@ be_crisis_primary_attacker
@ be_crisis_primary_defender
void post(sys::state &state, message const &m)
Pushes a diplomatic message to the list of pending diplomatic requests for the specified recipient (m...
bool can_accept_crisis_peace_offer(sys::state &state, dcon::nation_id from, dcon::nation_id to, dcon::peace_offer_id peace)
bool ai_will_accept(sys::state &state, message const &m)
Returns the appropriate acceptance evaluation for a given diplomatic message. It is required to defin...
bool can_accept_crisis_offer(sys::state &state, dcon::nation_id from, dcon::nation_id to, sys::full_wg offer)
Holds data regarding a diplomatic message between two specified nations at a certain date,...
union diplomatic_message::message::dtype data
Holds important data about the game world, state, and other data regarding windowing,...
dcon::state_definition_id state
dcon::peace_offer_id peace
sys::full_wg crisis_offer