public Vector3 Read(SqliteDataReader reader, int col)
            {
                Vector3 result = Vector3.zero;
                string  s      = reader.GetString(col);

                DataHelpers.extractRequiredVector3(ref s, ref result);
                return(result);
            }
Exemple #2
0
        override protected bool _extractFromString(ref string str, ref int result)
        {
            string prevStr  = str;
            bool   success  = false;
            int    parseVal = 0;

            if (DataHelpers.extractInt(ref str, ref parseVal, false))
            {
                Debug.Log("Got int " + parseVal + " from " + prevStr + " leaving '" + str + "'");
                result = parseVal;
                //				str = string.Empty;
                success = true;
            }
            else
            {
                Debug.LogError("Couldn't parse int from '" + str + "'");
            }
            return(success);
        }