DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ TickScheduler() [2/2]

void MissionBase::TickScheduler ( float timeslice)
inlineprotected

См. определение в файле missionServer.c строка 766

767 {
768 g_Game.GetWorld().GetPlayerList(m_Players);
769 int players_count = m_Players.Count();
770 int tick_count_max = Math.Min(players_count, SCHEDULER_PLAYERS_PER_TICK);
771
772 for (int i = 0; i < tick_count_max; ++i)
773 {
774 if (m_currentPlayer >= players_count)
775 {
776 m_currentPlayer = 0;
777 }
778
779 PlayerBase currentPlayer = PlayerBase.Cast(m_Players.Get(m_currentPlayer));
780 if (currentPlayer)
781 currentPlayer.OnTick();
783 }
784 }
DayZGame g_Game
Определения DayZGame.c:4074
int m_currentPlayer
Определения missionServer.c:13
ref array< Man > m_Players
Определения missionServer.c:7
const int SCHEDULER_PLAYERS_PER_TICK
Определения missionServer.c:12

Перекрестные ссылки g_Game, m_currentPlayer, m_Players, Math::Min() и SCHEDULER_PLAYERS_PER_TICK.