GraciaLoader.java 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. * Copyright (C) 2004-2015 L2J DataPack
  3. *
  4. * This file is part of L2J DataPack.
  5. *
  6. * L2J DataPack is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * L2J DataPack is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. package gracia;
  20. import gracia.AI.EnergySeeds;
  21. import gracia.AI.Lindvior;
  22. import gracia.AI.Maguen;
  23. import gracia.AI.StarStones;
  24. import gracia.AI.NPC.FortuneTelling.FortuneTelling;
  25. import gracia.AI.NPC.GeneralDilios.GeneralDilios;
  26. import gracia.AI.NPC.Lekon.Lekon;
  27. import gracia.AI.NPC.Nemo.Nemo;
  28. import gracia.AI.NPC.Nottingale.Nottingale;
  29. import gracia.AI.NPC.Seyo.Seyo;
  30. import gracia.AI.NPC.ZealotOfShilen.ZealotOfShilen;
  31. import gracia.AI.SeedOfAnnihilation.SeedOfAnnihilation;
  32. import gracia.instances.SecretArea.SecretArea;
  33. import gracia.instances.SeedOfDestruction.Stage1;
  34. import gracia.instances.SeedOfInfinity.HallOfSuffering.HallOfSuffering;
  35. import gracia.vehicles.AirShipGludioGracia.AirShipGludioGracia;
  36. import gracia.vehicles.KeucereusNorthController.KeucereusNorthController;
  37. import gracia.vehicles.KeucereusSouthController.KeucereusSouthController;
  38. import gracia.vehicles.SoDController.SoDController;
  39. import gracia.vehicles.SoIController.SoIController;
  40. import java.util.logging.Level;
  41. import java.util.logging.Logger;
  42. /**
  43. * Gracia class-loader.
  44. * @author Pandragon
  45. */
  46. public final class GraciaLoader
  47. {
  48. private static final Logger _log = Logger.getLogger(GraciaLoader.class.getName());
  49. private static final Class<?>[] SCRIPTS =
  50. {
  51. // AIs
  52. EnergySeeds.class,
  53. Lindvior.class,
  54. Maguen.class,
  55. StarStones.class,
  56. // NPCs
  57. FortuneTelling.class,
  58. GeneralDilios.class,
  59. Lekon.class,
  60. Nemo.class,
  61. Nottingale.class,
  62. Seyo.class,
  63. ZealotOfShilen.class,
  64. // Seed of Annihilation
  65. SeedOfAnnihilation.class,
  66. // Instances
  67. SecretArea.class,
  68. Stage1.class, // Seed of Destruction
  69. HallOfSuffering.class, // Seed of Infinity
  70. // Vehicles
  71. AirShipGludioGracia.class,
  72. KeucereusNorthController.class,
  73. KeucereusSouthController.class,
  74. SoIController.class,
  75. SoDController.class,
  76. };
  77. public static void main(String[] args)
  78. {
  79. _log.info(GraciaLoader.class.getSimpleName() + ": Loading Gracia related scripts.");
  80. for (Class<?> script : SCRIPTS)
  81. {
  82. try
  83. {
  84. script.newInstance();
  85. }
  86. catch (Exception e)
  87. {
  88. _log.log(Level.SEVERE, GraciaLoader.class.getSimpleName() + ": Failed loading " + script.getSimpleName() + ":", e);
  89. }
  90. }
  91. }
  92. }