<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>CResourceManager :: Catur Documentation</title>
    <link>https://doc.cdryx.net/CdryxAIOUPlugin/modules/cresourceumodule/cresourcemanager/index.html</link>
    <description>Overview UCResourceManager is a UGameInstanceSubsystem that manages a named resource inventory (resourceMap) and a mechanic object registry (mecanikMap). It implements ICResourceData and broadcasts onResourceEvent on every resource change. Registered as a singleton via CNAME_Singleton_ResourceManager.&#xA;Functions Name Description getInstance Returns the UCResourceManager instance from a given actor’s game instance countAny Returns the quantity of a single named resource countAll Returns the summed quantity of multiple named resources (duplicates counted once) removeAny Removes a single named resource from the map and broadcasts removeAll Removes multiple named resources from the map and broadcasts setupAny Sets a single named resource to a given count and broadcasts setupAll Sets multiple named resources to a given count and broadcasts consume Decreases a resource by count, resolves its UClass from DataTable, broadcasts. Returns new stock supply Increases a resource by count, resolves its UClass from DataTable, broadcasts. Returns new stock boundToOnResourceEvent Binds an ICResourceBoundable listener to the onResourceEvent delegate unboundToOnResourceEvent Unbinds an ICResourceBoundable listener from the onResourceEvent delegate // getInstance — static, returns the subsystem from an actor&#39;s game instance UCResourceManager* mgr = UCResourceManager::getInstance(myActor); // countAny — returns the quantity of a single resource float water = mgr-&gt;countAny(FName(&#34;Water&#34;)); // countAll — returns the sum of multiple resources (duplicates counted once) float total = mgr-&gt;countAll({FName(&#34;Water&#34;), FName(&#34;Spice&#34;)}); // removeAny — removes a single resource entry mgr-&gt;removeAny(FName(&#34;Water&#34;)); // removeAll — removes multiple resource entries mgr-&gt;removeAll({FName(&#34;Water&#34;), FName(&#34;Spice&#34;)}); // setupAny — sets a resource to a given count (default 1.0) mgr-&gt;setupAny(FName(&#34;Water&#34;), 10.0); // setupAll — sets multiple resources to the same count (default 1.0) mgr-&gt;setupAll({FName(&#34;Water&#34;), FName(&#34;Spice&#34;)}, 5.0); // consume — decreases resource, returns new stock, resolves UClass UClass* resourceClass = nullptr; float newStock = mgr-&gt;consume(FName(&#34;Water&#34;), resourceClass, 2.0); // supply — increases resource, returns new stock, resolves UClass float newStock2 = mgr-&gt;supply(FName(&#34;Spice&#34;), resourceClass, 3.0); // boundToOnResourceEvent — bind a listener mgr-&gt;boundToOnResourceEvent(myBoundableObject); // unboundToOnResourceEvent — unbind a listener mgr-&gt;unboundToOnResourceEvent(myBoundableObject);</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://doc.cdryx.net/CdryxAIOUPlugin/modules/cresourceumodule/cresourcemanager/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>