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 })); ```