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

◆ CalculateMapTile()

string DebugMonitor::CalculateMapTile ( vector pos)
inlineprotected

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

172 {
173 string tile;
174 float worldSize = g_Game.GetWorld().GetWorldSize();
175
176 float tileX = Math.InverseLerp(0, worldSize, pos[0]);
177 float tileY = Math.InverseLerp(0, worldSize, pos[2]);
178
179 tile = GetTileFomFraction(tileX).ToString() + GetTileFomFraction(tileY).ToString();
180
181 return tile;
182 }
DayZGame g_Game
Определения DayZGame.c:4074
int GetTileFomFraction(float fraction)
Определения DebugMonitor.c:184
static proto string ToString(void var, bool type=false, bool name=false, bool quotes=true)
Return string representation of variable.

Перекрестные ссылки g_Game, GetTileFomFraction(), Math::InverseLerp() и string::ToString().

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