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

◆ TickScheduler() [2/2]

void MissionBase::TickScheduler ( float timeslice)
inlineprotected

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

754 {
755 g_Game.GetWorld().GetPlayerList(m_Players);
756 int players_count = m_Players.Count();
757 int tick_count_max = Math.Min(players_count, SCHEDULER_PLAYERS_PER_TICK);
758
759 for (int i = 0; i < tick_count_max; ++i)
760 {
761 if (m_currentPlayer >= players_count)
762 {
763 m_currentPlayer = 0;
764 }
765
766 PlayerBase currentPlayer = PlayerBase.Cast(m_Players.Get(m_currentPlayer));
767 if (currentPlayer)
768 currentPlayer.OnTick();
770 }
771 }
DayZGame g_Game
Определения DayZGame.c:3942
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.