1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-10 09:22:49 +00:00

Javadoc improvement and renamed IDProvider#createID(Object) to

resolveID(Object)

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-07-30 22:36:16 -03:00
parent 17fb84faab
commit b7d3738c0b
26 changed files with 69 additions and 44 deletions

View File

@@ -81,7 +81,7 @@ public class CM_AUTH_LOGIN extends AbstractClientPacket {
@Override
public void process(final Lineage2Client conn) {
final AccountID accountId = accountIdFactory.createID(loginName);
final AccountID accountId = accountIdFactory.resolveID(loginName);
conn.setSession(new Lineage2Session(accountId, playKey1, playKey2,
loginKey1, loginKey2));

View File

@@ -193,7 +193,7 @@ public class CM_CHAR_CREATE extends AbstractClientPacket {
// create template id and lookup for the template instance
final CharacterTemplateID templateId = characterTemplateIdProvider
.createID(characterClass.id);
.resolveID(characterClass.id);
final CharacterTemplate template = templateId.getTemplate();
log.debug("Creating character with template {}", template);

View File

@@ -80,7 +80,7 @@ public class CM_REQUEST_CHAR_TEMPLATE extends AbstractClientPacket {
final CharacterTemplate[] templates = new CharacterTemplate[TEMPLATE_CLASSES.length];
int i = 0;
for (final CharacterClass charClass : TEMPLATE_CLASSES) {
final CharacterTemplateID id = idFactory.createID(charClass.id);
final CharacterTemplateID id = idFactory.resolveID(charClass.id);
templates[i++] = id.getTemplate();
}
conn.write(new SM_CHAR_TEMPLATE(templates));