generated from karashiiro/DalamudPluginProjectTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathEntitiesHelper.cs
46 lines (39 loc) · 2.13 KB
/
EntitiesHelper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// <copyright file="EntitiesHelper.cs" company="lokinmodar">
// Copyright (c) lokinmodar. All rights reserved.
// Licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License license.
// </copyright>
using System;
using Echoglossian.EFCoreSqlite.Models;
using Echoglossian.EFCoreSqlite.Models.Journal;
using Humanizer;
namespace Echoglossian
{
public partial class Echoglossian
{
public TalkMessage FormatTalkMessage(string sender, string text)
{
return new TalkMessage(sender, text, ClientStateInterface.ClientLanguage.Humanize(), LangIdentify(sender), string.Empty, string.Empty,
this.languagesDictionary[this.configuration.Lang].Code, this.configuration.ChosenTransEngine, DateTime.Now, DateTime.Now);
}
public BattleTalkMessage FormatBattleTalkMessage(string sender, string text)
{
return new BattleTalkMessage(sender, text, ClientStateInterface.ClientLanguage.Humanize(), LangIdentify(sender), string.Empty, string.Empty,
this.languagesDictionary[this.configuration.Lang].Code, this.configuration.ChosenTransEngine, DateTime.Now, DateTime.Now);
}
public ToastMessage FormatToastMessage(string type, string text)
{
return new ToastMessage(type, text, ClientStateInterface.ClientLanguage.Humanize(), string.Empty,
this.languagesDictionary[this.configuration.Lang].Code, this.configuration.ChosenTransEngine, DateTime.Now, DateTime.Now);
}
public QuestPlate FormatQuestPlate(string questName, string questMessage)
{
return new QuestPlate(questName, questMessage, ClientStateInterface.ClientLanguage.Humanize(), string.Empty, string.Empty, string.Empty,
this.languagesDictionary[this.configuration.Lang].Code, this.configuration.ChosenTransEngine, DateTime.Now, DateTime.Now);
}
public TalkSubtitleMessage FormatTalkSubtitleMessage(string text)
{
return new TalkSubtitleMessage(text, ClientStateInterface.ClientLanguage.Humanize(), string.Empty,
this.languagesDictionary[this.configuration.Lang].Code, this.configuration.ChosenTransEngine, DateTime.Now, DateTime.Now);
}
}
}