示例#1
0
        public ActorDBRow GetRow(string rowString)
        {
            ActorDBRow 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);
        }
示例#2
0
        public ActorDBRow GetRow(rowIds rowID)
        {
            ActorDBRow ret = null;

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