A simple Python script to assist with managing RSDKv5/U projects.
urwid is used for the console interface. It can be installed using:
pip install urwid
-
Update All.cpp/All.hpp & CMake Project
- This function generates
All.cpp
&All.hpp
includes andObjects.cmake
. - Forward declarations are included in the header.
- This function generates
-
Generate public functions
- This function generates
PublicFunctions.hpp
. Entity events are not included.
- This function generates
-
Create new object
- Creates a new object in the specified directory.
- After creation, you can optionally run
project_update
to generate newAll.cpp
andAll.hpp
files.
gameapi_util_cfg.py
is used for configuring various things, such as the path to your objects directory.
Available options:
GAME_PATH = "src"
OBJECT_PATH_NAME = "Objects"
ALL_CODE_NAME = "All.cpp"
ALL_HEADER_NAME = "All.hpp"
GAMEAPI_INC_PATH = "Game.hpp"
PUB_FNS_PATH = "PublicFunctions.hpp"
OBJECT_NAMESPACE = "GameLogic"
# cmake configuration
CMAKE_PATH = "Objects.cmake"
GAME_NAME = "${GAME_NAME}" # The game directory to look into
OBJECT_PATH = f"{GAME_PATH}/{OBJECT_PATH_NAME}"
You can extend the main menu with the init
function of your configuration file. For example:
def init(app_in):
global app
app = app_in
app.add_option('Validate Objects', ens_obj_valid)
app.add_option('Check Status', do_status_check)
# init -> (app_in)