Skip to content

Commit 0872cd6

Browse files
author
Jiang Yin
committed
增加配置组件
1 parent e0ce6e0 commit 0872cd6

11 files changed

+972
-2
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
//------------------------------------------------------------
2+
// Game Framework v3.x
3+
// Copyright © 2013-2018 Jiang Yin. All rights reserved.
4+
// Homepage: http://gameframework.cn/
5+
// Feedback: mailto:jiangyin@gameframework.cn
6+
//------------------------------------------------------------
7+
8+
namespace GameFramework.Config
9+
{
10+
internal partial class ConfigManager
11+
{
12+
private struct ConfigData
13+
{
14+
private readonly bool m_BoolValue;
15+
private readonly int m_IntValue;
16+
private readonly float m_FloatValue;
17+
private readonly string m_StringValue;
18+
19+
public ConfigData(bool boolValue, int intValue, float floatValue, string stringValue)
20+
{
21+
m_BoolValue = boolValue;
22+
m_IntValue = intValue;
23+
m_FloatValue = floatValue;
24+
m_StringValue = stringValue;
25+
}
26+
27+
public bool BoolValue
28+
{
29+
get
30+
{
31+
return m_BoolValue;
32+
}
33+
}
34+
35+
public int IntValue
36+
{
37+
get
38+
{
39+
return m_IntValue;
40+
}
41+
}
42+
43+
public float FloatValue
44+
{
45+
get
46+
{
47+
return m_FloatValue;
48+
}
49+
}
50+
51+
public string StringValue
52+
{
53+
get
54+
{
55+
return m_StringValue;
56+
}
57+
}
58+
}
59+
}
60+
}

0 commit comments

Comments
 (0)