This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Mods
turupawn edited this page Feb 6, 2019
·
11 revisions
getAllMods(filter_type:Int, limit:Int, offset:Int, callback:(mods:Array<Dynamic>, response:Dynamic)):Int
Browse mods on mod.io.
SDK documentation: modioGetAllMods
API documentation: Get All Mods
Name | Type | Description |
---|---|---|
filter_type | Int |
Filter type constant. |
limit | Int |
Number of results limit. |
offset | Int |
Number of results skipped. |
callback | (mods:Array<Dynamic>, response:Dynamic) |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
mods | Array<Dynamic> |
Mod object array containing the returned mods. |
response | Dynamic |
Response object |
addMod(mod_creator:ModCreator, callback:(response:Dynamic)):Int
Adds a new Mod to mod.io. Use the ModCreator to set the mods fields before uploading.
SDK documentation: modioAddMod
API documentation: Add Mod
Name | Type | Description |
---|---|---|
mod_creator | ModCreator |
ModCreator object. |
callback | (response:Dynamic) |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
response | Int |
Response object |
editMod(mod_id:Int, mod_editor:ModEditor, callback:(response:Dynamic)):Int
Updates the details of a corresponding mod. Use the ModEditor to set the mods fields before editing.
SDK documentation: modioEditMod
API documentation: Edit Mod
Name | Type | Description |
---|---|---|
mod_editor | ModEditor |
ModEditor object. |
callback | (response:Dynamic) |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
response | Dynamic |
Response object |