コード例 #1
0
 static void Prefix()
 {
     XRL.World.GameObject player = XRLCore.Core?.Game?.Player?.Body;
     if (player != null)
     {
         player.RequirePart <XRL.World.Parts.QudUX_ConversationHelper>();
     }
     ConsoleUtilities.SuppressScreenBufferImposters(true);
 }
コード例 #2
0
ファイル: HZMapPinToggle.cs プロジェクト: HunterZ/qudmods
 public static void GameLoadHandler()
 {
     XRL.World.GameObject player = XRL.Core.XRLCore.Core?.Game?.Player?.Body;
     if (player == null)
     {
         return;
     }
     // add part only if it's not already present
     player.RequirePart <HZMapPinTogglePart>();
     // also set up ability if needed
     HZMapPinTogglePart.AddAbility(player);
 }