diff --git a/0000 b/0000 index 4576a06..ed3c255 100644 --- a/0000 +++ b/0000 @@ -2,5 +2,6 @@ 1.0.0 https://git.opengamestudio.org/mahjong/mahjong +/модули|modules x /пуск|run.js /пуск|run.череда \ No newline at end of file diff --git a/модули|modules b/модули|modules new file mode 100644 index 0000000..06b8bda --- /dev/null +++ b/модули|modules @@ -0,0 +1,5 @@ +https://bitbucket.org/gitjs/jquery/raw/3.5.1/0000 +https://bitbucket.org/gitjs/uikit/raw/3.2.0/0000 +#https://git.opengamestudio.org/mahjong/threejs/raw/tag/r119/0000 +https://git.opengamestudio.org/mahjong/threejs/raw/branch/master/0000 +https://git.opengamestudio.org/mahjong/mahjong-osnova-base/raw/branch/master/0000 \ No newline at end of file diff --git a/пуск|run.js b/пуск|run.js index 6cd9e75..a2ee48b 100644 --- a/пуск|run.js +++ b/пуск|run.js @@ -1,11 +1,5 @@ -const УКАЗАТЕЛИ_НА_БИБЛИОТЕКИ_МАДЖОНГА = [ - "https://bitbucket.org/gitjs/jquery/raw/3.5.1/0000", - "https://bitbucket.org/gitjs/uikit/raw/3.2.0/0000", - //"https://git.opengamestudio.org/mahjong/threejs/raw/tag/r119/0000", - "https://git.opengamestudio.org/mahjong/threejs/raw/branch/master/0000", - "https://git.opengamestudio.org/mahjong/mahjong-osnova-base/raw/branch/master/0000", -]; +const ИМЯ = "Маджонг | Mahjong"; // // // // @@ -13,7 +7,19 @@ const УКАЗАТЕЛИ_НА_БИБЛИОТЕКИ_МАДЖОНГА = [ ЗагрузитьБиблиотекиМаджонга = мир => { - var указатели = УКАЗАТЕЛИ_НА_БИБЛИОТЕКИ_МАДЖОНГА; + var указатели = []; + var модуль = мир.модули.модульПоИмени(ИМЯ); + var содержимое = модуль.содержимое["/модули|modules"]; + var строки = содержимое.split(/\n/); + for (var номер in строки) + { + var строка = строки[номер]; + if (!строка.startsWith("#")) + { + указатели.push(строка); + } + } + var сообщение = "Загрузка библиотек Маджонга | Loading Mahjong libraries"; console.debug(сообщение, указатели);