123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- //------------------------------------------------------------
- // Game Framework
- // Copyright © 2013-2021 loyalsoft. All rights reserved.
- // Homepage: http://www.game7000.com/
- // Feedback: http://www.game7000.com/
- //------------------------------------------------------------
- using System.Runtime.InteropServices;
- namespace GameFramework.Config
- {
- internal sealed partial class ConfigManager : GameFrameworkModule, IConfigManager
- {
- [StructLayout(LayoutKind.Auto)]
- private struct ConfigData
- {
- private readonly bool m_BoolValue;
- private readonly int m_IntValue;
- private readonly float m_FloatValue;
- private readonly string m_StringValue;
- public ConfigData(bool boolValue, int intValue, float floatValue, string stringValue)
- {
- m_BoolValue = boolValue;
- m_IntValue = intValue;
- m_FloatValue = floatValue;
- m_StringValue = stringValue;
- }
- public bool BoolValue
- {
- get
- {
- return m_BoolValue;
- }
- }
- public int IntValue
- {
- get
- {
- return m_IntValue;
- }
- }
- public float FloatValue
- {
- get
- {
- return m_FloatValue;
- }
- }
- public string StringValue
- {
- get
- {
- return m_StringValue;
- }
- }
- }
- }
- }
|