mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-27 07:14:56 +00:00
29 lines
718 B
Lua
29 lines
718 B
Lua
-- Power transfer form component
|
|
|
|
---@class User
|
|
---@field id string
|
|
---@field name string
|
|
|
|
---@class TransferFormComponent
|
|
---@field type string
|
|
---@field fromUser User
|
|
---@field toUser User
|
|
---@field confirmationRequired boolean
|
|
---@field warningMessage string
|
|
|
|
---Returns the power transfer form configuration
|
|
---@param from_user User
|
|
---@param to_user User
|
|
---@return TransferFormComponent
|
|
local function transfer_form(from_user, to_user)
|
|
return {
|
|
type = "power_transfer_form",
|
|
fromUser = from_user,
|
|
toUser = to_user,
|
|
confirmationRequired = true,
|
|
warningMessage = "This action transfers all supergod privileges and cannot be undone."
|
|
}
|
|
end
|
|
|
|
return transfer_form
|