/// <summary>
 /// Adds the specified baseStat to the given character.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="baseStat">The base stat.</param>
 /// <param name="id">The id.</param>
 /// <exception cref="NotImplementedException"></exception>
 internal static void Add(DndDmHelperContext context, BaseStatDTO baseStat, TemplateCharacter character)
 {
     context.Add(new TemplateCharacterBaseStat()
     {
         BaseStatID = baseStat.ID,
         Character  = character,
         Value      = baseStat.Value
     });
 }
Esempio n. 2
0
 /// <summary>
 /// Adds the specified note dto.
 /// </summary>
 /// <param name="noteDTO">The note dto.</param>
 internal static void Add(DndDmHelperContext context, NoteDTO noteDTO)
 {
     context.Add(new Note()
     {
         Name       = noteDTO.Name,
         Content    = noteDTO.Content,
         GameID     = noteDTO.GameID,
         NoteTypeID = noteDTO.NoteTypeID
     });
 }