Procházet zdrojové kódy

Describe how to load a C# DLC (#3242)

Explains how to load a PCK made from a C# project.

Co-authored-by: Hugo Locurcio <[email protected]>
Hugo Locurcio před 5 roky
rodič
revize
4dccd9fbd4

+ 5 - 0
getting_started/workflow/export/exporting_pcks.rst

@@ -120,6 +120,11 @@ file in the directory of the games executable. The PCK file contains a
     subfolder). However, it is also a way of creating patches for one's own game. A
     PCK file of this kind can fix the content of a previously loaded PCK.
 
+.. note::
+    For a C# project, you need to build the DLL and place it in the project directory first.
+    Then, before loading the resource pack, you need to load its DLL as follows:
+    ``Assembly.LoadFile("mod.dll")``
+
 Summary
 -------