예제 #1
0
 /// <summary>
 /// Create a new <see cref="GuildStandard"/> from a network model.
 /// </summary>
 public GuildStandard(NetworkGuildStandard model)
 {
     BackgroundIcon = new GuildStandardPart(GuildStandardPartType.Background, model.BackgroundIcon.GuildStandardPartId,
                                            model.BackgroundIcon.DyeColorRampId1, model.BackgroundIcon.DyeColorRampId2, model.BackgroundIcon.DyeColorRampId3);
     ForegroundIcon = new GuildStandardPart(GuildStandardPartType.Foreground, model.ForegroundIcon.GuildStandardPartId,
                                            model.ForegroundIcon.DyeColorRampId1, model.ForegroundIcon.DyeColorRampId2, model.ForegroundIcon.DyeColorRampId3);
     ScanLines = new GuildStandardPart(GuildStandardPartType.ScanLines, model.ScanLines.GuildStandardPartId,
                                       model.ScanLines.DyeColorRampId1, model.ScanLines.DyeColorRampId2, model.ScanLines.DyeColorRampId3);
 }
예제 #2
0
 /// <summary>
 /// Create a new <see cref="GuildStandard"/> from an existing database model.
 /// </summary>
 public GuildStandard(GuildDataModel model)
 {
     BackgroundIcon = new GuildStandardPart(GuildStandardPartType.Background, model.BackgroundIconPartId, 0, 0, 0);
     ForegroundIcon = new GuildStandardPart(GuildStandardPartType.Foreground, model.ForegroundIconPartId, 0, 0, 0);
     ScanLines      = new GuildStandardPart(GuildStandardPartType.ScanLines, model.ScanLinesPartId, 0, 0, 0);
 }
예제 #3
0
 /// <summary>
 /// Create a new <see cref="GuildStandard"/> from supplied ids.
 /// </summary>
 public GuildStandard(ushort backgroundIconPartId, ushort foregroundIconPartId, ushort scanLinesPartId)
 {
     BackgroundIcon = new GuildStandardPart(GuildStandardPartType.Background, backgroundIconPartId, 0, 0, 0);
     ForegroundIcon = new GuildStandardPart(GuildStandardPartType.Foreground, foregroundIconPartId, 0, 0, 0);
     ScanLines      = new GuildStandardPart(GuildStandardPartType.ScanLines, scanLinesPartId, 0, 0, 0);
 }