Beispiel #1
0
        // -------------------------------------------------------------------------------
        // Save
        // -------------------------------------------------------------------------------
        public override BaseDataTable Save()
        {
            BaseDataTable data = new BaseDataTable();

            for (int i = 0; i < syncInventory.Count; ++i)
            {
                data.AddString(DatabaseManager.fieldName, parent.name, i);
                data.AddString(DatabaseManager.fieldId, syncInventory[i].name, i);
                data.AddInt(DatabaseManager.fieldId, syncInventory[i].nSlot, i);
                data.AddInt(DatabaseManager.fieldId, syncInventory[i].nAmount, i);
                data.AddInt(DatabaseManager.fieldId, syncInventory[i].nAmmo, i);
                data.AddInt(DatabaseManager.fieldId, syncInventory[i].nCharges, i);
                data.AddInt(DatabaseManager.fieldLevel, syncInventory[i].nLevel, i);
            }

            return(data);
        }
Beispiel #2
0
        // -------------------------------------------------------------------------------
        // Save
        // -------------------------------------------------------------------------------
        public BaseDataTable Save()
        {
            BaseDataTable data = new BaseDataTable();

            data.AddString(DatabaseManager.fieldName, sName);
            data.AddString(DatabaseManager.fieldPassword, sPassword);
            data.AddString(DatabaseManager.fieldEmail, sMail);
            data.AddInt(DatabaseManager.fieldAction, _nAction);
            data.AddString(DatabaseManager.fieldDeviceId, sDeviceId);
            data.AddBool(DatabaseManager.fieldBanned, bBanned);
            data.AddBool(DatabaseManager.fieldDeleted, bDeleted);
            data.AddBool(DatabaseManager.fieldConfirmed, bConfirmed);
            data.AddBool(DatabaseManager.fieldDone, bDone);
            data.AddInt(DatabaseManager.fieldCode, nCode);

            return(data);
        }
Beispiel #3
0
        // -------------------------------------------------------------------------------
        // Save
        // -------------------------------------------------------------------------------
        public override BaseDataTable Save()
        {
            BaseDataTable data = new BaseDataTable();

            for (int i = 0; i < syncAttributes.Count; ++i)
            {
                data.AddString(DatabaseManager.fieldName, parent.name, i);
                data.AddString(DatabaseManager.fieldId, syncAttributes[i].name, i);
                data.AddInt(DatabaseManager.fieldValue, syncAttributes[i].nValue, i);
            }

            return(data);
        }
Beispiel #4
0
        // -------------------------------------------------------------------------------
        // Save
        // -------------------------------------------------------------------------------
        public override BaseDataTable Save()
        {
            BaseDataTable data = new BaseDataTable();

            for (int i = 0; i < syncStatus.Count; ++i)
            {
                data.AddString(DatabaseManager.fieldName, parent.name, i);
                data.AddString(DatabaseManager.fieldId, syncStatus[i].name, i);
                data.AddInt(DatabaseManager.fieldLevel, syncStatus[i].nLevel, i);
                data.AddDouble(DatabaseManager.fieldDuration, syncStatus[i].dTimer, i);
            }

            return(data);
        }