public TextEntry(string text, CreatureTextType type, uint language, uint emote, uint sound) { Text = text; Type = type; Language = language; Emote = emote; Sound = sound; Probability = 100; Range = CreatureTextRange.Normal; IsInSniffText = true; IsInDatabaseText = false; }
public TextEntry(ICreatureText text) { IsInSniffText = false; IsInDatabaseText = true; Text = text.Text ?? ""; Type = text.Type; Language = text.Language; Emote = text.Emote; Sound = text.Sound; GroupId = text.GroupId; Probability = text.Probability; Duration = text.Duration; Range = text.TextRange; Id = text.Id; BroadcastTextId = text.BroadcastTextId; Comment = text.Comment; }