29 lines
458 B
Text
29 lines
458 B
Text
|
# Stormscope Options
|
||
|
var StormscopeOptions =
|
||
|
{
|
||
|
new : func() {
|
||
|
var obj = { parents : [StormscopeOptions] };
|
||
|
obj.Options= {};
|
||
|
obj.loadOptions();
|
||
|
return obj;
|
||
|
},
|
||
|
|
||
|
getOption : func(type) {
|
||
|
return me.Options[type];
|
||
|
},
|
||
|
|
||
|
setOption : func(type, name, value) {
|
||
|
me.Options[type][name] = value;
|
||
|
},
|
||
|
|
||
|
loadOptions : func() {
|
||
|
me.clearOptions();
|
||
|
me.Options.APS = {};
|
||
|
},
|
||
|
|
||
|
clearOptions : func() {
|
||
|
me.Options = {};
|
||
|
},
|
||
|
|
||
|
};
|