Modding:Key Mapping (Commands): Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 37: Line 37:
{
{
     [Serializable]
     [Serializable]
     public class MyMod_CommandListener : IPart
     public class ModName_CommandListener : IPart
     {
     {
         public static readonly string CmdOne = "ModName_Cmd_One";
         public static readonly string CmdOne = "ModName_Cmd_One";
Line 79: Line 79:
       {
       {
           // add your command listener to the player when a New Game begins
           // add your command listener to the player when a New Game begins
           player.AddPart<MyMod_CommandListener>();
           player.AddPart<ModName_CommandListener>();
       }
       }
   }
   }