예제 #1
0
    public bool Load()
    {
        ds = new DataService(m_NameDB);

        IEnumerable <JellyDB> DBs = ds.GetJellyDB();

        if (DBs != null)
        {
            foreach (JellyDB DB in DBs)
            {
                ItemList = DB;
            }
        }
        return(true);
    }
예제 #2
0
    public void UpdateItemTable_DeviceID(string _ID)
    {
        IEnumerable <JellyDB> DBs = ds.GetJellyDB();

        if (DBs != null)
        {
            foreach (JellyDB DB in DBs)
            {
                DB.deviceID = _ID;

                ItemList = DB;
            }
            ds._connection.UpdateAll(DBs);
        }
    }
예제 #3
0
    public void UpdateItemTableInitSkinEffectList()
    {
        IEnumerable <JellyDB> DBs = ds.GetJellyDB();

        if (DBs != null)
        {
            foreach (JellyDB DB in DBs)
            {
                DB.openSkinList   = 524288;
                DB.openEffectList = 524288;
                ItemList          = DB;
            }
            ds._connection.UpdateAll(DBs);
        }
    }
예제 #4
0
    public void UpdateItemTable(int _score)
    {
        IEnumerable <JellyDB> DBs = ds.GetJellyDB();

        if (DBs != null)
        {
            foreach (JellyDB DB in DBs)
            {
                DB.bestScore = _score;

                ItemList = DB;
            }
            ds._connection.UpdateAll(DBs);
        }
    }
예제 #5
0
    public void UpdateItemTable(string _dateTime)
    {
        IEnumerable <JellyDB> DBs = ds.GetJellyDB();

        if (DBs != null)
        {
            foreach (JellyDB DB in DBs)
            {
                DB.dateTime = _dateTime;

                ItemList = DB;
            }
            ds._connection.UpdateAll(DBs);
        }
    }
예제 #6
0
    public void UpdateItemTable(string _soundVolume, int _vibration)
    {
        IEnumerable <JellyDB> DBs = ds.GetJellyDB();

        if (DBs != null)
        {
            foreach (JellyDB DB in DBs)
            {
                DB.soundVolume = _soundVolume;
                DB.vibration   = _vibration;

                ItemList = DB;
            }
            ds._connection.UpdateAll(DBs);
        }
    }
예제 #7
0
    public void UpdateItemTable(int _gold, int _bestScore, int _openSkinList, int _currSkin, int _upPowerLevel, int _forwardPowerLevel, int _offlineGoldLevel, int _openEffectList, int _currEffect)
    {
        IEnumerable <JellyDB> DBs = ds.GetJellyDB();

        if (DBs != null)
        {
            foreach (JellyDB DB in DBs)
            {
                DB.gold              = _gold;
                DB.bestScore         = _bestScore;
                DB.openSkinList      = _openSkinList;
                DB.currSkin          = _currSkin;
                DB.upPowerLevel      = _upPowerLevel;
                DB.forwardPowerLevel = _forwardPowerLevel;
                DB.offlineGoldLevel  = _offlineGoldLevel;
                DB.openEffectList    = _openEffectList;
                DB.currEffect        = _currEffect;

                ItemList = DB;
            }
            ds._connection.UpdateAll(DBs);
        }
    }