示例#1
0
 public static void RegisterJobs()
 {
     foreach (string blueprintTypename in ManagerBlueprints.Blueprints.Keys)
     {
         BlockJobManagerTracker.Register <ConstructionJob> (blueprintTypename);
     }
 }
 public static void AfterDefiningNPCTypes()
 {
     BlockJobManagerTracker.Register <Construction.ConstructionJob>("constructionjob");
     BlockJobManagerTracker.Register <MinerJob>("minerjob");
     BlockJobManagerTracker.Register <WoodcutterJob>("splittingstump");
     BlockJobManagerTracker.Register <BloomeryJob>("bloomery");
     BlockJobManagerTracker.Register <FineryForgeJob>("fineryforge");
     BlockJobManagerTracker.Register <FurnaceJob>("furnace");
     BlockJobManagerTracker.Register <GrinderJob>("grindstone");
     BlockJobManagerTracker.Register <GunSmithJob>("gunsmithshop");
     BlockJobManagerTracker.Register <KilnJob>("kiln");
     BlockJobManagerTracker.Register <MetalSmithJob>("bronzeanvil");
     BlockJobManagerTracker.Register <MintJob>("mint");
     BlockJobManagerTracker.Register <OvenJob>("oven");
     BlockJobManagerTracker.Register <GuardBowJobDay>("guardbowdayjob");
     BlockJobManagerTracker.Register <GuardBowJobNight>("guardbownightjob");
     BlockJobManagerTracker.Register <GuardCrossbowJobDay>("guardcrossbowdayjob");
     BlockJobManagerTracker.Register <GuardCrossbowJobNight>("guardcrossbownightjob");
     BlockJobManagerTracker.Register <GuardMatchlockJobDay>("guardmatchlockdayjob");
     BlockJobManagerTracker.Register <GuardMatchlockJobNight>("guardmatchlocknightjob");
     BlockJobManagerTracker.Register <GuardSlingerJobDay>("guardslingerdayjob");
     BlockJobManagerTracker.Register <GuardSlingerJobNight>("guardslingernightjob");
     BlockJobManagerTracker.Register <ScientistJob>("sciencelab");
     BlockJobManagerTracker.Register <ShopJob>("shop");
     BlockJobManagerTracker.Register <TailorJob>("tailorshop");
     BlockJobManagerTracker.Register <TechnologistJob>("technologisttable");
     BlockJobManagerTracker.Register <WorkBenchJob>("workbench");
     BlockJobManagerTracker.Register <StonemasonJob>("stonemasonworkbench");
     BlockJobManagerTracker.Register <DyerJob>("dyertable");
 }
示例#3
0
 /// <summary>
 /// Associates a job class to this block.
 /// </summary>
 /// <typeparam name="T">A class which describes the job being associated with the block, must impliment ITrackableBlock,
 /// IBlockJobBase, INPCTypeDefiner, and have a default constructor. Should be called during the AfterDefiningNPCTypes callback.</typeparam>
 public void registerJob <T>() where T : ITrackableBlock, IBlockJobBase, INPCTypeDefiner, new()
 {
     Pipliz.Log.Write("{0}: Attempting to register a job to block {1}", NAMESPACE == null ? "" : NAMESPACE, this.ID);
     try
     {
         BlockJobManagerTracker.Register <T>(this.ID);
     }
     catch (Exception ex)
     {
         Pipliz.Log.Write("{0}: Registration error: {1}", NAMESPACE == null ? "" : NAMESPACE, ex.Message);
     }
 }
示例#4
0
 public static void AfterDefiningNPCTypes()
 {
     BlockJobManagerTracker.Register <FurnaceJob>("furnace");
     BlockJobManagerTracker.Register <GrinderJob>("grindstone");
     BlockJobManagerTracker.Register <MintJob>("mint");
     BlockJobManagerTracker.Register <OvenJob>("oven");
     BlockJobManagerTracker.Register <QuiverJob>("quiver");
     BlockJobManagerTracker.Register <ShopJob>("shop");
     BlockJobManagerTracker.Register <WorkBenchJob>("workbench");
     BlockJobManagerTracker.Register <TailorJob>("tailorshop");
     BlockJobManagerTracker.Register <TechnologistJob>("technologisttable");
     BlockJobManagerTracker.Register <ScientistJob>("sciencelab");
 }
 public static void RegisterJobs()
 {
     BlockJobManagerTracker.Register <AdvancedCrafterJob>(JOB_ITEM_KEY);
 }
示例#6
0
 public static void RegisterJobs()
 {
     Pipliz.Log.Write("Colonisation Test");
     BlockJobManagerTracker.Register <OreProcessorJob>(OreProcessorJob.JOB_STATION);
     BlockJobManagerTracker.Register <ScoutJob>(ScoutJob.JOB_STATION);
 }
示例#7
0
 public static void RegisterJobs()
 {
     BlockJobManagerTracker.Register <MachinistJob>(JOB_ITEM_KEY);
 }
示例#8
0
 public static void RegisterJobs()
 {
     Logger.Log("Registering Job..." + JOB_NAME + " and Item Key " + JOB_ITEM_KEY);
     BlockJobManagerTracker.Register <FletcheryJob>(JOB_ITEM_KEY);
 }
示例#9
0
 public static void RegisterJobs()
 {
     BlockJobManagerTracker.Register <ApothecaryJob>(JOB_ITEM_KEY);
 }
示例#10
0
 public static void AfterDefiningNPCTypes()
 {
     BlockJobManagerTracker.Register <BlacksmithJob> (JOB_ITEM_KEY);
 }
示例#11
0
 public static void RegisterJobs()
 {
     Logger.Log("Registering Job..." + JOB_NAME + " and Item Key " + JOB_ITEM_KEY);
     BlockJobManagerTracker.Register <AdvancedAgricultureJob>(JOB_ITEM_KEY);
 }
示例#12
0
 public static void AfterDefiningNPCTypes()
 {
     BlockJobManagerTracker.Register <ArchitectJob>(JOB_ITEM_KEY);
 }