Пример #1
0
 private ICharmTemplate getNativeCharmTemplate(ITemplateRegistry registry) {
   IBasicCharacterData basicCharacterContext = context.getBasicCharacterContext();
   ITemplateType templateType = basicCharacterContext.getTemplateType();
   ICharacterTemplate template = registry.getTemplate(templateType);
   IMagicTemplate magicTemplate = template.getMagicTemplate();
   return magicTemplate.getCharmTemplate();
 }
Пример #2
0
 private ICharmTemplate getCharmTemplate(ITemplateRegistry registry, ICharacterType type) {
   ICharacterTemplate defaultTemplate = registry.getDefaultTemplate(type);
   if (defaultTemplate == null) {
     return null;
   }
   return defaultTemplate.getMagicTemplate().getCharmTemplate();
 }
Пример #3
0
 private ICharmTemplate getNativeCharmTemplate(ITemplateRegistry registry) {
   IBasicCharacterData basicCharacterContext = context.getBasicCharacterContext();
   ITemplateType templateType = basicCharacterContext.getTemplateType();
   IExaltedEdition edition = basicCharacterContext.getRuleSet().getEdition();
   ICharacterTemplate template = registry.getTemplate(templateType, edition);
   IMagicTemplate magicTemplate = template.getMagicTemplate();
   return magicTemplate.getCharmTemplate();
 }
Пример #4
0
 private ICharmTemplate getCharmTemplate(ITemplateRegistry registry, ICharacterType type) {
   ICharacterTemplate defaultTemplate =
       registry.getDefaultTemplate(type, context.getBasicCharacterContext().getEdition());
   if (defaultTemplate == null || defaultTemplate instanceof IUnsupportedTemplate) {
     return null;
   }
   return defaultTemplate.getMagicTemplate().getCharmTemplate();
 }