# Zsh completion for the `bge` command (BGE 开放平台 Python SDK).
#
# Installed into the zsh site-functions directory (share/zsh/site-functions) so
# zsh's completion system autoloads it automatically. The actual completion
# logic is delegated to argcomplete via `register-python-argcomplete`, which
# emits a shell-agnostic script (bash `complete` for bash, `compdef` for zsh).
#
# Bash users: this same logic is provided by completions/bge.bash, which is
# installed into share/bash-completion/completions and sourced automatically by
# bash-completion.

if command -v register-python-argcomplete >/dev/null 2>&1; then
    eval "$(register-python-argcomplete bge)"
fi
