PGRData/Script/matrix/xentity/xplanet/xgameobject/XChapterPlanet.lua
2024-09-01 22:49:41 +02:00

18 lines
No EOL
483 B
Lua

local XPlanetIObject = require("XEntity/XPlanet/XGameObject/XPlanetIObject")
---@class XChapterPlanet:XPlanetIObject
local XChapterPlanet = XClass(XPlanetIObject, "XPlanet")
function XChapterPlanet:Ctor(root, chapterId)
self.ChapterId = chapterId
end
function XChapterPlanet:GetAssetPath()
return XPlanetStageConfigs.GetChapterPlanetPrefabUrl(self.ChapterId)
end
function XChapterPlanet:GetObjName()
return "ChapterPlanet" .. self.ChapterId
end
return XChapterPlanet