Example #1
0
        public ActionDBRow GetRow(string rowString)
        {
            ActionDBRow ret = null;

            try
            {
                ret = Rows[(int)System.Enum.Parse(typeof(rowIds), rowString)];
            }
            catch (System.ArgumentException) {
                Debug.LogError(rowString + " is not a member of the rowIds enumeration.");
            }
            return(ret);
        }
Example #2
0
        public ActionDBRow GetRow(rowIds rowID)
        {
            ActionDBRow ret = null;

            try
            {
                ret = Rows[(int)rowID];
            }
            catch (System.Collections.Generic.KeyNotFoundException ex)
            {
                Debug.LogError(rowID + " not found: " + ex.Message);
            }
            return(ret);
        }