コード例 #1
0
        public override bool Equals(CellValue v_other)
        {
            DoubleVal obj = v_other as DoubleVal;

            return(obj != null && obj._data == _data);
        }
コード例 #2
0
        public override bool Equals(CellValue v_other)
        {
            LongVal longVal = v_other as LongVal;

            return(longVal != null && longVal._data == _data);
        }
コード例 #3
0
        public override bool Equals(CellValue v_other)
        {
            ProbVal obj = v_other as ProbVal;

            return(obj != null && obj._data10k == _data10k);
        }
コード例 #4
0
 public abstract bool Equals(CellValue v_other);
コード例 #5
0
 public override bool Equals(CellValue v_other)
 {
     return(v_other is MissVal);
 }
コード例 #6
0
        public static CellValue CheckCellVal(string v_type)
        {
            CellValue rtn = null;

            v_type = v_type.Trim();
            switch (v_type)
            {
            case "int":
            case "integer":
                rtn = new IntVal();
                break;

            case "string":
                rtn = new StringVal();
                break;

            case "cstring":
                rtn = new CStringVal();
                break;

            case "long":
                rtn = new LongVal();
                break;

            case "res":
                rtn = new ResVal();
                break;

            case "number":
                rtn = new NumberVal();
                break;

            case "prob":
                rtn = new ProbVal();
                break;

            case "float":
                rtn = new FloatVal();
                break;

            case "double":
                rtn = new DoubleVal();
                break;

            case "percent":
                rtn = new PercentVal();
                break;

            case "bool":
                rtn = new BoolVal();
                break;

            case "table":
                rtn = new TableValue();
                break;

            case "dataFromLuaFile":
                rtn = new DataFromLuaFileValue();
                break;

            case "intX":
                rtn = new HexInt();
                break;

            default:
                rtn = new IDVal(v_type);
                break;
            }
            return(rtn);
        }
コード例 #7
0
 public override bool Equals(CellValue v_other)
 {
     return(_source == ((TableValue)v_other)._source);
 }
コード例 #8
0
 public override bool Equals(CellValue v_other)
 {
     return(_key == ((DataFromLuaFileValue)v_other)._key);
 }
コード例 #9
0
 public void initAsLeafeData(CellValue v_cellValue)
 {
     m_iData = null;
     m_sData = null;
     m_data  = v_cellValue;
 }
コード例 #10
0
 public void initAsTableData()
 {
     m_iData = new Dictionary <int, ExcelMapData>();
     m_sData = new Dictionary <string, ExcelMapData>();
     m_data  = null;
 }