public override void Start(ICoreAPI api) { base.Start(api); api.RegisterBlockBehaviorClass("BlockCreateBehavior", typeof(BlockCreateBehavior)); api.RegisterBlockBehaviorClass("BlockSwapBehavior", typeof(BlockSwapBehavior)); api.RegisterBlockBehaviorClass("LampConnectorBehavior", typeof(LampConnectorBehavior)); api.RegisterBlockBehaviorClass("LampPostBehavior", typeof(LampPostBehavior)); api.RegisterBlockBehaviorClass("RotateNinety", typeof(RotateNinety)); api.RegisterBlockBehaviorClass("ChimneyBehavior", typeof(ChimneyBehavior)); //api.RegisterBlockClass("BlockPlaceOnDrop", typeof(BlockPlaceOnDropNew)); api.RegisterBlockClass("BlockGiantReeds", typeof(BlockGiantReeds)); api.RegisterBlockClass("BlockMortarAndPestle", typeof(BlockMortarAndPestle)); //api.RegisterBlockClass("BlockBowl", typeof(BlockBowlNew)); api.RegisterBlockClass("BlockLogWall", typeof(BlockLogWall)); api.RegisterBlockClass("BlockCheeseCloth", typeof(BlockCheeseCloth)); api.RegisterBlockClass("BlockNeolithicRoads", typeof(BlockNeolithicRoads)); api.RegisterBlockClass("BlockLooseStones", typeof(BlockLooseStonesModified)); api.RegisterBlockClass("FixedStairs", typeof(FixedStairs)); api.RegisterBlockClass("BlockMetalWedge", typeof(BlockMetalWedge)); api.RegisterBlockClass("BlockChandelier", typeof(BlockChandelierFix)); api.RegisterBlockClass("BlockToolMold", typeof(BlockToolMoldReturnBlock)); api.RegisterItemClass("ItemSickle", typeof(ItemSickle)); api.RegisterItemClass("ItemGiantReedsRoot", typeof(ItemGiantReedsRoot)); api.RegisterItemClass("ItemAdze", typeof(ItemAdze)); api.RegisterItemClass("ItemChisel", typeof(ItemChiselFix)); api.RegisterItemClass("ItemSwapBlocks", typeof(ItemSwapBlocks)); api.RegisterItemClass("ItemSlaughteringAxe", typeof(ItemSlaughteringAxe)); //api.RegisterItemClass("ItemKnife", typeof(ItemKnifeAdditions)); api.RegisterBlockEntityClass("GenericPOI", typeof(POIEntity)); api.RegisterBlockEntityClass("NeolithicTransient", typeof(NeolithicTransient)); api.RegisterBlockEntityClass("BEScary", typeof(BEScary)); api.RegisterBlockEntityClass("FixedBESapling", typeof(FixedBESapling)); api.RegisterBlockEntityClass("BEMortarAndPestle", typeof(BEMortarAndPestle)); api.RegisterBlockEntityClass("BlockEntityChimney", typeof(BlockEntityChimney)); api.RegisterBlockEntityClass("BucketB", typeof(BEBucketOverride)); api.RegisterBlockEntityClass("NeolithicRoads", typeof(BENeolithicRoads)); api.RegisterBlockEntityClass("Wedger", typeof(BlockEntityMetalWedge)); AiTaskRegistry.Register("fleepoi", typeof(AiTaskFleePOI)); AiTaskRegistry.Register("sleep", typeof(AiTaskSleep)); AiTaskRegistry.Register("neolithicseekfoodandeat", typeof(FixedAiTaskSeekFoodAndEat)); api.RegisterEntityBehaviorClass("milkable", typeof(BehaviorMilkable)); api.RegisterEntityBehaviorClass("slaughterable", typeof(BehaviorSlaughterable)); api.RegisterEntityBehaviorClass("featherpluck", typeof(BehaviorFeatherPluck)); api.RegisterEntityBehaviorClass("damagenotify", typeof(BehaviorNotifyHerdOfDamage)); }
public override void Start(ICoreAPI api) { base.Start(api); api.RegisterItemClass("ProgCard", typeof(ItemProgCard)); api.RegisterItemClass("ItemDeployBot", typeof(ItemDeployBot)); api.RegisterEntityBehaviorClass("program", typeof(EntityBehaviorProgram)); api.RegisterEntity("EntityReprogLocust", typeof(EntityReprogLocust)); AiTaskRegistry.Register <AiTaskHarvest>("harvest"); AiTaskRegistry.Register <AiTaskSeekItem>("seekitem"); AiTaskRegistry.Register <AiTaskToChest>("tochest"); AiTaskRegistry.Register <AiTaskFromChest>("fromchest"); AiTaskRegistry.Register <AiTaskPlant>("plant"); AiTaskRegistry.Register <AiTaskSqueezeHoney>("squeezehoney"); AiTaskRegistry.Register <AiTaskMilk>("milk"); AiTaskRegistry.Register <AiTaskToBarrel>("tobarrel"); AiTaskRegistry.Register <AiTaskGetSeed>("getseed"); AiTaskRegistry.Register <AiTaskSeekItemAny>("seekanyitem"); AiTaskRegistry.Register <AiTaskGetFuel>("getfuel"); AiTaskRegistry.Register <AiTaskRefuel>("refuel"); AiTaskRegistry.Register <AiTaskRepair>("repair"); AiTaskRegistry.Register <AiTaskProgSeekEntity>("progseekentity"); AiTaskRegistry.Register <AiTaskProgMeleeAttack>("progmeleeattack"); AiTaskRegistry.Register <AiTaskQuarry>("quarry"); AiTaskRegistry.Register <AiTaskStayCloseToOwner>("stayclosetoowner"); AiTaskRegistry.Register <AiTaskPathBuilder>("pathbuilder"); AiTaskRegistry.Register <AiTaskToAltChest>("toaltchest"); AiTaskRegistry.Register <AiTaskProgRangedAttack>("prograngedattack"); AiTaskRegistry.Register <AiTaskForm>("form"); AiTaskRegistry.Register <AiTaskToPoint>("topoint"); AiTaskRegistry.Register <AiTaskGetItem>("getitem"); AiTaskRegistry.Register <AiTaskAnyFromChest>("anyfromchest"); AiTaskRegistry.Register <AiTaskGetTool>("gettool"); try { TemporalHackerConfig FromDisk; if ((FromDisk = api.LoadModConfig <TemporalHackerConfig>("TemporalHackerConfig.json")) == null) { api.StoreModConfig <TemporalHackerConfig>(TemporalHackerConfig.Loaded, "TemporalHackerConfig.json"); } else { TemporalHackerConfig.Loaded = FromDisk; } } catch { api.StoreModConfig <TemporalHackerConfig>(TemporalHackerConfig.Loaded, "TemporalHackerConfig.json"); } }
public void RegisterAiTasks() { AiTaskRegistry.Register("sleep", typeof(AiTaskSleep)); AiTaskRegistry.Register("neolithicseekfoodandeat", typeof(FixedAiTaskSeekFoodAndEat)); }
public void RegisterAiTasks() { AiTaskRegistry.Register("sleep", typeof(AiTaskSleep)); AiTaskRegistry.Register("fear", typeof(AiTaskFear)); }