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

◆ TickScheduler() [2/2]

void MissionBase::TickScheduler ( float timeslice)
inlineprotected

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

708 {
710 int players_count = m_Players.Count();
711 int tick_count_max = Math.Min(players_count, SCHEDULER_PLAYERS_PER_TICK);
712
713 for (int i = 0; i < tick_count_max; i++)
714 {
715 if (m_currentPlayer >= players_count)
716 {
717 m_currentPlayer = 0;
718 }
719
720 PlayerBase currentPlayer = PlayerBase.Cast(m_Players.Get(m_currentPlayer));
721
722 if (currentPlayer)
723 currentPlayer.OnTick();
725 }
726 }
proto native World GetWorld()
int m_currentPlayer
Определения missionServer.c:13
ref array< Man > m_Players
Определения missionServer.c:7
const int SCHEDULER_PLAYERS_PER_TICK
Определения missionServer.c:12
proto native void GetPlayerList(out array< Man > players)
proto native CGame GetGame()

Перекрестные ссылки GetGame(), World::GetPlayerList(), CGame::GetWorld(), m_currentPlayer, m_Players, Math::Min() и SCHEDULER_PLAYERS_PER_TICK.