2023-07-14 19:35:33 +00:00
|
|
|
|
local XRpgMakerGameObject = require("XEntity/XRpgMakerGame/Object/XRpgMakerGameObject")
|
|
|
|
|
|
|
|
|
|
local type = type
|
|
|
|
|
local pairs = pairs
|
|
|
|
|
|
|
|
|
|
local Default = {
|
|
|
|
|
_BlockStatus = 0, --状态,1阻挡,0不阻挡
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-01 20:49:41 +00:00
|
|
|
|
---推箱子阻挡物对象
|
|
|
|
|
---@class XRpgMakerGameBlock:XRpgMakerGameObject
|
2023-07-14 19:35:33 +00:00
|
|
|
|
local XRpgMakerGameBlock = XClass(XRpgMakerGameObject, "XRpgMakerGameBlock")
|
|
|
|
|
|
|
|
|
|
function XRpgMakerGameBlock:Ctor(id)
|
|
|
|
|
for key, value in pairs(Default) do
|
|
|
|
|
if type(value) == "table" then
|
|
|
|
|
self[key] = {}
|
|
|
|
|
else
|
|
|
|
|
self[key] = value
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return XRpgMakerGameBlock
|