---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by HUAFEI2.
--- DateTime: 2020/5/28 9:42
---

---@class LUiBase
LUiBase = LUiBase or class("LUiBase");

--[[
Ui = {
    m_bOpen = false;
    ...
}
--]]

function LUiBase:ctor()
    self.m_bOpen = false;
    self.m_szName = "LUiBase"
end

function LUiBase:dtor()
    --
end

---@return string
function LUiBase:GetName()
    return self.m_szName;
end

---@return table
function LUiBase:GetDataTable()
    local uiDataTable =  g_dataTable:GetUiTable();
    if uiDataTable[self.m_szName] == nil then
        uiDataTable[self.m_szName] = {}
    end
    return uiDataTable[self.m_szName];
end

---@param bOpen boolean
function LUiBase:SetOpenClose(bOpen)
    bOpen = bOpen or false;
    self.m_bOpen = bOpen;
end

---@return boolean
function LUiBase:IsOpen()
    return self.m_bOpen == true;
end

function LUiBase:OnOpen()
    --
end

function LUiBase:OnClose()
    --
end

function LUiBase:GameTick()
end

function LUiBase:GameDraw()
end

_G.LUiBase = LUiBase;
