„DavaStorage-Helper.cs“ ändern

master
Chris 2020-06-07 22:04:47 +00:00
parent d13437a8c3
commit 68799ba3eb
1 changed files with 1 additions and 15 deletions

View File

@ -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);
}