Example #1
0
        public static Type GetTypeFor(PropTreeType type)
        {
            switch (type)
            {
            case PropTreeType.Bool:
                return(typeof(bool));

            case PropTreeType.Dictionary:
            case PropTreeType.List:
                return(typeof(Dictionary <string, FactorioPropertyTree>));

            case PropTreeType.None:
                return(null);

            case PropTreeType.Number:
                return(typeof(double));

            case PropTreeType.String:
                return(typeof(string));
            }

            return(null);
        }
Example #2
0
 private FactorioPropertyTree(PropTreeType type, object content)
 {
     PropertyTreeType = type;
     Content          = content;
 }