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

◆ CalculateMapTile()

string DebugMonitor::CalculateMapTile ( vector pos)
inlineprotected

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

149 {
150 string tile;
151 float worldSize = GetGame().GetWorld().GetWorldSize();
152
153 float tileX = Math.InverseLerp(0, worldSize, pos[0]);
154 float tileY = Math.InverseLerp(0, worldSize, pos[2]);
155
156 tile = GetTileFomFraction(tileX).ToString() + GetTileFomFraction(tileY).ToString();
157
158 return tile;
159 }
proto native World GetWorld()
int GetTileFomFraction(float fraction)
Определения DebugMonitor.c:161
proto int GetWorldSize()
proto native CGame GetGame()

Перекрестные ссылки GetGame(), GetTileFomFraction(), CGame::GetWorld(), World::GetWorldSize() и Math::InverseLerp().

Используется в SetPosition().