Storm Game Framework 2.0.0
User guide
Loading...
Searching...
No Matches
How SGF fits together

SGF is a single Unreal Engine plugin made of many small modules. Your project supplies assets and gameplay rules. SGF supplies the classes that find those assets, apply their configuration, run gameplay and present its results. This page shows how the main modules work together. Follow the diagram for the feature you want to build.

Blue boxes are runtime services, green boxes are authored assets, and grey boxes are Unreal objects or code supplied by your game.

How modules depend on each other

StormCore defines the shared interfaces, called capabilities, that one feature uses to reach another. For example, IStormInventoryOwner lets a pickup find an actor's inventory without knowing its component class. Feature modules implement those interfaces. StormInventory and StormEquipment, for example, both build on StormCore without depending on each other.

Modules whose names end in Adapter connect two features, such as StormInventoryEquipmentAdapter for inventory and equipment. Add an adapter only when your game uses both features. Modules ending in Editor add editor tools and never ship in a packaged game.

From an Actor Definition to a playable pawn

The Actor Definition describes the class to use and the profiles to apply. The Asset Manager makes the definition discoverable. Actor Assembly can spawn an actor from the definition or configure an existing actor. Each profile is delivered to the capability it is keyed by, such as appearance or equipment.

The Humanoid Blueprint points to its definition through Default Definition. Its assembly component (UStormActorAssemblyComponent) applies that definition to the components already on the pawn. The pawn keeps its identity and capability state when control passes between a player and an NPC.

Project assets and the classes that apply them

For a first run, build a Humanoid with Playable Starter. To use your own class or profiles, see asset discovery and assembly.

How one item connects inventory, equipment and weapons

The Item Archetype defines a kind of item. The Inventory Component holds specific instances. The Equipment Component records which instance occupies a slot. The optional Equipped Weapon Coordinator follows the watched slot and binds the matching weapon. A game HUD can read the resulting weapon view.

Item type, owned instance, equipped slot and weapon binding

When moving between an indexed inventory cell and a slot, use the UStormInventoryEquipmentCoordinator to coordinate both. See the full item and weapon setup for compatibility, reserve ammo and persistence between equips.

Who can spawn, where, and as what

A game's spawn rule can ask four world subsystems different questions. Roster reserves a member. Population reserves capacity. Spawn reserves a location. Actor Assembly builds the actor using its definition and the chosen transform. The game owns the overall decision. It must settle every reservation it takes: commit it once the actor is in play, or cancel it if the spawn fails.

Four services called by a game-owned spawn rule

Start with a single actor and a single spawn point. Follow the roster-backed spawn recipe to see when to commit or cancel each reservation.

Where runtime services live

Choose the object that owns the lifetime you need. For example, look up the Save Subsystem on the game instance, the Level Subsystem on the current world, and the UI Subsystem on the local player. After map travel, query the destination world for its world subsystems.

Unreal lifetime of selected SGF subsystems

The game can use these services together to travel, reveal the destination and open its UI.

How control passes to NPC AI

Call TransferControl on the authority, which is the server in multiplayer, with a compatible controller. Inspect the operation result, then check the controller's AI startup result separately. The pawn keeps its identity and capability state as control changes. Follow the handoff walkthrough to try it.

Authority-side handoff and AI startup

The AI component runs the controller's configured state machine. A state can contain a Run Action Selector task that reads candidate actions from an AI Action Set. See NPC behaviour tools for the editor workflow.

How a widget request reaches the screen

The UI subsystem belongs to the local player. It looks up the requested tag in the Widget Registry, then opens the widget in the matching layer of the Primary Layout. A registry entry without a valid layer tag uses the default layer from Storm UI settings.

Widget tag lookup and placement

Use the module index to find more classes and examples.