-
Notifications
You must be signed in to change notification settings - Fork 7
/
Config.cs
43 lines (34 loc) · 1014 Bytes
/
Config.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IdeaVideoAI
{
public class Config
{
private static readonly Lazy<Config> lazy =
new Lazy<Config>(() => new Config());
public static Config Instance { get { return lazy.Value; } }
private Config() {
// 加图
tab3BgVideoFiles = new List<string>();
tab3ExecCount = 1;
}
/// <summary>
/// 加图
/// </summary>
public int tab3ExecCount;
public int tab3MinStartTime;
public int tab3MaxStartTime;
public string tab3FontPictureFile;
public int tab3OutTime;
public bool tab3PictureSharpen;
//背景视频
public List<String> tab3BgVideoFiles;
public string getRandomByTab3BackgroundVideo()
{
return tab3BgVideoFiles[new Random().Next(tab3BgVideoFiles.Count())];
}
}
}