예제 #1
0
    public bool                                    bGetVec2(string Key, out Vector2 Out, Vector2 Default)
    {
        cLineValue pLineValue = null; cMultiValue pMultiValue = null;
        cValue     pValue1 = null; cValue pValue2 = null;

        if ((pLineValue = GetLineValue(Key)) != null)
        {
            if ((pMultiValue = pLineValue.GetMultiValue()) != null)
            {
                if (((pValue1 = pMultiValue.At(0)) != null) &&
                    (pValue2 = pMultiValue.At(1)) != null)
                {
                    Out = new Vector2(pValue1.ToFloat(), pValue2.ToFloat());
                    return(true);
                }
            }
        }

        Out = Default;
        return(false);
    }
예제 #2
0
    public cValue                                  GetMultiValue(string Key, int Index, int Type)
    {
        cLineValue pLineValue = null; cMultiValue pMultiValue = null; cValue pValue = null;

        if ((pLineValue = GetLineValue(Key)) != null)
        {
            if ((pMultiValue = pLineValue.GetMultiValue()) != null)
            {
                if ((pValue = pMultiValue.At(Index - 1)) != null)
                {
                    return(pValue);
                }
            }
        }

        return(null);
    }
예제 #3
0
    public bool                                    bGetMultiValue(string Key, out cValue Out, int Index, int Type)
    {
        cLineValue pLineValue = null; cMultiValue pMultiValue = null; cValue pValue = null;

        if ((pLineValue = GetLineValue(Key)) != null)
        {
            if ((pMultiValue = pLineValue.GetMultiValue()) != null)
            {
                if ((pValue = pMultiValue.At(Index - 1)) != null)
                {
                    Out = pValue;
                    return(true);
                }
            }
        }

        Out = null;
        return(false);
    }