Esempio n. 1
0
IMPLEMENT_RMI(CGameRules, ClPlayerJoined)
{
	auto ent = oohh::GetEntityFromId(params.entityId);
	my->CallHook("PlayerEntered", ent);

	NOTIFY_UI_MP( PlayerJoined(params.entityId, params.name) );
	return true;
}
Esempio n. 2
0
void CUIMultiPlayer::RequestPlayers( const SUIEvent& event )
{
	IActorIteratorPtr actors = gEnv->pGame->GetIGameFramework()->GetIActorSystem()->CreateActorIterator();
	while (IActor* pActor = actors->Next())
	{
		if (pActor->IsPlayer())
			PlayerJoined(pActor->GetEntityId(), pActor->GetEntity()->GetName());
	}
}
Esempio n. 3
0
void CUIMultiPlayer::RequestPlayers()
{
	IActorIteratorPtr actors = gEnv->pGame->GetIGameFramework()->GetIActorSystem()->CreateActorIterator();
	while (IActor* pActor = actors->Next())
	{
		if (pActor->IsPlayer() && m_Players.find(pActor->GetEntityId()) == m_Players.end())
		{
			PlayerJoined(pActor->GetEntityId(), pActor->GetEntity()->GetName());
		}
	}
}
Esempio n. 4
0
IMPLEMENT_RMI(CGameRules, ClPlayerJoined)
{
	NOTIFY_UI_MP( PlayerJoined(params.entityId, params.name) );
	return true;
}