From 3d1938d5c6f81f559a41b6f0724960be8a72fd74 Mon Sep 17 00:00:00 2001 From: Leonardo Emanuele Date: Wed, 9 Nov 2022 11:15:40 +0100 Subject: [PATCH] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 880f011..e2c072f 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,10 @@ Usage examples: ## To mount an event: ```c# -EventDispatcher.Mount("eventName", new Action((source, val1, val2) => +EventDispatcher.Mount("eventName", new Action((source, val1, val2) => { // code to be used inside the event. - // ClientId is the optional insider class that handles clients triggering the event.. is like the "[FromSource] Player player" parameter but can be derived and handled as you want!! + // ISource is the optional insider class that handles clients triggering the event.. is like the "[FromSource] Player player" parameter but can be derived and handled as you want!! // Clientside is the same thing without the ClientId parameter })); ``` @@ -26,18 +26,18 @@ EventDispatcher.Send("eventName", params); // serverside EventDispatcher.Send(Player, "eventName", params); EventDispatcher.Send(List, "eventName", params); -EventDispatcher.Send(ClientId, "eventName", params); -EventDispatcher.Send(List, "eventName", params); +EventDispatcher.Send(ISource, "eventName", params); +EventDispatcher.Send(List, "eventName", params); ``` ## To trigger a callback ### Mounting it ```c# -EventDispatcher.Mount("eventName", new Func>(async (source, val1, val2) => +EventDispatcher.Mount("eventName", new Func>(async (source, val1, val2) => { // code to be used inside the event. - // ClientId is the optional insider class that handles clients triggering the event.. is like the "[FromSource] Player player" parameter but can be derived and handled as you want!! - // Clientside is the same thing without the ClientId parameter + // ISource is the optional insider class that handles clients triggering the event.. is like the "[FromSource] Player player" parameter but can be derived and handled as you want!! + // Clientside is the same thing without the ISource parameter return val3 })); ```