99#include < EASTL\vector.h>
1010#include < EASTL\fixed_vector.h>
1111
12+ // Check Simulator::cSpaceTrading
1213#define SpaceTrading (*Simulator::cSpaceTrading::Get ())
1314#define cNPCStorePtr eastl::intrusive_ptr<Simulator::cNPCStore>
1415
@@ -35,6 +36,13 @@ namespace Simulator
3536 };
3637 ASSERT_SIZE (cNPCStore, 0xC0 );
3738
39+ // / Singleton class for everything related to space stage trading, such as obtaining tradable items
40+ // / or generating NPC stores. This class manages the objects in the GroupIDs::SpaceTrading_ folder.
41+ // / Example usage:
42+ // / ```cpp
43+ // / // Get 3 red spice
44+ // / SpaceTrading.ObtainTradingObject({ id("spice1"), TypeIDs::prop, GroupIDs::SpaceTrading_ }, 3);
45+ // / ```
3846 class cSpaceTrading
3947 /* 00h */ : public cStrategy
4048 /* 1Ch */ , public App::IMessageListener
@@ -51,7 +59,7 @@ namespace Simulator
5159 static bool IsRare (const ResourceKey& key);
5260
5361 // / Gives the specified trading object to the player, adding it to its inventory.
54- // / The key must be a `.prop` file in GroupIDs::SpaceTrading group.
62+ // / The key must be a `.prop` file in GroupIDs::SpaceTrading_ group.
5563 // / If the item is a rare, it will show an event log, give a badge if necessary, and emit the SimulatorMessages::kMsgSpaceRareFound message.
5664 // / @param key The key of the item
5765 // / @param amount Quantity to give
0 commit comments