8,292
edits
mNo edit summary |
(modding -> script modding) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Modding]] | {{Modding Info}}{{Modding Topic Prerequisites | Modding:C Sharp Scripting}}[[Category:Script Modding]] | ||
Mods can add custom key mapping entries to the Key Mapping menu. | Mods can add custom key mapping entries to the Key Mapping menu. | ||
Line 74: | Line 74: | ||
[PlayerMutator] | [PlayerMutator] | ||
public class | public class ModName_PlayerMutator : IPlayerMutator | ||
{ | { | ||
public void mutate(GameObject player) | public void mutate(GameObject player) | ||
Line 82: | Line 82: | ||
} | } | ||
} | } | ||
</syntaxhighlight> | |||
== Shipping Your Mod == | |||
Your completed mod should look like this. For more info about the proper Mods directory location, see [[File_locations#.22Offline.22_mods_.28user_created_or_manually_added.29|File locations > Offline mods]]. | |||
<syntaxhighlight lang="yaml"> | |||
<Caves of Qud App Directory> | |||
Mods | |||
MyModFolder | |||
Commands.xml | |||
ModName_CommandListener.cs | |||
ModName_PlayerMutator.cs | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{Modding Navbox}} | {{Modding Navbox}} |