コード例 #1
0
 private static void Prefix()
 {
     Strings.Add("STRINGS.BUILDINGS.PREFABS.METEORDEFENSELASER.NAME", "Meteor Defense Laser");
     Strings.Add("STRINGS.BUILDINGS.PREFABS.METEORDEFENSELASER.DESC", "Requires significant power.");
     Strings.Add("STRINGS.BUILDINGS.PREFABS.METEORDEFENSELASER.EFFECT", "Blasts incoming meteors into smithereens.");
     Strings.Add("STRINGS.BUILDING.STATUSITEMS.LASERSTOREDCHARGE.NAME", "Power available: {0} of {1}.");
     Strings.Add("STRINGS.BUILDING.STATUSITEMS.LASERSTOREDCHARGE.TOOLTIP", "This building can store enough power to fire the laser for 3 seconds.");
     Strings.Add("STRINGS.BUILDING.STATUSITEMS.LASERKILLS.NAME", "Kill count: {0}");
     Strings.Add("STRINGS.BUILDING.STATUSITEMS.LASERKILLS.TOOLTIP", "Number of meteors destroyed.");
     BuildingUtils.AddBuildingToTechnology("RoboticTools", MeteorDefenseLaserConfig.ID);
 }
コード例 #2
0
 private static void Prefix()
 {
     BuildingUtils.AddBuildingToPlanScreen("Automation", MeteorDefenseLaserConfig.ID);
 }