Skip to content

Commit 7c5489b

Browse files
Fix parameter name
1 parent 8f5df84 commit 7c5489b

File tree

4 files changed

+14
-90
lines changed

4 files changed

+14
-90
lines changed

bridge/api/bridge.script_api

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
type: function
107107
desc: Check if the specified storage type is currently available for use to manage data storage effectively.
108108
parameters:
109-
- name: storageType
109+
- name: storage_type
110110
type: string
111111
returns:
112112
- name: result
@@ -116,7 +116,7 @@
116116
type: function
117117
desc: Verify if the specified storage type is supported on the platform to ensure compatibility.
118118
parameters:
119-
- name: storageType
119+
- name: storage_type
120120
type: string
121121
returns:
122122
- name: result
@@ -134,7 +134,7 @@
134134
- name: on_failure
135135
type: function
136136
desc: function(_, error)
137-
- name: storageType
137+
- name: storage_type
138138
type: string
139139
- name: set
140140
type: function
@@ -148,7 +148,7 @@
148148
- name: on_failure
149149
type: function
150150
desc: function(_, error)
151-
- name: storageType
151+
- name: storage_type
152152
type: string
153153
- name: delete
154154
type: function
@@ -162,7 +162,7 @@
162162
- name: on_failure
163163
type: function
164164
desc: function(_, error)
165-
- name: storageType
165+
- name: storage_type
166166
type: string
167167

168168

bridge/bridge_storage.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ function storage.default_type()
99
return "local_storage"
1010
end
1111

12-
function storage.is_supported(storageType)
13-
if storageType == "local_storage" then
12+
function storage.is_supported(storage_type)
13+
if storage_type == "local_storage" then
1414
return true
15-
elseif storageType == "platform_internal" then
15+
elseif storage_type == "platform_internal" then
1616
return false
1717
end
1818
end
1919

20-
function storage.is_available(storageType)
21-
if storageType == "local_storage" then
20+
function storage.is_available(storage_type)
21+
if storage_type == "local_storage" then
2222
return true
23-
elseif storageType == "platform_internal" then
23+
elseif storage_type == "platform_internal" then
2424
return false
2525
end
2626
end
2727

28-
function storage.get(table_keys, on_success, on_failure, storageType)
28+
function storage.get(table_keys, on_success, on_failure, storage_type)
2929
load_data = sys.load(path_to_save_file)
3030

3131
local game_data = {}
@@ -41,7 +41,7 @@ function storage.get(table_keys, on_success, on_failure, storageType)
4141

4242
end
4343

44-
function storage.set(table_data, on_success, on_failure, storageType)
44+
function storage.set(table_data, on_success, on_failure, storage_type)
4545
for k, v in pairs(table_data) do
4646
if not load_data[k] then
4747
load_data[k] = v
@@ -54,7 +54,7 @@ function storage.set(table_data, on_success, on_failure, storageType)
5454
end
5555
end
5656

57-
function storage.delete(table_keys, on_success, on_failure, storageType)
57+
function storage.delete(table_keys, on_success, on_failure, storage_type)
5858
for k, v in pairs(table_keys) do
5959
if load_data[v] then
6060
load_data[v] = nil

main/main.script

Lines changed: 0 additions & 74 deletions
This file was deleted.

main/test.gui

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)