From 68799ba3ebf2c693493d9225e123ee1f71fd8b49 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 7 Jun 2020 22:04:47 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EDavaStorage-Helper.cs=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DavaStorage-Helper.cs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/DavaStorage-Helper.cs b/DavaStorage-Helper.cs index 7602fe8..ca46748 100644 --- a/DavaStorage-Helper.cs +++ b/DavaStorage-Helper.cs @@ -1,11 +1,3 @@ -//DATA STORE LOGIC - - -integer getItemCountFromSlot(list _dataStorage, integer _slot) -{ - return (integer)getDataEntryFromDataList(_dataStorage, "inventar.slot." + _slot + ".count"); -} - list getDataListFromDataStorage(string _storage) { return llCSV2List(osGetDataValue(_storage)); @@ -48,10 +40,4 @@ list setDataEntryInDataList(list _dataList, string _key, string _value) } return llListReplaceList(_dataList, [_value], _inListPosition + 1, _inListPosition + 1); -} - -//Example -list _dataStorage = getDataListFromDataStorage("storage.example"); -_dataStorage = setDataEntryInDataList(_dataStorage, "test.entry", "dummy"); -llOwnerSay(getDataEntryFromDataList(_dataStorage, "test.entry")); -saveDataListToDataStorage("storage.example", _dataStorage); \ No newline at end of file +} \ No newline at end of file