„DavaStorage-Helper.cs“ ändern
parent
d13437a8c3
commit
68799ba3eb
|
@ -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));
|
||||
|
@ -49,9 +41,3 @@ 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);
|
Loading…
Reference in New Issue