Exemple #1
0
    public void insert(WeaponFrameData data)
    {
        string valueString = "";

        appendValueInt(ref valueString, data.mID);
        appendValueString(ref valueString, data.mLabel);
        appendValueInt(ref valueString, data.mDirection);
        appendValueString(ref valueString, data.mAction);
        appendValueInt(ref valueString, data.mFrameCount);
        appendValueIntArray(ref valueString, data.mPosX);
        appendValueIntArray(ref valueString, data.mPosY, true);
        doInsert(valueString);
    }
Exemple #2
0
    public void updateData(WeaponFrameData data)
    {
        string updateString = "";

        appendUpdateInt(ref updateString, WeaponFrameData.COL_FRAME_COUNT, data.mFrameCount);
        appendUpdateIntArray(ref updateString, WeaponFrameData.COL_POSX, data.mPosX);
        appendUpdateIntArray(ref updateString, WeaponFrameData.COL_POSY, data.mPosY, true);
        string condition = "";

        appendConditionInt(ref condition, WeaponFrameData.COL_ID, data.mID, " and ");
        appendConditionInt(ref condition, WeaponFrameData.COL_DIRECTION, data.mDirection, " and ");
        appendConditionString(ref condition, WeaponFrameData.COL_ACTION, data.mAction, "");
        doUpdate(updateString, condition);
    }