36 | Download with haxelib install polymod
37 |
38 |
--------------------------------------------------------------------------------
/docs/_scss/custom.scss:
--------------------------------------------------------------------------------
1 | @import "./download_buttons.scss";
2 | @import "./header.scss";
3 | @import "./toc.scss";
4 |
5 | #main_content {
6 | padding-top: 0px;
7 | }
8 |
9 | ul {
10 | margin-bottom: 0;
11 | }
--------------------------------------------------------------------------------
/docs/_scss/toc.scss:
--------------------------------------------------------------------------------
1 | #toc.sidebar {
2 | position:absolute;
3 | left: -300px;
4 | top: 0;
5 | }
--------------------------------------------------------------------------------
/docs/android-chrome-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/android-chrome-192x192.png
--------------------------------------------------------------------------------
/docs/android-chrome-512x512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/android-chrome-512x512.png
--------------------------------------------------------------------------------
/docs/apple-touch-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/apple-touch-icon.png
--------------------------------------------------------------------------------
/docs/assets/css/style.scss:
--------------------------------------------------------------------------------
1 | ---
2 | ---
3 |
4 | @import "{{ site.theme }}";
5 | @import "custom";
--------------------------------------------------------------------------------
/docs/assets/images/icon_download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/assets/images/icon_download.png
--------------------------------------------------------------------------------
/docs/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/assets/images/logo.png
--------------------------------------------------------------------------------
/docs/assets/images/showcase/defendersQuest.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/assets/images/showcase/defendersQuest.png
--------------------------------------------------------------------------------
/docs/assets/images/showcase/defendersQuest2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/assets/images/showcase/defendersQuest2.png
--------------------------------------------------------------------------------
/docs/assets/images/showcase/diceyDungeons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/assets/images/showcase/diceyDungeons.png
--------------------------------------------------------------------------------
/docs/assets/images/showcase/fridayNightFunkin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/assets/images/showcase/fridayNightFunkin.png
--------------------------------------------------------------------------------
/docs/assets/images/sprite_download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/assets/images/sprite_download.png
--------------------------------------------------------------------------------
/docs/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | JEKYLL_ENV=production bundle exec jekyll build
--------------------------------------------------------------------------------
/docs/changelog.markdown:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | ---
4 |
5 | {% include global.markdown %}
6 |
7 | ## Changelog: {{release.name}}
8 |
9 | {{ release.body }}
10 |
--------------------------------------------------------------------------------
/docs/docs/index.markdown:
--------------------------------------------------------------------------------
1 | ---
2 | title: Documentation
3 | permalink: /docs/
4 | ---
5 | {% include toc.html sidebar=false %}
6 |
--------------------------------------------------------------------------------
/docs/docs/troubleshooting.markdown:
--------------------------------------------------------------------------------
1 | ---
2 | title: Troubleshooting
3 | ---
4 | {% include toc.html %}
5 |
6 | # Troubleshooting
7 |
8 | This section is intended to provide assistance with common problems encountered when using Polymod.
9 |
10 | ## My script is failing, saying that a common/Std method is not defined. Why is this?
11 |
12 | HScript relies heavily on Reflection to access and call functions. If Dead Code Elimination is enabled (DCE), the compiler has no way of knowing that the function will actually be needed by the user's script. As a result, the compiler will assume that the function is never called, and will remove it from the compiled code.
13 |
14 | In order to ensure all required functions are available, you can disable DCE by setting the `--dce` flag to `no`.
15 |
16 | You can learn more about DCE in the [Haxe documentation](https://haxe.org/manual/cr-dce.html).
17 |
--------------------------------------------------------------------------------
/docs/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/favicon-16x16.png
--------------------------------------------------------------------------------
/docs/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/favicon-32x32.png
--------------------------------------------------------------------------------
/docs/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/docs/favicon.ico
--------------------------------------------------------------------------------
/docs/serve.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # rvm use 2.7
4 | bundle exec jekyll serve
--------------------------------------------------------------------------------
/docs/site.webmanifest:
--------------------------------------------------------------------------------
1 | {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
--------------------------------------------------------------------------------
/docs/test.markdown:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | ---
4 |
5 | ## Welcome to another page
6 |
7 | [back](../)
8 |
9 | {% include global.markdown %}
10 |
11 |
12 | {{ site.github }}
13 |
14 |
--------------------------------------------------------------------------------
/haxelib.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "polymod",
3 | "url" : "https://github.com/larsiusprime/polymod",
4 | "license": "MIT",
5 | "tags": ["mod","game","data","asset"],
6 | "description": "An atomic modding framework for Haxe games",
7 | "version": "1.8.0",
8 | "releasenote": "Dependencies, ZIP mods, blacklisting, and other improvements.",
9 | "contributors": ["MasterEric", "larsiusprime"],
10 | "dependencies": {
11 | "thx.semver": "",
12 | "jsonpath": "",
13 | "jsonpatch": ""
14 | }
15 | }
--------------------------------------------------------------------------------
/hxformat.json:
--------------------------------------------------------------------------------
1 | {
2 | "lineEnds": {
3 | "leftCurly": "both",
4 | "rightCurly": "both",
5 | "emptyCurly": "break",
6 | "objectLiteralCurly": {
7 | "leftCurly": "after"
8 | }
9 | },
10 | "sameLine": {
11 | "ifElse": "next",
12 | "doWhile": "next",
13 | "tryBody": "next",
14 | "tryCatch": "next"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/include.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/logo.png
--------------------------------------------------------------------------------
/polymod/backends/CastleBackend.hx:
--------------------------------------------------------------------------------
1 | package polymod.backends;
2 |
3 | class CastleBackend extends StubBackend
4 | {
5 | public function new()
6 | {
7 | super();
8 | Polymod.error(FUNCTIONALITY_NOT_IMPLEMENTED, 'CastleDB support in Polymod has not been implemented yet');
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/polymod/backends/CeramicBackend.hx:
--------------------------------------------------------------------------------
1 | package polymod.backends;
2 |
3 | #if !ceramic
4 | class CeramicBackend extends StubBackend
5 | {
6 | public function new()
7 | {
8 | super();
9 | Polymod.error(FUNCTIONALITY_NOT_IMPLEMENTED, 'CeramicBackend requires the ceramic library, did you forget to install it?');
10 | }
11 | }
12 | #else
13 | class CeramicBackend extends StubBackend
14 | {
15 | public function new()
16 | {
17 | super();
18 | Polymod.error(FUNCTIONALITY_NOT_IMPLEMENTED, 'CeramicBackend support in Polymod has not been implemented yet');
19 | }
20 | }
21 | #end
22 |
--------------------------------------------------------------------------------
/polymod/backends/IBackend.hx:
--------------------------------------------------------------------------------
1 | package polymod.backends;
2 |
3 | import haxe.io.Bytes;
4 | import polymod.Polymod.FrameworkParams;
5 | import polymod.backends.PolymodAssets.PolymodAssetType;
6 | import polymod.backends.PolymodAssetLibrary;
7 |
8 | interface IBackend
9 | {
10 | public var polymodLibrary:PolymodAssetLibrary;
11 |
12 | public function init(?params:FrameworkParams):Bool;
13 | public function destroy():Void;
14 |
15 | public function clearCache():Void;
16 |
17 | public function exists(id:String):Bool;
18 | public function getBytes(id:String):Bytes;
19 | public function getText(id:String):String;
20 | #if lime
21 | public function loadBytes(id:String):lime.app.Future;
22 | public function loadText(id:String):lime.app.Future;
23 | #end
24 |
25 | public function getPath(id:String):String;
26 | public function list(type:PolymodAssetType = null):Array;
27 | }
28 |
--------------------------------------------------------------------------------
/polymod/backends/KhaBackend.hx:
--------------------------------------------------------------------------------
1 | package polymod.backends;
2 |
3 | #if !kha
4 | class KhaBackend extends StubBackend
5 | {
6 | public function new()
7 | {
8 | super();
9 | Polymod.error(FUNCTIONALITY_NOT_IMPLEMENTED, 'KhaBackend requires the kha library, did you forget to install it?');
10 | }
11 | }
12 | #else
13 | class KhaBackend extends StubBackend
14 | {
15 | public function new()
16 | {
17 | super();
18 | Polymod.error(FUNCTIONALITY_NOT_IMPLEMENTED, 'Kha support in Polymod has not been implemented yet');
19 | }
20 | }
21 | #end
22 |
--------------------------------------------------------------------------------
/polymod/format/BaseParseFormat.hx:
--------------------------------------------------------------------------------
1 | package polymod.format;
2 |
3 | import polymod.format.ParseRules.TextFileFormat;
4 |
5 | interface BaseParseFormat
6 | {
7 | public var format(default, null):TextFileFormat;
8 | public function append(baseText:String, mergeText:String, id:String):String; // { return baseText; }
9 | public function merge(baseText:String, mergeText:String, id:String):String; // { return baseText; }
10 | }
11 |
--------------------------------------------------------------------------------
/polymod/fs/ZipFileSystem.hx:
--------------------------------------------------------------------------------
1 | package polymod.fs;
2 |
3 | /**
4 | * Same as PolymodFileSystemParams but with additional parameters specific to the ZipFileSystem.
5 | */
6 | typedef ZipFileSystemParams =
7 | {
8 | // Import properties from PolymodFileSystemParams.
9 | > polymod.fs.PolymodFileSystem.PolymodFileSystemParams,
10 |
11 | /**
12 | * If `true`, the mods folder will be scanned for zip files and they will be added to the zip file system automatically.
13 | * If `false`, call `fileSystem.addZipFile` or `fileSystem.addAllZips` manually.
14 | * @default `true`
15 | */
16 | ?autoScan:Bool,
17 | };
18 |
19 | // Automatically chooses between MemoryZipFileSystem and SysZipFileSystem
20 | #if sys
21 | typedef ZipFileSystem = SysZipFileSystem;
22 | #else
23 | typedef ZipFileSystem = MemoryZipFileSystem;
24 | #end
25 |
--------------------------------------------------------------------------------
/polymod/hscript/_internal/PolymodClassDeclEx.hx:
--------------------------------------------------------------------------------
1 | package polymod.hscript._internal;
2 |
3 | import hscript.Expr.ClassDecl;
4 |
5 | typedef PolymodClassDeclEx =
6 | {
7 | > ClassDecl,
8 | /**
9 | * Save performance and improve sandboxing by resolving imports at interpretation time.
10 | */
11 | //@:optional var imports:Map>;
12 | @:optional var imports:Map;
13 | @:optional var pkg:Array;
14 | }
15 |
16 | typedef PolymodClassImport = {
17 | @:optional var name:String;
18 | @:optional var pkg:Array;
19 | @:optional var fullPath:String; // pkg.pkg.pkg.name
20 | @:optional var cls:Class;
21 | @:optional var enm:Enum;
22 | }
23 |
--------------------------------------------------------------------------------
/polymod/hscript/_internal/PolymodParserEx.hx:
--------------------------------------------------------------------------------
1 | package polymod.hscript._internal;
2 |
3 | #if hscript
4 | import hscript.Parser;
5 |
6 | class PolymodParserEx extends Parser
7 | {
8 | #if (hscript > "2.5.0")
9 | public override function parseModule(content:String, ?origin:String = "hscript", ?position = 0)
10 | #else
11 | public override function parseModule(content:String, ?origin:String = "hscript")
12 | #end
13 | {
14 | #if (hscript > "2.5.0")
15 | return super.parseModule(content, origin, position);
16 | #else
17 | return super.parseModule(content, origin);
18 | #end
19 | }
20 | }
21 | #end
22 |
--------------------------------------------------------------------------------
/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/preview.gif
--------------------------------------------------------------------------------
/preview2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/preview2.gif
--------------------------------------------------------------------------------
/samples/README.md:
--------------------------------------------------------------------------------
1 | # samples
2 |
3 | A variety of sample projects which utilize Polymod
4 |
5 | ## Tips
6 | - To tell HaxeLib to utilize a local folder for the polymod library during development, use `haxelib dev polymod /path/to/polymod/`. To switch back to normal, run `haxelib dev polymod`.
7 |
8 | ## heaps
9 |
10 | This sample demonstrates the use of Polymod with the HEAPS framework.
11 |
12 | ## nme
13 |
14 | This sample demonstrates the use of Polymod with the NME framework.
15 |
16 | ## openfl
17 |
18 | This sample demonstrates the use of Polymod with the OpenFL framework.
19 |
20 | ## openfl_with_electron
21 |
22 | This sample demonstrates the use of Polymod with the OpenFL framework and Electron. Please see `samples/openfl_with_electron/README.md` for more information.
23 |
24 | ## openfl_hscript
25 |
26 | This sample demonstrates the use of Polymod with the OpenFL framework. It additionally demonstrates scripted functions which mods can override to programically add functionality.
27 |
--------------------------------------------------------------------------------
/samples/flixel/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "openfl.lime-vscode-extension",
4 | "redhat.vscode-xml"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/samples/flixel/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "Build + Debug",
6 | "type": "lime",
7 | "request": "launch"
8 | },
9 | {
10 | "name": "Debug",
11 | "type": "lime",
12 | "request": "launch",
13 | "preLaunchTask": null
14 | },
15 | {
16 | // Evaluate macros with debugging enabled
17 | "name": "Haxe Eval",
18 | "type": "haxe-eval",
19 | "request": "launch"
20 | },
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/samples/flixel/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "search.exclude": {
3 | "export/**/*.hx": true
4 | },
5 | "[haxe]": {
6 | "editor.formatOnSave": true,
7 | "editor.formatOnPaste": true,
8 | "editor.codeActionsOnSave": {
9 | "source.sortImports": true
10 | }
11 | },
12 | "haxe.enableExtendedIndentation": true
13 | }
--------------------------------------------------------------------------------
/samples/flixel/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0.0",
3 | "tasks": [
4 | {
5 | "type": "lime",
6 | "command": "test",
7 | "group": {
8 | "kind": "build",
9 | "isDefault": true
10 | }
11 | }
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/samples/flixel/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Lars Doucet and Eric Myllyoja
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/samples/flixel/README.md:
--------------------------------------------------------------------------------
1 | # samples/flixel
2 |
3 | This sample demonstrates the use of Polymod with the Flixel framework.
4 | It includes several sprites and text files, and demonstrates file loading using the SysFileSystem, which loads files from folders on the local file system. It does not support ZIP files, use a different file system for that.
5 |
6 | ## Build Instructions
7 |
8 | 1. Install Haxe.
9 | 2. `haxelib install hmm` to download the dependency manager.
10 | 3. `haxelib run hmm install` to download dependencies.
11 | 4. `lime build windows -debug` to build the sample for Windows.
12 |
--------------------------------------------------------------------------------
/samples/flixel/assets/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello, world!
--------------------------------------------------------------------------------
/samples/flixel/assets/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"moon"},
3 | "object_1":{"value":"star"},
4 | "object_2":{"value":"sun"},
5 | "nested":{"object":{"array":["a","b","c"]}}
6 | }
7 |
--------------------------------------------------------------------------------
/samples/flixel/assets/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/flixel/assets/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/assets/img/a.png
--------------------------------------------------------------------------------
/samples/flixel/assets/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/assets/img/b.png
--------------------------------------------------------------------------------
/samples/flixel/assets/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/assets/img/c.png
--------------------------------------------------------------------------------
/samples/flixel/hmm.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": [
3 | {
4 | "name": "flixel",
5 | "type": "haxelib",
6 | "version": null
7 | },
8 | {
9 | "name": "flixel-addons",
10 | "type": "haxelib",
11 | "version": null
12 | },
13 | {
14 | "name": "flixel-ui",
15 | "type": "haxelib",
16 | "version": null
17 | },
18 | {
19 | "name": "hxcpp",
20 | "type": "haxelib",
21 | "version": null
22 | },
23 | {
24 | "name": "lime",
25 | "type": "haxelib",
26 | "version": null
27 | },
28 | {
29 | "name": "openfl",
30 | "type": "haxelib",
31 | "version": null
32 | },
33 | {
34 | "name": "polymod",
35 | "path": "../..",
36 | "type": "dev"
37 | },
38 | {
39 | "name": "thx.semver",
40 | "type": "haxelib",
41 | "version": null
42 | }
43 | ]
44 | }
--------------------------------------------------------------------------------
/samples/flixel/hxformat.json:
--------------------------------------------------------------------------------
1 | {
2 | "lineEnds": {
3 | "leftCurly": "both",
4 | "rightCurly": "both",
5 | "objectLiteralCurly": {
6 | "leftCurly": "after"
7 | }
8 | },
9 | "sameLine": {
10 | "ifElse": "next",
11 | "doWhile": "next",
12 | "tryBody": "next",
13 | "tryCatch": "next"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod1/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/flixel/mods/mod1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod1/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod1
--------------------------------------------------------------------------------
/samples/flixel/mods/mod1/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod1/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod1/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod1/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Daisy",
3 | "description":"This mod has a daisy",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/flixel/mods/mod1/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod1/img/a.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod2/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/flixel/mods/mod2/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod2/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod2
--------------------------------------------------------------------------------
/samples/flixel/mods/mod2/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod2/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod2/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod2/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Sunflower",
3 | "description":"This mod has a sunflower",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/flixel/mods/mod2/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod2/img/b.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod3/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/flixel/mods/mod3/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod3/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod3
--------------------------------------------------------------------------------
/samples/flixel/mods/mod3/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | [
2 | { "op": "replace", "path": "$..value", "value": "chocolate"}
3 | ]
--------------------------------------------------------------------------------
/samples/flixel/mods/mod3/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod3/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod3/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod3/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Hibiscus",
3 | "description":"This mod has a hibiscus",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/flixel/mods/mod3/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod3/img/c.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | [
2 | { "op": "replace", "path": "/nested/object/array", "value": ["foo"] }
3 | ]
4 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod4/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Food",
3 | "description":"This mod has a pineapple, an apple, and a loaf of bread",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod4
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"pineapple"},
3 | "object_1":{"value":"apple"},
4 | "object_2":{"value":"bread"},
5 | "nested":{"object":{"array":["a","b","c"]}}
6 | }
7 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod4/img/a.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod4/img/b.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod4/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod4/img/c.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod5/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/flixel/mods/mod5/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod5/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod5
--------------------------------------------------------------------------------
/samples/flixel/mods/mod5/_append/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_3": {
3 | "value": "chocolate"
4 | }
5 | }
--------------------------------------------------------------------------------
/samples/flixel/mods/mod5/_append/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod5/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | [
2 | { "op": "add", "path": "/nested/object/array/-", "value": "d" }
3 | ]
4 |
--------------------------------------------------------------------------------
/samples/flixel/mods/mod5/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod5/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/flixel/mods/mod5/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Chocolate",
3 | "description":"This mod has some chocolate",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/flixel/mods/mod5/data/hello.txt:
--------------------------------------------------------------------------------
1 | This is a new file!
--------------------------------------------------------------------------------
/samples/flixel/mods/mod5/img/d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel/mods/mod5/img/d.png
--------------------------------------------------------------------------------
/samples/flixel/source/Main.hx:
--------------------------------------------------------------------------------
1 | import flixel.FlxBasic;
2 | import flixel.FlxGame;
3 | import flixel.FlxState;
4 | import flixel.group.FlxGroup.FlxTypedGroup;
5 | import openfl.display.Sprite;
6 | import polymod.hscript.HScriptable;
7 |
8 | class Main extends Sprite
9 | {
10 | public function new()
11 | {
12 | super();
13 | addChild(new FlxGame(0, 0, PlayState));
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/samples/flixel_zip/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "openfl.lime-vscode-extension",
4 | "redhat.vscode-xml"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/samples/flixel_zip/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "Build + Debug",
6 | "type": "lime",
7 | "request": "launch"
8 | },
9 | {
10 | "name": "Debug",
11 | "type": "lime",
12 | "request": "launch",
13 | "preLaunchTask": null
14 | },
15 | {
16 | // Evaluate macros with debugging enabled
17 | "name": "Haxe Eval",
18 | "type": "haxe-eval",
19 | "request": "launch"
20 | },
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/samples/flixel_zip/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "search.exclude": {
3 | "export/**/*.hx": true
4 | },
5 | "[haxe]": {
6 | "editor.formatOnSave": true,
7 | "editor.formatOnPaste": true,
8 | "editor.codeActionsOnSave": {
9 | "source.sortImports": true
10 | }
11 | },
12 | "haxe.enableExtendedIndentation": true
13 | }
--------------------------------------------------------------------------------
/samples/flixel_zip/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0.0",
3 | "tasks": [
4 | {
5 | "type": "lime",
6 | "command": "test",
7 | "group": {
8 | "kind": "build",
9 | "isDefault": true
10 | }
11 | }
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/samples/flixel_zip/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Lars Doucet and Eric Myllyoja
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/samples/flixel_zip/assets/data/song-data.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Bopeebo",
3 | "difficulties": ["Easy", "Normal", "Hard"]
4 | }
--------------------------------------------------------------------------------
/samples/flixel_zip/assets/img/BOYFRIEND.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel_zip/assets/img/BOYFRIEND.png
--------------------------------------------------------------------------------
/samples/flixel_zip/hmm.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": [
3 | {
4 | "name": "flixel",
5 | "type": "haxelib",
6 | "version": null
7 | },
8 | {
9 | "name": "flixel-addons",
10 | "type": "haxelib",
11 | "version": null
12 | },
13 | {
14 | "name": "flixel-ui",
15 | "type": "haxelib",
16 | "version": null
17 | },
18 | {
19 | "name": "hxcpp",
20 | "type": "haxelib",
21 | "version": null
22 | },
23 | {
24 | "name": "hxcpp-debug-server",
25 | "type": "haxelib",
26 | "version": null
27 | },
28 | {
29 | "name": "lime",
30 | "type": "haxelib",
31 | "version": null
32 | },
33 | {
34 | "name": "openfl",
35 | "type": "haxelib",
36 | "version": null
37 | },
38 | {
39 | "name": "polymod",
40 | "path": "../..",
41 | "type": "dev"
42 | },
43 | {
44 | "name": "thx.semver",
45 | "type": "haxelib",
46 | "version": null
47 | }
48 | ]
49 | }
--------------------------------------------------------------------------------
/samples/flixel_zip/hxformat.json:
--------------------------------------------------------------------------------
1 | {
2 | "lineEnds": {
3 | "leftCurly": "both",
4 | "rightCurly": "both",
5 | "objectLiteralCurly": {
6 | "leftCurly": "after"
7 | }
8 | },
9 | "sameLine": {
10 | "ifElse": "next",
11 | "doWhile": "next",
12 | "tryBody": "next",
13 | "tryCatch": "next"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/samples/flixel_zip/mods/ena.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel_zip/mods/ena.zip
--------------------------------------------------------------------------------
/samples/flixel_zip/mods/miku/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title": "Miku",
3 | "description": "Replaces the Boyfriend sprite with Hatsune Miku.",
4 | "author": "bbpanzu",
5 | "api_version": "0.1.0",
6 | "mod_version": "1.0.0-alpha",
7 | "license": "CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/flixel_zip/mods/miku/img/BOYFRIEND.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel_zip/mods/miku/img/BOYFRIEND.png
--------------------------------------------------------------------------------
/samples/flixel_zip/mods/miku/img/BOYFRIEND.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/samples/flixel_zip/mods/whitty.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/flixel_zip/mods/whitty.zip
--------------------------------------------------------------------------------
/samples/flixel_zip/source/Main.hx:
--------------------------------------------------------------------------------
1 | import flixel.FlxBasic;
2 | import flixel.FlxGame;
3 | import flixel.FlxState;
4 | import flixel.group.FlxGroup.FlxTypedGroup;
5 | import openfl.display.Sprite;
6 | import polymod.hscript.HScriptable;
7 |
8 | class Main extends Sprite
9 | {
10 | public function new()
11 | {
12 | super();
13 | addChild(new FlxGame(0, 0, PlayState));
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/samples/heaps/.gitignore:
--------------------------------------------------------------------------------
1 | res/
2 | !res/resources-go-here.txt
--------------------------------------------------------------------------------
/samples/heaps/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "HashLink",
6 | "request": "launch",
7 | "type": "hl",
8 | "cwd": "${workspaceFolder}",
9 | "preLaunchTask": {
10 | "type": "haxe",
11 | "args": "active configuration"
12 | }
13 | }
14 | ]
15 | }
--------------------------------------------------------------------------------
/samples/heaps/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Lars Doucet and Eric Myllyoja
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/samples/heaps/README.md:
--------------------------------------------------------------------------------
1 | # samples/heaps
2 |
3 | ## Build Instructions
4 |
5 | 1. Install Haxe.
6 | 2. `haxelib install hmm` to download the dependency manager.
7 | 3. `haxelib run hmm install` to download dependencies.
8 | 4. Run `haxe hl.hxml`, or use the VSCode launch option to build and run in HashLink.
--------------------------------------------------------------------------------
/samples/heaps/hl.hxml:
--------------------------------------------------------------------------------
1 | -lib heaps
2 | -lib hlsdl
3 | -lib polymod
4 | -lib thx.semver
5 | -lib hxbit
6 | -hl demo.hl
7 | -main Main
8 | -D windowSize=1024x768
9 | -D POLYMOD_DEBUG=true
10 | -cp src
11 | -debug
--------------------------------------------------------------------------------
/samples/heaps/hmm.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": [
3 | {
4 | "name": "heaps",
5 | "type": "haxelib",
6 | "version": null
7 | },
8 | {
9 | "name": "hlsdl",
10 | "type": "haxelib",
11 | "version": null
12 | },
13 | {
14 | "name": "hxbit",
15 | "type": "haxelib",
16 | "version": null
17 | },
18 | {
19 | "name": "polymod",
20 | "path": "../..",
21 | "type": "dev"
22 | },
23 | {
24 | "name": "thx.semver",
25 | "type": "haxelib",
26 | "version": null
27 | }
28 | ]
29 | }
--------------------------------------------------------------------------------
/samples/heaps/mods/mod1/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/heaps/mods/mod1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod1/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod1
--------------------------------------------------------------------------------
/samples/heaps/mods/mod1/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_0",
5 | "payload":{"value":"daisy"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/heaps/mods/mod1/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod1/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod1/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod1/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Daisy",
3 | "description":"This mod has a daisy",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/heaps/mods/mod1/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod1/img/a.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod2/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/heaps/mods/mod2/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod2/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod2
--------------------------------------------------------------------------------
/samples/heaps/mods/mod2/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_1",
5 | "payload":{"value":"sunflower"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/heaps/mods/mod2/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod2/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod2/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod2/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Sunflower",
3 | "description":"This mod has a sunflower",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/heaps/mods/mod2/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod2/img/b.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod3/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/heaps/mods/mod3/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod3/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod3
--------------------------------------------------------------------------------
/samples/heaps/mods/mod3/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_2",
5 | "payload":{"value":"hibiscus"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/heaps/mods/mod3/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod3/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod3/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod3/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Hibiscus",
3 | "description":"This mod has a hibiscus",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/heaps/mods/mod3/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod3/img/c.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod4/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/heaps/mods/mod4/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod4/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod4/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod4/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Food",
3 | "description":"This mod has a pineapple, an apple, and a loaf of bread",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/heaps/mods/mod4/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod4
--------------------------------------------------------------------------------
/samples/heaps/mods/mod4/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"pineapple"},
3 | "object_1":{"value":"apple"},
4 | "object_2":{"value":"bread"}
5 | }
6 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod4/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod4/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod4/img/a.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod4/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod4/img/b.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod4/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod4/img/c.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod5/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/heaps/mods/mod5/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod5/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod5
--------------------------------------------------------------------------------
/samples/heaps/mods/mod5/_append/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_3":{"value":"chocolate"}
3 | }
4 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod5/_append/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/samples/heaps/mods/mod5/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"nested.object.array",
5 | "payload":["a","b","c","d"]
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/heaps/mods/mod5/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod5/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/heaps/mods/mod5/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Chocolate",
3 | "description":"This mod has some chocolate",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/heaps/mods/mod5/img/d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/heaps/mods/mod5/img/d.png
--------------------------------------------------------------------------------
/samples/nme/Assets/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello, world!
--------------------------------------------------------------------------------
/samples/nme/Assets/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"moon"},
3 | "object_1":{"value":"star"},
4 | "object_2":{"value":"sun"},
5 | "nested":{"object":{"array":["a","b","c"]}}
6 | }
7 |
--------------------------------------------------------------------------------
/samples/nme/Assets/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/nme/Assets/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/Assets/img/a.png
--------------------------------------------------------------------------------
/samples/nme/Assets/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/Assets/img/b.png
--------------------------------------------------------------------------------
/samples/nme/Assets/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/Assets/img/c.png
--------------------------------------------------------------------------------
/samples/nme/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Lars Doucet and Eric Myllyoja
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/samples/nme/README.md:
--------------------------------------------------------------------------------
1 | # samples/nme
2 |
3 | ## Build Instructions
4 |
5 | 1. Install Haxe.
6 | 2. `haxelib install hmm` to download the dependency manager.
7 | 3. `haxelib run hmm install` to download dependencies.
8 | 4. `haxelib run nme test cpp` to build the project.
9 |
--------------------------------------------------------------------------------
/samples/nme/Source/Main.hx:
--------------------------------------------------------------------------------
1 | import nme.display.Sprite;
2 | import nme.Lib;
3 | import polymod.Polymod;
4 |
5 | class Main extends Sprite
6 | {
7 | private var demo:Demo = null;
8 |
9 | public function new()
10 | {
11 | super();
12 | loadDemo();
13 | }
14 |
15 | private function loadDemo()
16 | {
17 | demo = new Demo(onModChange);
18 | addChild(demo);
19 | }
20 |
21 | private function onModChange(arr:Array)
22 | {
23 | loadMods(arr);
24 | demo.refresh();
25 | }
26 |
27 | private function loadMods(dirs:Array)
28 | {
29 | var modRoot = "../../../mods/";
30 | var results = Polymod.init({
31 | modRoot: modRoot,
32 | dirs: dirs,
33 | errorCallback: onError,
34 | ignoredFiles: Polymod.getDefaultIgnoreList()
35 | });
36 | }
37 |
38 | private function onError(error:PolymodError)
39 | {
40 | trace('[${error.severity}] (${Std.string(error.code).toUpperCase()}): ${error.message}');
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/samples/nme/hmm.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": [
3 | {
4 | "name": "hxcpp",
5 | "type": "haxelib",
6 | "version": null
7 | },
8 | {
9 | "name": "nme",
10 | "type": "haxelib",
11 | "version": null
12 | },
13 | {
14 | "name": "polymod",
15 | "path": "../..",
16 | "type": "dev"
17 | },
18 | {
19 | "name": "thx.semver",
20 | "type": "haxelib",
21 | "version": null
22 | }
23 | ]
24 | }
--------------------------------------------------------------------------------
/samples/nme/mods/mod1/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/nme/mods/mod1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod1/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod1
--------------------------------------------------------------------------------
/samples/nme/mods/mod1/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_0",
5 | "payload":{"value":"daisy"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/nme/mods/mod1/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod1/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod1/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod1/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Daisy",
3 | "description":"This mod has a daisy",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/nme/mods/mod1/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod1/img/a.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod2/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/nme/mods/mod2/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod2/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod2
--------------------------------------------------------------------------------
/samples/nme/mods/mod2/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_1",
5 | "payload":{"value":"sunflower"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/nme/mods/mod2/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod2/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod2/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod2/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Sunflower",
3 | "description":"This mod has a sunflower",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/nme/mods/mod2/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod2/img/b.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod3/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/nme/mods/mod3/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod3/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod3
--------------------------------------------------------------------------------
/samples/nme/mods/mod3/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_2",
5 | "payload":{"value":"hibiscus"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/nme/mods/mod3/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod3/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod3/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod3/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Hibiscus",
3 | "description":"This mod has a hibiscus",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/nme/mods/mod3/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod3/img/c.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod4/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/nme/mods/mod4/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod4/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod4/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod4/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Food",
3 | "description":"This mod has a pineapple, an apple, and a loaf of bread",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/nme/mods/mod4/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod4
--------------------------------------------------------------------------------
/samples/nme/mods/mod4/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"pineapple"},
3 | "object_1":{"value":"apple"},
4 | "object_2":{"value":"bread"}
5 | }
6 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod4/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod4/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod4/img/a.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod4/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod4/img/b.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod4/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod4/img/c.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod5/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/nme/mods/mod5/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod5/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod5
--------------------------------------------------------------------------------
/samples/nme/mods/mod5/_append/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_3":{"value":"chocolate"}
3 | }
4 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod5/_append/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/samples/nme/mods/mod5/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"nested.object.array",
5 | "payload":["a","b","c","d"]
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/nme/mods/mod5/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod5/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/nme/mods/mod5/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Chocolate",
3 | "description":"This mod has some chocolate",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/nme/mods/mod5/img/d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/nme/mods/mod5/img/d.png
--------------------------------------------------------------------------------
/samples/nme/project.nmml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/samples/openfl/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | // Launch in native/CPP
6 | "name": "Lime",
7 | "type": "lime",
8 | "request": "launch"
9 | },
10 | {
11 | // Evaluate macros with debugging enabled
12 | "name": "Haxe Eval",
13 | "type": "haxe-eval",
14 | "request": "launch"
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/samples/openfl/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "lime.targetConfigurations": [
3 | {
4 | "label": "Windows / Debug",
5 | "target": "windows",
6 | "args": [
7 | "-debug"
8 | ]
9 | },
10 | {
11 | "label": "HTML5 / Debug",
12 | "target": "html5",
13 | "args": [
14 | "-debug"
15 | ]
16 | }
17 | ],
18 | }
--------------------------------------------------------------------------------
/samples/openfl/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Lars Doucet and Eric Myllyoja
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/samples/openfl/README.md:
--------------------------------------------------------------------------------
1 | # samples/openfl
2 |
3 | Note that mod8 is intentially provided an outdated API version, to test the versioning system.
4 |
5 | ## Build Instructions
6 |
7 | 1. Install Haxe.
8 | 2. `haxelib install hmm` to download the dependency manager.
9 | 3. `haxelib run hmm install` to download dependencies.
10 | 4. `lime build windows -debug` to build the sample for Windows.
11 |
--------------------------------------------------------------------------------
/samples/openfl/assets/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello, world!
--------------------------------------------------------------------------------
/samples/openfl/assets/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"moon"},
3 | "object_1":{"value":"star"},
4 | "object_2":{"value":"sun"},
5 | "nested":{"object":{"array":["a","b","c"]}}
6 | }
7 |
--------------------------------------------------------------------------------
/samples/openfl/assets/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/openfl/assets/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/assets/img/a.png
--------------------------------------------------------------------------------
/samples/openfl/assets/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/assets/img/b.png
--------------------------------------------------------------------------------
/samples/openfl/assets/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/assets/img/c.png
--------------------------------------------------------------------------------
/samples/openfl/hmm.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": [
3 | {
4 | "name": "hxcpp",
5 | "type": "haxelib",
6 | "version": null
7 | },
8 | {
9 | "name": "hxcpp-debug-server",
10 | "type": "haxelib",
11 | "version": null
12 | },
13 | {
14 | "name": "lime",
15 | "type": "haxelib",
16 | "version": null
17 | },
18 | {
19 | "name": "openfl",
20 | "type": "haxelib",
21 | "version": null
22 | },
23 | {
24 | "name": "polymod",
25 | "path": "../..",
26 | "type": "dev"
27 | },
28 | {
29 | "name": "thx.semver",
30 | "type": "haxelib",
31 | "version": null
32 | }
33 | ]
34 | }
--------------------------------------------------------------------------------
/samples/openfl/mods/mod1/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl/mods/mod1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod1/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod1
--------------------------------------------------------------------------------
/samples/openfl/mods/mod1/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_0",
5 | "payload":{"value":"daisy"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl/mods/mod1/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod1/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod1/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod1/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Daisy",
3 | "description":"This mod has a daisy",
4 | "author":"Lars A. Doucet",
5 | "api_version":"1.1.0",
6 | "mod_version":"1.0.0",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl/mods/mod1/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod1/img/a.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod2/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl/mods/mod2/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod2/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod2
--------------------------------------------------------------------------------
/samples/openfl/mods/mod2/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_1",
5 | "payload":{"value":"sunflower"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl/mods/mod2/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod2/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod2/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod2/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Sunflower",
3 | "description":"This mod has a sunflower",
4 | "author":"Lars A. Doucet",
5 | "api_version":"1.1.1",
6 | "mod_version":"1.0.0",
7 | "dependencies": {
8 | "mod1": "1.*"
9 | },
10 | "license":"CC BY 4.0,MIT"
11 | }
--------------------------------------------------------------------------------
/samples/openfl/mods/mod2/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod2/img/b.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod3/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl/mods/mod3/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod3/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod3
--------------------------------------------------------------------------------
/samples/openfl/mods/mod3/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_2",
5 | "payload":{"value":"hibiscus"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl/mods/mod3/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod3/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod3/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod3/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Hibiscus",
3 | "description":"This mod has a hibiscus",
4 | "author":"Lars A. Doucet",
5 | "api_version":"1.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl/mods/mod3/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod3/img/c.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod4/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl/mods/mod4/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod4/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod4/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod4/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Food",
3 | "description":"This mod has a pineapple, an apple, and a loaf of bread",
4 | "author":"Lars A. Doucet",
5 | "api_version":"1.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl/mods/mod4/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod4
--------------------------------------------------------------------------------
/samples/openfl/mods/mod4/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"pineapple"},
3 | "object_1":{"value":"apple"},
4 | "object_2":{"value":"bread"},
5 | "nested":{"object":{"array":["a","b","c"]}}
6 | }
7 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod4/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod4/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod4/img/a.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod4/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod4/img/b.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod4/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod4/img/c.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod5/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl/mods/mod5/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod5/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod5
--------------------------------------------------------------------------------
/samples/openfl/mods/mod5/_append/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_3":{"value":"chocolate"}
3 | }
4 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod5/_append/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod5/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"nested.object.array",
5 | "payload":["a","b","c","d"]
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl/mods/mod5/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod5/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod5/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Chocolate",
3 | "description":"This mod has some chocolate",
4 | "author":"Lars A. Doucet",
5 | "api_version":"1.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl/mods/mod5/img/d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod5/img/d.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod8/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl/mods/mod8/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl/mods/mod8/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod8
--------------------------------------------------------------------------------
/samples/openfl/mods/mod8/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl/mods/mod8/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl/mods/mod8/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Peanut Butter",
3 | "description":"This mod has some chocolate",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl/project.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "Lime",
9 | "type": "lime",
10 | "request": "launch"
11 | }
12 | ]
13 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Lars Doucet and Eric Myllyoja
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/README.md:
--------------------------------------------------------------------------------
1 | # samples/openfl_firetongue
2 |
3 | This sample is explicitly designed to showcase the asset localization features of Polymod.
4 |
5 | ## Build Instructions
6 |
7 | 1. Install Haxe.
8 | 2. `haxelib install hmm` to download the dependency manager.
9 | 3. `haxelib run hmm install` to download dependencies.
10 | 4. `lime build windows -debug` to build the sample for Windows.
11 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"moon"},
3 | "object_1":{"value":"star"},
4 | "object_2":{"value":"sun"},
5 | "nested":{"object":{"array":["a","b","c"]}}
6 | }
7 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/assets/img/a.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/assets/img/b.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/assets/img/c.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/img/ship.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/assets/img/ship.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/locales/_icons/en-US.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/assets/locales/_icons/en-US.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/locales/_icons/yr-HR.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/assets/locales/_icons/yr-HR.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/locales/en-US/data.tsv:
--------------------------------------------------------------------------------
1 | flag content
2 | HELLO_WORLD Hello, world!
3 | ASSET_SYSTEM_LABEL Asset System:
4 | ASSET_SYSTEM_OPENFL OpenFL
5 | ASSET_SYSTEM_LIME Lime
6 | TRANSLATION_LABEL Translation:
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/locales/en-US/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello, world!
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/locales/en-US/mod.tsv:
--------------------------------------------------------------------------------
1 | flag content
2 | MOD_LEFT ←
3 | MOD_RIGHT →
4 | MOD_ACTIVE active
5 | MOD_INACTIVE inactive
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/locales/yr-HR/data.tsv:
--------------------------------------------------------------------------------
1 | flag content
2 | HELLO_WORLD Ahoy, matey!
3 | ASSET_SYSTEM_LABEL Treasure Trove:
4 | ASSET_SYSTEM_OPENFL Refurbished Flash
5 | ASSET_SYSTEM_LIME Scurvy-be-gone
6 | TRANSLATION_LABEL Tongue:
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/locales/yr-HR/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Avast, mateys!
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/locales/yr-HR/img/ship.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/assets/locales/yr-HR/img/ship.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/assets/locales/yr-HR/mod.tsv:
--------------------------------------------------------------------------------
1 | flag content
2 | MOD_LEFT =>
3 | MOD_RIGHT <=
4 | MOD_ACTIVE swabbing the deck
5 | MOD_INACTIVE lazin' about
--------------------------------------------------------------------------------
/samples/openfl_firetongue/hmm.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": [
3 | {
4 | "name": "firetongue",
5 | "type": "haxelib",
6 | "version": null
7 | },
8 | {
9 | "name": "hxcpp",
10 | "type": "haxelib",
11 | "version": null
12 | },
13 | {
14 | "name": "hxcpp-debug-server",
15 | "type": "haxelib",
16 | "version": null
17 | },
18 | {
19 | "name": "lime",
20 | "type": "haxelib",
21 | "version": null
22 | },
23 | {
24 | "name": "openfl",
25 | "type": "haxelib",
26 | "version": null
27 | },
28 | {
29 | "name": "polymod",
30 | "path": "../..",
31 | "type": "dev"
32 | },
33 | {
34 | "name": "thx.semver",
35 | "type": "haxelib",
36 | "version": null
37 | }
38 | ]
39 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod1/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod1/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod1
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod1/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_0",
5 | "payload":{"value":"daisy"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod1/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod1/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod1/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod1/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Daisy",
3 | "description":"This mod has a daisy",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod1/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod1/img/a.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod2/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod2/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod2/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod2
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod2/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_1",
5 | "payload":{"value":"sunflower"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod2/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod2/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod2/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod2/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Sunflower",
3 | "description":"This mod has a sunflower",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod2/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod2/img/b.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod3/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod3/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod3/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod3
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod3/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_2",
5 | "payload":{"value":"hibiscus"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod3/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod3/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod3/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod3/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Hibiscus",
3 | "description":"This mod has a hibiscus",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod3/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod3/img/c.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod4/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod4/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod4/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod4/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod4/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Food",
3 | "description":"This mod has a pineapple, an apple, and a loaf of bread",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod4/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod4
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod4/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"pineapple"},
3 | "object_1":{"value":"apple"},
4 | "object_2":{"value":"bread"},
5 | "nested":{"object":{"array":["a","b","c"]}}
6 | }
7 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod4/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod4/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod4/img/a.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod4/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod4/img/b.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod4/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod4/img/c.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod5/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod5/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod5/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod5
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod5/_append/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_3":{"value":"chocolate"}
3 | }
4 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod5/_append/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod5/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"nested.object.array",
5 | "payload":["a","b","c","d"]
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod5/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod5/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod5/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Chocolate",
3 | "description":"This mod has some chocolate",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod5/img/d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod5/img/d.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod5/locales/yr-HR/img/d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_firetongue/mods/mod5/locales/yr-HR/img/d.png
--------------------------------------------------------------------------------
/samples/openfl_firetongue/mods/mod6/_merge/locales/index.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "Lime",
9 | "type": "lime",
10 | "request": "launch"
11 | },
12 | {
13 | "name": "Haxe Interpreter",
14 | "type": "haxe-eval",
15 | "request": "launch"
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Lars Doucet and Eric Myllyoja
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/data/bees.txt:
--------------------------------------------------------------------------------
1 | 10
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/data/flowers.txt:
--------------------------------------------------------------------------------
1 | 50
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/data/scripts/demo/Simulation/emptyFlower.txt:
--------------------------------------------------------------------------------
1 | flower.pollen = 0;
2 | flower.cooldown = flower.maxCooldown;
3 | flower.alpha = 0.25;
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/data/scripts/demo/Simulation/initSimulation.txt:
--------------------------------------------------------------------------------
1 | var minX:Float = 40;
2 | var maxX:Float = 800-40;
3 |
4 | var minY:Float = 40;
5 | var maxY:Float = 480-40;
6 |
7 | var cX:Float = 800/2;
8 | var cY:Float = 480/2;
9 |
10 | trace('[SCRIPT] Making ' + numFlowers + ' flowers...');
11 | for(i in 0...numFlowers)
12 | {
13 | var type = Std.int(Math.random() * 3) + 1;
14 | var x = cX;
15 | var y = cY;
16 | while(distTest(x,y,cX,cY,100))
17 | {
18 | x = minX + (Math.random() * (maxX-minX));
19 | y = minY + (Math.random() * (maxY-minY));
20 | }
21 | makeFlower(type, x, y);
22 | }
23 |
24 | makeHome(cX,cY);
25 |
26 | trace('[SCRIPT] Making ' + numBees + ' bees...');
27 | for(i in 0...numBees)
28 | {
29 | var x = minX + (Math.random() * (maxX-minX));
30 | var y = minY + (Math.random() * (maxY-minY));
31 | makeBee(x, y);
32 | }
33 |
34 | // Return a result.
35 | true
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/data/scripts/demo/Simulation/updateFlower.txt:
--------------------------------------------------------------------------------
1 | if(flower.cooldown > 0)
2 | {
3 | flower.cooldown -= elapsed;
4 |
5 | var p = (flower.maxCooldown-flower.cooldown)/flower.maxCooldown;
6 |
7 | flower.alpha = 0.10 + (0.75 * p);
8 |
9 | if(flower.cooldown <= 0)
10 | {
11 | flower.cooldown = 0;
12 | flower.pollen = flower.maxPollen;
13 | flower.alpha = 1.0;
14 | }
15 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/data/scripts/demo/Simulation/updateScore.txt:
--------------------------------------------------------------------------------
1 | "Honey collected: " + value;
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/data/scripts/test/flowers/flower1.txt:
--------------------------------------------------------------------------------
1 | function getFlowerName() {
2 | trace('Flower 1!');
3 | return "dandilion1";
4 | }
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/data/scripts/test/flowers/flower2.txt:
--------------------------------------------------------------------------------
1 | function getFlowerName() {
2 | trace('Flower 2!!');
3 | return "sunflower2";
4 | }
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/data/scripts/test/flowers/flower3.txt:
--------------------------------------------------------------------------------
1 | function getFlowerName() {
2 | return "rubiginosa";
3 | }
4 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/img/bee.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/assets/img/bee.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/img/flower1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/assets/img/flower1.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/img/flower2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/assets/img/flower2.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/img/flower3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/assets/img/flower3.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/assets/img/honey.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/assets/img/honey.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/hmm.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": [
3 | {
4 | "name": "hscript",
5 | "type": "haxelib",
6 | "version": null
7 | },
8 | {
9 | "name": "hxcpp",
10 | "type": "haxelib",
11 | "version": null
12 | },
13 | {
14 | "name": "hxcpp-debug-server",
15 | "type": "haxelib",
16 | "version": null
17 | },
18 | {
19 | "name": "lime",
20 | "type": "haxelib",
21 | "version": null
22 | },
23 | {
24 | "name": "openfl",
25 | "type": "haxelib",
26 | "version": null
27 | },
28 | {
29 | "name": "polymod",
30 | "path": "../..",
31 | "type": "dev"
32 | },
33 | {
34 | "name": "thx.semver",
35 | "type": "haxelib",
36 | "version": null
37 | }
38 | ]
39 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod1/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod1/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/mods/mod1/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod1/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Dragon",
3 | "description":"Replaces Bees with Dragons",
4 | "contributors": [
5 | {
6 | "name": "Lars A. Doucet",
7 | "role": "Developer"
8 | }
9 | ],
10 | "api_version":"0.1.0",
11 | "mod_version":"1.0.0-alpha",
12 | "license":"CC BY 4.0,MIT"
13 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod1/img/bee.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/mods/mod1/img/bee.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod1/img/flower1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/mods/mod1/img/flower1.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod1/img/flower2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/mods/mod1/img/flower2.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod1/img/flower3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/mods/mod1/img/flower3.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod1/img/honey.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/mods/mod1/img/honey.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod2/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod2/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod2/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/mods/mod2/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod2/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Double Stuff",
3 | "description":"Twice as many bees and flowers",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod2/data/bees.txt:
--------------------------------------------------------------------------------
1 | 20
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod2/data/flowers.txt:
--------------------------------------------------------------------------------
1 | 100
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod3/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod3/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod3/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/mods/mod3/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod3/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Fast Flowers",
3 | "description":"Flowers replenish four times as fast",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod3/data/scripts/demo/Simulation/updateFlower.txt:
--------------------------------------------------------------------------------
1 | if(flower.cooldown > 0)
2 | {
3 | flower.cooldown -= elapsed*10;
4 | var p = (flower.maxCooldown-flower.cooldown)/flower.maxCooldown;
5 |
6 | flower.alpha = 0.10 + (0.75 * p);
7 |
8 | if(flower.cooldown <= 0)
9 | {
10 | flower.cooldown = 0;
11 | flower.pollen = flower.maxPollen;
12 | flower.alpha = 1.0;
13 | }
14 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod4/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod4/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod4/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript/mods/mod4/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_hscript/mods/mod4/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Smart Bees",
3 | "description":"Bees have better AI",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript/src/demo/Bee.hx:
--------------------------------------------------------------------------------
1 | package demo;
2 |
3 | import openfl.display.Sprite;
4 | import openfl.display.Bitmap;
5 | import openfl.utils.Assets;
6 |
7 | class Bee extends Mover
8 | {
9 | public var flower:Flower;
10 | public var pollen:Float;
11 | public var maxPollen:Float;
12 | public var turnsSearching:Int = 0;
13 |
14 | public function new()
15 | {
16 | super();
17 |
18 | speed = 100;
19 |
20 | var bmp = new Bitmap(Assets.getBitmapData('img/bee.png'));
21 | addChild(bmp);
22 |
23 | bmp.scaleX = 0.5;
24 | bmp.scaleY = 0.5;
25 | bmp.x -= bmp.width / 2;
26 | bmp.y -= bmp.height / 2;
27 | bmp.smoothing = true;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/src/demo/Home.hx:
--------------------------------------------------------------------------------
1 | package demo;
2 |
3 | import openfl.display.Sprite;
4 | import openfl.display.Bitmap;
5 | import openfl.utils.Assets;
6 |
7 | class Home extends Sprite
8 | {
9 | public var honey:Float = 0;
10 |
11 | public function new()
12 | {
13 | super();
14 | var bmp = new Bitmap(Assets.getBitmapData('img/honey.png'));
15 | addChild(bmp);
16 |
17 | bmp.scaleX = 0.5;
18 | bmp.scaleY = 0.5;
19 | bmp.x -= bmp.width / 2;
20 | bmp.y -= bmp.height / 2;
21 | bmp.smoothing = true;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/samples/openfl_hscript/src/demo/Mover.hx:
--------------------------------------------------------------------------------
1 | package demo;
2 |
3 | import openfl.display.Sprite;
4 | import lime.math.Vector2;
5 |
6 | class Mover extends Sprite
7 | {
8 | public var move:Vector2;
9 | public var speed:Float = 1;
10 |
11 | public function new()
12 | {
13 | super();
14 | move = new Vector2();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "Lime",
9 | "type": "lime",
10 | "request": "launch"
11 | },
12 | {
13 | "name": "Haxe Eval",
14 | "type": "haxe-eval",
15 | "request": "launch"
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "files.associations": {
3 | "*.hscript": "haxe",
4 | "*.haxe": "haxe",
5 | "*.hxs": "haxe",
6 | "*.hxc": "haxe"
7 | }
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Lars Doucet and Eric Myllyoja
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/README.md:
--------------------------------------------------------------------------------
1 | # samples/openfl_hscript_class
2 |
3 | This sample creates implements a simple Stage class, then creates a ScriptedStage scripted class type using Polymod. Polymod can then parse any scripted classes within the assets folder that extend Stage, and instantiate an instance of Stage which utilizes the behavior defined in the script.
4 |
5 | For example, the Basic stage creates a simple scene with a background, while the Advanced stage (from `mod6`) creates a scene with a background and a moving sprite.
6 |
7 | The Basic stage overrides the `create()` function of the stage to add additional behavior (i.e. rendering the background).
8 |
9 | The Advanced stage overrides `create()` to initialize the background and the moving sprite, but also overrides the `onUpdate()` and `onKeyPress()` functions to add additional behavior (moving the sprite, and changing the sprite's speed, respectively).
10 |
11 | This sample demonstrates how an application can easily instantiate and utilize classes defined in a script. This is useful for quick debugging without rebuilding an entire codebase, as well as implementation of robust modding support for your project.
12 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/assets/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello, world!
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/assets/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"moon"},
3 | "object_1":{"value":"star"},
4 | "object_2":{"value":"sun"},
5 | "nested":{"object":{"array":["a","b","c"]}}
6 | }
7 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/assets/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/assets/data/scripts/other/test.hxs:
--------------------------------------------------------------------------------
1 | trace('Hello, world!');
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/assets/data/scripts/stage/basic.hxc:
--------------------------------------------------------------------------------
1 | import stage.Stage;
2 | import openfl.utils.Assets;
3 | import openfl.display.Bitmap;
4 |
5 | class BasicStage extends Stage {
6 | public function new() {
7 | super('basic');
8 | stageName = 'Basic Stage';
9 | }
10 |
11 | public override function create():Void {
12 | super.create();
13 |
14 | var landscapeBg = new Bitmap(Assets.getBitmapData('img/stage/landscape.png'));
15 | landscapeBg.x = 0;
16 | landscapeBg.y = 0;
17 | landscapeBg.width = 480;
18 | landscapeBg.height = 360;
19 |
20 | this.addChild(landscapeBg);
21 | }
22 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/assets/img/stage/landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/assets/img/stage/landscape.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/hmm.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": [
3 | {
4 | "name": "hscript",
5 | "type": "haxelib",
6 | "version": null
7 | },
8 | {
9 | "name": "hxcpp",
10 | "type": "haxelib",
11 | "version": null
12 | },
13 | {
14 | "name": "hxcpp-debug-server",
15 | "type": "haxelib",
16 | "version": null
17 | },
18 | {
19 | "name": "lime",
20 | "type": "haxelib",
21 | "version": null
22 | },
23 | {
24 | "name": "openfl",
25 | "type": "haxelib",
26 | "version": null
27 | },
28 | {
29 | "name": "polymod",
30 | "path": "../..",
31 | "type": "dev"
32 | },
33 | {
34 | "name": "thx.semver",
35 | "type": "haxelib",
36 | "version": null
37 | }
38 | ]
39 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod1/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod1/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod1
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod1/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_0",
5 | "payload":{"value":"daisy"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod1/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod1/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod1/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod1/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Daisy",
3 | "description":"This mod has a daisy",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod1/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod1/img/a.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod2/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod2/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod2/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod2
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod2/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_1",
5 | "payload":{"value":"sunflower"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod2/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod2/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod2/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod2/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Sunflower",
3 | "description":"This mod has a sunflower",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod2/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod2/img/b.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod3/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod3/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod3/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod3
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod3/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_2",
5 | "payload":{"value":"hibiscus"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod3/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod3/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod3/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod3/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Hibiscus",
3 | "description":"This mod has a hibiscus",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod3/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod3/img/c.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod6/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod6/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod6/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod6/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Advanced Stage",
3 | "description":"This mod adds the Advanced stage",
4 | "author":"Eric",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod6/img/stage/car.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod6/img/stage/car.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod6/img/stage/street.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod6/img/stage/street.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod7/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod7/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod7/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod7/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Car Skin",
3 | "description":"This mod reskins the car from the Advanced stage",
4 | "author":"Eric",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod7/img/stage/car.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod7/img/stage/car.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod8/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod8/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod8/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod8/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Advanced Stage",
3 | "description":"This mod adds the Advanced stage",
4 | "author":"Eric",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod8/img/stage/car.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod8/img/stage/car.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/mods/mod8/img/stage/street.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_hscript_class/mods/mod8/img/stage/street.png
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/project.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/src/stage/ScriptedStage.hx:
--------------------------------------------------------------------------------
1 | package stage;
2 |
3 | import polymod.hscript.HScriptedClass;
4 | import polymod.hscript.HScriptable;
5 |
6 | @:hscriptClass
7 | class ScriptedStage extends Stage implements HScriptedClass
8 | {
9 | }
10 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/src/stage/Stage.hx:
--------------------------------------------------------------------------------
1 | package stage;
2 |
3 | import openfl.events.KeyboardEvent;
4 | import openfl.events.Event;
5 | import openfl.display.Sprite;
6 | import openfl.display.Bitmap;
7 | import openfl.display.BitmapData;
8 |
9 | class Stage extends Sprite
10 | {
11 | var test:Stage;
12 |
13 | public var stageId:String = "UNKNOWN";
14 | public var stageName:String = "UNKNOWN";
15 |
16 | public function new(id:String)
17 | {
18 | super();
19 | trace('Initializing Stage: $id');
20 | this.stageId = id;
21 | this.stageName = id;
22 |
23 | addEventListener(Event.ENTER_FRAME, onUpdate);
24 | }
25 |
26 | static final MAGENTA = 0xFFFF00FF;
27 |
28 | public function create():Void
29 | {
30 | // Clear all children so we don't add a sprite twice.
31 | removeChildren();
32 |
33 | var baseBg = new Bitmap(new BitmapData(480, 360, false, MAGENTA));
34 | addChild(baseBg);
35 | }
36 |
37 | public function onUpdate(event:Event):Void
38 | {
39 | // trace('onUpdate');
40 | }
41 |
42 | public function onKeyDown(event:KeyboardEvent):Void
43 | {
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/samples/openfl_hscript_class/src/stage/StubStage.hx:
--------------------------------------------------------------------------------
1 | package stage;
2 |
3 | class StubStage extends Stage
4 | {
5 | public function new()
6 | {
7 | super('stub');
8 | this.stageName = "Stub Stage";
9 | }
10 |
11 | public override function create()
12 | {
13 | super.create();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "Lime",
9 | "type": "lime",
10 | "request": "launch"
11 | }
12 | ]
13 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/README.md:
--------------------------------------------------------------------------------
1 | # samples/openfl_with_electron
2 |
3 | ## Running this Sample
4 |
5 | Dependencies:
6 | * [Electron](https://github.com/electron/electron/releases/download/v14.2.1/electron-v14.2.1-win32-x64.zip)
7 | * Haxe obvs
8 | * hxnodejs (via `haxelib install hxnodejs`)
9 |
10 | Steps:
11 | 1. Run `lime build html5` in the `samples/openfl_with_electron` directory.
12 | 2. Run `electron main.js` in the `samples/openfl_with_electron/bin/html5/bin` directory.
13 | 3. Preview the resulting application.
14 |
15 | Eventually `lime test electron` will properly run, pending the resolution of the following fix:
16 | https://github.com/haxelime/lime/issues/1504
17 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/assets/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello, world!
--------------------------------------------------------------------------------
/samples/openfl_with_electron/assets/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"moon"},
3 | "object_1":{"value":"star"},
4 | "object_2":{"value":"sun"},
5 | "nested":{"object":{"array":["a","b","c"]}}
6 | }
7 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/assets/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/assets/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/assets/img/a.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/assets/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/assets/img/b.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/assets/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/assets/img/c.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/hmm.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": [
3 | {
4 | "name": "hxcpp",
5 | "type": "haxelib",
6 | "version": null
7 | },
8 | {
9 | "name": "hxcpp-debug-server",
10 | "type": "haxelib",
11 | "version": null
12 | },
13 | {
14 | "name": "hxnodejs",
15 | "type": "haxelib",
16 | "version": null
17 | },
18 | {
19 | "name": "lime",
20 | "type": "haxelib",
21 | "version": null
22 | },
23 | {
24 | "name": "openfl",
25 | "type": "haxelib",
26 | "version": null
27 | },
28 | {
29 | "name": "polymod",
30 | "path": "../..",
31 | "type": "dev"
32 | },
33 | {
34 | "name": "thx.semver",
35 | "type": "haxelib",
36 | "version": null
37 | }
38 | ]
39 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod1/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod1/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod1/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod1
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod1/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_0",
5 | "payload":{"value":"daisy"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod1/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod1/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod1/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod1/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Daisy",
3 | "description":"This mod has a daisy",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod1/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod1/img/a.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod2/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod2/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod2/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod2
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod2/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_1",
5 | "payload":{"value":"sunflower"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod2/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod2/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod2/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod2/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Sunflower",
3 | "description":"This mod has a sunflower",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod2/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod2/img/b.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod3/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod3/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod3/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod3
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod3/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"object_2",
5 | "payload":{"value":"hibiscus"}
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod3/_merge/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod3/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod3/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod3/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Hibiscus",
3 | "description":"This mod has a hibiscus",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod3/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod3/img/c.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod4/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod4/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod4/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod4/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod4/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Food",
3 | "description":"This mod has a pineapple, an apple, and a loaf of bread",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod4/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod4
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod4/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_0":{"value":"pineapple"},
3 | "object_1":{"value":"apple"},
4 | "object_2":{"value":"bread"},
5 | "nested":{"object":{"array":["a","b","c"]}}
6 | }
7 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod4/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod4/img/a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod4/img/a.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod4/img/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod4/img/b.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod4/img/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod4/img/c.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod5/CODE_LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod5/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright 2018 Lars A. Doucet
2 |
3 | Code and script files (*.hscript/*.hs) are licensed by CODE_LICENSE.TXT
4 | All other files are licensed by ASSET_LICENSE.TXT
5 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod5/_append/data/greeting.txt:
--------------------------------------------------------------------------------
1 | Hello from mod5
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod5/_append/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "object_3":{"value":"chocolate"}
3 | }
4 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod5/_append/data/objects.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod5/_merge/data/objects.json:
--------------------------------------------------------------------------------
1 | {
2 | "merge":[
3 | {
4 | "target":"nested.object.array",
5 | "payload":["a","b","c","d"]
6 | }
7 | ]
8 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod5/_polymod_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod5/_polymod_icon.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod5/_polymod_meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "title":"Chocolate",
3 | "description":"This mod has some chocolate",
4 | "author":"Lars A. Doucet",
5 | "api_version":"0.1.0",
6 | "mod_version":"1.0.0-alpha",
7 | "license":"CC BY 4.0,MIT"
8 | }
--------------------------------------------------------------------------------
/samples/openfl_with_electron/mods/mod5/img/d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/larsiusprime/polymod/ab52d19c97480db3e91a4247035d6482cc17aba4/samples/openfl_with_electron/mods/mod5/img/d.png
--------------------------------------------------------------------------------
/samples/openfl_with_electron/project.xml:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------