if not moonsx or type(moonsx.RegisterMediaPack) ~= "function" then
    return
end

local ok, err = moonsx:RegisterMediaPack("digimon", {
    apiVersion = 1,
    displayName = "Digimon",
    textures = {
        digimon = {
            path = "Interface\\AddOns\\MoonSX_Media_Digimon\\Media\\Textures\\digimon.tga",
            displayName = "Digimon", sound = "digimon", playback = "fixed",
            atlasWidth = 4096, atlasHeight = 4096, frameWidth = 256, frameHeight = 256,
            columns = 16, totalFrames = 256, fps = 6.4, duration = 40, circular = true,
        },
    },
    sounds = {
        digimon = { path = "Interface\\AddOns\\MoonSX_Media_Digimon\\Media\\Music\\digimon.ogg", displayName = "Digimon", duration = 40.0 },
    },
})
if not ok then
    moonsx:Notify("Digimon 媒体包未加载：" .. tostring(err), true)
end
