-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
39 lines (27 loc) · 1.22 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// This is an extension file. It can do basically everything! (Add planes, make the multiplayer better, change the skin of the menus, whatever...)
// It is served dynamically and auto-updated by the extension server(s) and will be saved in localStorage.
// Format: (add/remove fields if needed)
(function(ext) {
ext.name = "Cookie Giver";
ext.version = "1.0";
ext.author = "Ron Popov";
// A list of local files (in the same github repo) that the extension requires
ext.localDependencies = [];
// A list of remote extensions that the extension requires
ext.remoteDependencies = [];
// Can we use the github username and repo as an id ?
//ext.id = "[email protected]/myfirstextension"; // You may just set up another id convention
// We know where we need to update from, from the github repo.
//ext.update_from = "https://skyx-extension.com/[email protected]/myfirstextension"; // Just a fake sample url
ext.load = function(geofs, skyx) {
// For loading the extension
alert("Here, have a cookie");
};
ext.loop = function(geofs, skyx) {
// For performing a repetitive task
};
ext.dispose = function(geofs, skyx) {
// For folding the extension
};
return ext;
})({});