Exemplo n.º 1
0
void Game_Party::RemoveActor(int actor_id) {
	if (!IsActorInParty(actor_id))
		return;
	data().party.erase(std::find(data().party.begin(), data().party.end(), actor_id));
	data().party_size = data().party.size();
	Main_Data::game_player->Refresh();
}
Exemplo n.º 2
0
void Game_Party::AddActor(int actor_id) {
	if (IsActorInParty(actor_id))
		return;
	if (data.party.size() >= 4)
		return;
	data.party.push_back((int16_t)actor_id);
	Main_Data::game_player->Refresh();
}