PGRData/Script/matrix/xentity/xrpgmakergame/object/XRpgMakerGameBlock.lua
2024-09-01 22:49:41 +02:00

24 lines
No EOL
600 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local XRpgMakerGameObject = require("XEntity/XRpgMakerGame/Object/XRpgMakerGameObject")
local type = type
local pairs = pairs
local Default = {
_BlockStatus = 0, --状态1阻挡0不阻挡
}
---推箱子阻挡物对象
---@class XRpgMakerGameBlock:XRpgMakerGameObject
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