From bc6ee60ecc6cc705b40e64acd893741e8c7b54c1 Mon Sep 17 00:00:00 2001 From: AsertCreator <53435943+AsertCreator@users.noreply.github.com> Date: Tue, 21 Jun 2022 10:19:33 +0900 Subject: [PATCH 1/2] userkit for visual studio 2022 --- userkit install.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userkit install.bat b/userkit install.bat index ff4c0bf5a4..3e76ba3b74 100644 --- a/userkit install.bat +++ b/userkit install.bat @@ -1,3 +1,3 @@ @echo off -install-VS2019 -USERKIT %* +install-VS2022 -USERKIT %* From e3273c43cc47f275b0059723aa9d404456066cc1 Mon Sep 17 00:00:00 2001 From: AsertCreator <53435943+AsertCreator@users.noreply.github.com> Date: Tue, 21 Jun 2022 10:20:26 +0900 Subject: [PATCH 2/2] fix typo --- Docs/articles/Kernel/Plugs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docs/articles/Kernel/Plugs.md b/Docs/articles/Kernel/Plugs.md index f8369201a9..ad726d4a62 100644 --- a/Docs/articles/Kernel/Plugs.md +++ b/Docs/articles/Kernel/Plugs.md @@ -26,7 +26,7 @@ Plugs change what happens in step 2. A normal code plug means that rather taking # Implementing a Plug -While one always plugs individual methods, plugs are defined class wise. Therefore the first step to plugging any method is to define a new static class to contain all the pluggged methods for some certain type. This class must be decorated with the `Plug` attribute. The plug attribute either takes the type it is plugging(`Plug(Tpe target)`) or a string with the target name(`Plug(string targetName)`). Using the string target name is required when plugging internal or private classes. An example for a plugged class is for the Math class. https://github.com/CosmosOS/Cosmos/blob/8a8393353f1957890c5154650e29847fd22bf893/source/Cosmos.System2_Plugs/System/MathImpl.cs#L8-L9 +While one always plugs individual methods, plugs are defined class wise. Therefore the first step to plugging any method is to define a new static class to contain all the pluggged methods for some certain type. This class must be decorated with the `Plug` attribute. The plug attribute either takes the type it is plugging(`Plug(Type target)`) or a string with the target name(`Plug(string targetName)`). Using the string target name is required when plugging internal or private classes. An example for a plugged class is for the Math class. https://github.com/CosmosOS/Cosmos/blob/8a8393353f1957890c5154650e29847fd22bf893/source/Cosmos.System2_Plugs/System/MathImpl.cs#L8-L9 ## Code Plug