Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Pretty easy code, right?
- let _self = this;
- const rs = GetRootScope();
- let _modPath;
- //LOAD LANGUAGES > ONLY 1 LANGUAGE AND 1 STRING
- this.loadLanguage = function (lang) {
- $.getJSON(_modPath + '/locales/' + lang + '.json',
- function (jsonData) {
- $.each(jsonData, function (name, value) {
- GetRootScope().Language[name] = value;
- });
- GetRootScope().settings.nitrosoft_2019.language = lang;
- }
- )
- return;
- };
- FrameworkNames = {
- nitrosoft2019 : "nitrosoft2019"
- }
- exports.initialize = (modPath) => {
- FrameworkNames['nitrosoft2019'] = 'nitrosoft2019';
- Frameworks.push({
- order: 8,
- name: FrameworkNames.nitrosoft2019,
- licenseCost: 10e6,
- researchPoints: 8000,
- pricePerUser: 30e-5,
- cuPerMs: .01,
- logoPath: "images/logos/frameworks/nitrosoft.png",
- maxFeatures: 15,
- maxFeatureLevel: 9e3
- });
- _modPath = modPath;
- };
- this.availableLanguages = [
- {name: 'English', code: 'en'},
- ];
- exports.onBackgroundWorkerStart = () => {
- FrameworkNames['nitrosoft2019'] = 'nitrosoft2019';
- Frameworks.push({
- order: 8,
- name: FrameworkNames.nitrosoft2019,
- licenseCost: 10e6,
- researchPoints: 8000,
- pricePerUser: 30e-5,
- cuPerMs: .01,
- logoPath: "images/logos/frameworks/nitrosoft.png",
- maxFeatures: 15,
- maxFeatureLevel: 9e3
- });
- };
- ResearchItemNames = {
- nitrosoft2019: "nitrosoft2019"
- }
- ResearchItems.push({
- name: FrameworkNames.nitrosoft2019,
- category: ResearchCategories.Frameworks,
- points: 8000,
- unlockType: "Framework"
- })
- exports.onLoadGame = settings => {if
- (settings.nitrosoft_2019 !== undefined) {
- _self.loadLanguage(settings.nitrosoft_2019.language);
- } else {
- settings.nitrosoft_2019 = {language: rs.options.language};
- _self.loadLanguage(rs.options.language);
- }};
- exports.onNewHour = settings => {};
- exports.onNewDay = settings => {};
- exports.onUnsubscribe = done => {};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement