Lua API/System
Материал из CryWiki Russia
Версия от 16:14, 12 мая 2011; Alex626 (Обсуждение | вклад)
Содержание |
Обзор
Эти функции Lua находятся в таблице System. Например, функция Log может быть вызвана вот так:
System.Log("hello world!");
Configuration
- IsEditor
- IsMultiplayer
- IsDevModeEnable
- GetCPUQuality
- GetGPUQuality
- IsPS20Supported
- LoadLocalizationXml
- SaveConfiguration
- Quit
- QuitInNSeconds
- SetBudget
- ViewDistanceGet
- ViewDistanceSet
- ApplyForceToEnvironment
- GetOutdoorAmbientColor
- ActivatePortal
- IsPointIndoors
- CheckHeapValid
- GetConfigSpec
- SetScissor
- LoadFont
File
Surface
Renderer
Screen
- ProjectToScreen
- EnumDisplayFormats
- EnumAAFormats
- SetGammaDelta
- SetSystemShaderRenderFlags
- GetFrameID
HDR
- GetHDRDynamicMultiplier
- SetHDRDynamicMultiplier
- IsHDRSupported
2D Drawing
- DrawLabelImage
- DrawLabel
- ScreenToTexture
- DrawLine
- Draw2DLine
- DrawText
- DrawImage
- DrawImageColor
- DrawImageColorCoords
- DrawImageCoords
- DrawRectShader
- DrawTriStrip
Screen Effects
- SetPostProcessFXParam
- GetPostProcessFXParam
- SetScreenFx
- GetScreenFx
Time
- GetCurrTime
- GetCurrAsyncTime
- GetFrameTime
- GetOSTime
- GetLocalOSTime
Debugging
Console
Log
These logging functions are subject to the log verbosity level.
Statistics
- DumpMemoryCoverage
- DumpMemStats
- DumpMMStats
- DumpWinHeaps
- DebugStats
- GetSystemMem
- GetVideoMem
View
- SetViewCameraFov
- GetViewCameraFov
- GetViewCameraPos
- GetViewCameraDir
- GetViewCameraAngles
- IsPointVisible
Entity
- GetEntity
- GetEntityClass
- GetEntities
- GetEntitiesInSphere
- GetEntitiesInSphereByClass
- GetPhysicalEntitiesInBox
- GetPhysicalEntitiesInBoxByClass
- GetEntitiesByClass
- GetNearestEntityByClass
- GetEntityByName
- GetEntityIdByName
- RemoveEntity
- SpawnEntity
Environment
Terrain
Sky
- SetSunColor
- GetSunColor
- SetSkyColor
- GetSkyColor
- SetSkyHighlight
- GetSkyHighlight
Fog
Wind
Water
- EnableOceanRendering