PGRData/Script/matrix/xentity/xplanet/xdata/XPlanetSceneCamera.lua

28 lines
662 B
Lua
Raw Normal View History

2024-09-01 20:49:41 +00:00
---@class XPlanetSceneCamera
local XPlanetSceneCamera = XClass(nil, "XPlanetSceneCamera")
function XPlanetSceneCamera:Ctor(id)
self._CameraId = id or false
end
function XPlanetSceneCamera:GetCameraId()
return self._CameraId
end
function XPlanetSceneCamera:SetCameraId(id)
self._CameraId = id
end
function XPlanetSceneCamera:GetPosition()
return XPlanetCameraConfigs.GetCameraPosition(self._CameraId)
end
function XPlanetSceneCamera:GetRotation()
return XPlanetCameraConfigs.GetCameraRotation(self._CameraId)
end
function XPlanetSceneCamera:GetFov()
return XPlanetCameraConfigs.GetCameraFov(self._CameraId)
end
return XPlanetSceneCamera