Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:toolworks:docs:apparatus:patterns [2022/05/04 12:58] – created vladius | en:toolworks:docs:apparatus:patterns [2022/06/08 21:45] (current) – добавил ; в коде jispar | ||
---|---|---|---|
Line 15: | Line 15: | ||
if (!Cursor.Provide()) | if (!Cursor.Provide()) | ||
{ | { | ||
- | checkNoEntry() | + | checkNoEntry(); |
return T(); | return T(); | ||
} | } | ||
Line 22: | Line 22: | ||
return Trait; | return Trait; | ||
} | } | ||
- | </ | + | </code> |
+ | |||
+ | You can then query for the unique trait like so:< | ||
+ | auto EnemyBalance = GetSingleton< | ||
+ | </ |