Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/Stramp/Lost-Mines-PhandelverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/stramp/lost-mines-phandelver/unreal-delegates-events)<a href="https://agentmods.dev/rules/stramp/lost-mines-phandelver/unreal-delegates-events"><img src="https://agentmods.dev/badge/rules/stramp/lost-mines-phandelver/unreal-delegates-events.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00363 |
| Opus 5 | $0.00000 | $0.00181 |
| Sonnet 5 | $0.00000 | $0.00073 |
| Haiku 4.5 | $0.00000 | $0.00036 |
Grade A, and why
unreal-delegates-events scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Delegates and Events - Unreal Engine 5.7
Delegate Types
- DECLARE_DELEGATE - Simple delegate without parameters
- DECLARE_DELEGATE_OneParam - Delegate with one parameter
- DECLARE_DELEGATE_Multicast - Multicast delegate (multiple listeners)
- DECLARE_DYNAMIC_DELEGATE - Delegate exposed to Blueprint
- DECLARE_DYNAMIC_MULTICAST_DELEGATE - Multicast exposed to Blueprint
Delegate Declaration
// In header
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnHealthChanged, float, NewHealth);
UCLASS()
class MYPROJECT2_API AMyActor : public AActor
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintAssignable, Category = "Events")
FOnHealthChanged OnHealthChanged;
};
Using Delegates
// Broadcast event
OnHealthChanged.Broadcast(NewHealth);
// Binding (C++)
OnHealthChanged.AddDynamic(this, &AMyActor::HandleHealthChanged);
// Unbinding
OnHealthChanged.RemoveDynamic(this, &AMyActor::HandleHealthChanged);
Blueprint Events
- Use
BlueprintAssignablefor events that can be assigned in Blueprint - Use
BlueprintCallablefor functions that trigger events - Dynamic events are slower but work with Blueprints
Best Practices
- Use delegates to decouple systems
- Prefer multicast delegates for events that multiple systems need to listen to
- ALWAYS unbind delegates when objects are destroyed
- Use dynamic delegates only when necessary to expose to Blueprint
- Static delegates are faster than dynamic ones
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 55 lines · 0 tokens per session scan A aae5b881ce08
unreal-delegates-events is a cursor rule published in the GitHub repository Stramp/Lost-Mines-Phandelver (2 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 363 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other cursor rules, from other repositories
08-client-server
Rules for separating client-side and server-side code in Fabric 1.14.4 Minecraft mods. Fabric is a Minecraft modding framework, and client code runs in the player’s game while server code runs the game world.
07-datagen
A project rule for Minecraft Fabric 1.14.4 resources, such as item models, block models, recipes, and language files. It requires these files to be written as JSON in the source resources folders because that version does not include the newer data-generation system.
meta-quest-agentic-tools
Use Meta Quest Agentic Tools for Meta Quest and Horizon OS samples.
narrative-writing
A set of rules for writing and editing video-game narratives, connected to a narrative project. It requires the agent to load the project's writing context and story canon, which is the established set of story facts, before making changes.
meta-quest-agentic-tools
Use Meta Quest Agentic Tools for Meta Quest and Horizon OS samples.
visual-and-observational-rules
Defines the visual aspects of the game and how the player observes the world. This includes map color-coding, screen effects, and the overall simulation style.