Remove hyphens from trait names, add TODO

This commit is contained in:
fullwall 2012-04-22 17:57:50 +08:00
parent f7e85f08ab
commit 69b71fcf76
2 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,9 @@ public class CitizensCharacterManager implements CharacterManager {
public void registerCharacter(CharacterFactory factory) { public void registerCharacter(CharacterFactory factory) {
try { try {
Character character = factory.create(); Character character = factory.create();
registered.put(character.getName(), character); registered.put(character.getName(), character); // TODO: this only
// allows singletons
// for characters.
} catch (CharacterException ex) { } catch (CharacterException ex) {
ex.printStackTrace(); ex.printStackTrace();
} }

View File

@ -40,7 +40,7 @@ public class CitizensTraitManager implements TraitManager {
registerTrait(new TraitFactory(CurrentLocation.class).withName("location").withPlugin(plugin)); registerTrait(new TraitFactory(CurrentLocation.class).withName("location").withPlugin(plugin));
registerTrait(new TraitFactory(Equipment.class).withName("equipment").withPlugin(plugin)); registerTrait(new TraitFactory(Equipment.class).withName("equipment").withPlugin(plugin));
registerTrait(new TraitFactory(Inventory.class).withName("inventory").withPlugin(plugin)); registerTrait(new TraitFactory(Inventory.class).withName("inventory").withPlugin(plugin));
registerTrait(new TraitFactory(LookClose.class).withName("look-close").withPlugin(plugin)); registerTrait(new TraitFactory(LookClose.class).withName("lookclose").withPlugin(plugin));
registerTrait(new TraitFactory(MobType.class).withName("type").withPlugin(plugin)); registerTrait(new TraitFactory(MobType.class).withName("type").withPlugin(plugin));
registerTrait(new TraitFactory(Owner.class).withName("owner").withPlugin(plugin)); registerTrait(new TraitFactory(Owner.class).withName("owner").withPlugin(plugin));
registerTrait(new TraitFactory(Powered.class).withName("powered").withPlugin(plugin)); registerTrait(new TraitFactory(Powered.class).withName("powered").withPlugin(plugin));
@ -50,7 +50,7 @@ public class CitizensTraitManager implements TraitManager {
registerTrait(new TraitFactory(Text.class).withName("text").withPlugin(plugin)); registerTrait(new TraitFactory(Text.class).withName("text").withPlugin(plugin));
registerTrait(new TraitFactory(VillagerProfession.class).withName("profession").withPlugin(plugin)); registerTrait(new TraitFactory(VillagerProfession.class).withName("profession").withPlugin(plugin));
registerTrait(new TraitFactory(Waypoints.class).withName("waypoints").withPlugin(plugin)); registerTrait(new TraitFactory(Waypoints.class).withName("waypoints").withPlugin(plugin));
registerTrait(new TraitFactory(WoolColor.class).withName("wool-color").withPlugin(plugin)); registerTrait(new TraitFactory(WoolColor.class).withName("woolcolor").withPlugin(plugin));
registerTrait(new TraitFactory(Controllable.class).withName("controllable").withPlugin(plugin)); registerTrait(new TraitFactory(Controllable.class).withName("controllable").withPlugin(plugin));
} }