예제 #1
0
 internal static void Postfix(HashSet <SteamUGCDetails_t> ___publishes)
 {
     foreach (var details in ___publishes)
     {
         ModEditor.AddModInfo(details);
     }
 }
예제 #2
0
 internal ModEditDialog(GameObject parent, KMod.Mod target)
 {
     if (target == null)
     {
         throw new ArgumentNullException("target");
     }
     if (target.label.distribution_platform != KMod.Label.DistributionPlatform.Steam)
     {
         throw new ArgumentException("Only works on Steam mods");
     }
     mod    = target;
     editor = new ModEditor(target);
     editor.OnModifyComplete += OnModifyComplete;
     editor.OnModifyFailed   += OnModifyFailed;
     this.parent              = parent;
 }