| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using System.Text.RegularExpressions; |
| | | |
| | | |
| | | |
| | | public interface IConfigPostProcess
|
| | | {
|
| | | void OnConfigParseCompleted();
|
| | | } |
| | | |
| | | public class ConfigBase
|
| | | {
|
| | | public ConfigBase()
|
| | | {
|
| | | }
|
| | |
|
| | | public ConfigBase(string content)
|
| | | {
|
| | |
|
| | | }
|
| | |
|
| | | public virtual string getKey()
|
| | | {
|
| | | return string.Empty;
|
| | | }
|
| | |
|
| | | public virtual void Parse(string content)
|
| | | {
|
| | |
|
| | | }
|
| | |
|
| | | protected static bool IsNumeric(string value)
|
| | | {
|
| | | return !string.IsNullOrEmpty(value) && Regex.IsMatch(value, @"^[+-]?\d*[.]?\d*$");
|
| | | } |
| | | |
| | | } |