Source Code Breakdown

The source code for rdInst is broken into some main areas:

  • Editor Tools – source relating to settings/conversion and about windows and functionality. This code is not included when packaging.
  • Helpers – various code files and routines for support.
  • MainEntryPoint – The Main files handling creation and destruction, and entry points for menu commands etc.
  • Other Actors – Actors included and subclassed from rdActor are in here.
  • PCG – Files and Classes pertaining to PCG are located here, including the custom spawners.
  • rdActor – Functions and Header definitions for the rdActor.
  • rdBase – Functions and Header definitions for the rdInstBaseActor singleton manager.
  • rdSubsystem – Files for the Subsystem wrapper to rdBase are located here.

Editor Tools

These source files are only compiled with the Editor, they’re stripped out when packaging your project.

They contain the Menus and Settings Windows used for changing various defaults and overrides for Instances, Assets and Actors.


Helpers

Some of these are Editor only, some are runtime – they’re helper routines and classes used by rdInst


MainEntryPoint

This is the main source file with the StartUpModule and ShutDown and some global routines used mostly by the Editor.

The change list is at the top of rdInst.cpp


Other Actors

This contains Actors SubClassed from rdActor. Currently the SpawnStuffActor and the ProceduralActor.


PCG

This has the various Custom Spawners for PCG. Note that you’ll need to remove the comments around these files and uncomment the PCG dependancy in the uplugin file to enable PCG support.


rdActor

This section contains the rdActor class – the various functionalities have been broken down and categorized into the separate cpp files.


rdBase

This section has the rdInstBaseActor Class. the various functionalities have been broken down and categorized into the separate cpp files.


rdSubsystem

This section has the rdInst Subsystem wrappers. These just call the functions in rdBase but provide a global way of accessing rdInst.

This section also has the base library routines for rdInst.