First commit

This commit is contained in:
2021-03-07 05:58:59 +01:00
committed by Andreas Schaafsma
commit 6e1a5f9fe5
18475 changed files with 3309357 additions and 0 deletions

6
hGameTest/node_modules/openfl/scripts/.npmignore generated vendored Normal file
View File

@@ -0,0 +1,6 @@
run.hxml
RunScript.hx
Tools.hx
tools.hxml
haxe
xml

213
hGameTest/node_modules/openfl/scripts/ImportAll.hx generated vendored Normal file
View File

@@ -0,0 +1,213 @@
package;
import openfl.desktop.Clipboard;
import openfl.desktop.ClipboardFormats;
import openfl.desktop.ClipboardTransferMode;
import openfl.display.Application;
import openfl.display.Bitmap;
import openfl.display.BitmapData;
import openfl.display.BitmapDataChannel;
import openfl.display.BlendMode;
import openfl.display.CapsStyle;
import openfl.display.DirectRenderer;
import openfl.display.DisplayObject;
import openfl.display.DisplayObjectContainer;
import openfl.display.DOMSprite;
import openfl.display.FPS;
import openfl.display.FrameLabel;
import openfl.display.GradientType;
import openfl.display.Graphics;
import openfl.display.GraphicsBitmapFill;
import openfl.display.GraphicsEndFill;
import openfl.display.GraphicsGradientFill;
import openfl.display.GraphicsPath;
import openfl.display.GraphicsPathCommand;
import openfl.display.GraphicsPathWinding;
import openfl.display.GraphicsSolidFill;
import openfl.display.GraphicsStroke;
import openfl.display.IBitmapDrawable;
import openfl.display.IGraphicsData;
import openfl.display.IGraphicsFill;
import openfl.display.IGraphicsPath;
import openfl.display.IGraphicsStroke;
import openfl.display.InteractiveObject;
import openfl.display.InterpolationMethod;
import openfl.display.JointStyle;
import openfl.display.JPEGEncoderOptions;
import openfl.display.LineScaleMode;
import openfl.display.Loader;
import openfl.display.LoaderInfo;
import openfl.display.MovieClip;
import openfl.display.OpenGLView;
import openfl.display.PixelSnapping;
import openfl.display.PNGEncoderOptions;
import openfl.display.Preloader;
import openfl.display.Shader;
import openfl.display.ShaderData;
import openfl.display.ShaderInput;
import openfl.display.ShaderJob;
import openfl.display.ShaderParameter;
import openfl.display.ShaderParameterType;
import openfl.display.ShaderPrecision;
import openfl.display.Shape;
import openfl.display.SimpleButton;
import openfl.display.SpreadMethod;
import openfl.display.Sprite;
import openfl.display.Stage;
import openfl.display.Stage3D;
import openfl.display.StageAlign;
import openfl.display.StageDisplayState;
import openfl.display.StageQuality;
import openfl.display.StageScaleMode;
import openfl.display.Tile;
import openfl.display.TileArray;
import openfl.display.Tilemap;
import openfl.display.Tileset;
import openfl.display.TriangleCulling;
import openfl.display.Window;
import openfl.display3D.textures.CubeTexture;
import openfl.display3D.textures.RectangleTexture;
import openfl.display3D.textures.Texture;
import openfl.display3D.textures.TextureBase;
import openfl.display3D.Context3D;
import openfl.display3D.Context3DBlendFactor;
import openfl.display3D.Context3DBufferUsage;
import openfl.display3D.Context3DClearMask;
import openfl.display3D.Context3DCompareMode;
import openfl.display3D.Context3DMipFilter;
import openfl.display3D.Context3DProfile;
import openfl.display3D.Context3DProgramType;
import openfl.display3D.Context3DRenderMode;
import openfl.display3D.Context3DStencilAction;
import openfl.display3D.Context3DTextureFilter;
import openfl.display3D.Context3DTextureFormat;
import openfl.display3D.Context3DTriangleFace;
import openfl.display3D.Context3DVertexBufferFormat;
import openfl.display3D.Context3DWrapMode;
import openfl.display3D.IndexBuffer3D;
import openfl.display3D.Program3D;
import openfl.display3D.VertexBuffer3D;
import openfl.errors.ArgumentError;
import openfl.errors.EOFError;
import openfl.errors.Error;
import openfl.errors.IllegalOperationError;
import openfl.errors.IOError;
import openfl.errors.RangeError;
import openfl.errors.SecurityError;
import openfl.errors.TypeError;
import openfl.events.AccelerometerEvent;
import openfl.events.ActivityEvent;
import openfl.events.AsyncErrorEvent;
import openfl.events.DataEvent;
import openfl.events.ErrorEvent;
import openfl.events.Event;
import openfl.events.EventDispatcher;
import openfl.events.EventPhase;
import openfl.events.FocusEvent;
import openfl.events.FullScreenEvent;
import openfl.events.GameInputEvent;
import openfl.events.HTTPStatusEvent;
import openfl.events.IEventDispatcher;
import openfl.events.IOErrorEvent;
import openfl.events.KeyboardEvent;
import openfl.events.MouseEvent;
import openfl.events.NetStatusEvent;
import openfl.events.ProgressEvent;
import openfl.events.SampleDataEvent;
import openfl.events.SecurityErrorEvent;
import openfl.events.TextEvent;
import openfl.events.TimerEvent;
import openfl.events.TouchEvent;
import openfl.events.UncaughtErrorEvent;
import openfl.events.UncaughtErrorEvents;
import openfl.external.ExternalInterface;
import openfl.filters.BitmapFilter;
import openfl.filters.BitmapFilterQuality;
import openfl.filters.BitmapFilterType;
import openfl.filters.BlurFilter;
import openfl.filters.ColorMatrixFilter;
//import openfl.filters.ConvolutionFilter;
import openfl.filters.DropShadowFilter;
import openfl.filters.GlowFilter;
import openfl.geom.ColorTransform;
import openfl.geom.Matrix;
import openfl.geom.Matrix3D;
import openfl.geom.Orientation3D;
import openfl.geom.PerspectiveProjection;
import openfl.geom.Point;
import openfl.geom.Rectangle;
import openfl.geom.Transform;
import openfl.geom.Utils3D;
import openfl.geom.Vector3D;
import openfl.media.ID3Info;
import openfl.media.Sound;
import openfl.media.SoundChannel;
import openfl.media.SoundLoaderContext;
import openfl.media.SoundTransform;
import openfl.media.Video;
import openfl.net.FileFilter;
import openfl.net.FileReference;
import openfl.net.FileReferenceList;
import openfl.net.NetConnection;
import openfl.net.NetStream;
import openfl.net.SharedObject;
import openfl.net.SharedObjectFlushStatus;
import openfl.net.Socket;
import openfl.net.URLLoader;
import openfl.net.URLLoaderDataFormat;
import openfl.net.URLRequest;
import openfl.net.URLRequestDefaults;
import openfl.net.URLRequestHeader;
import openfl.net.URLRequestMethod;
import openfl.net.URLStream;
import openfl.net.URLVariables;
import openfl.net.XMLSocket;
import openfl.profiler.Telemetry;
import openfl.sensors.Accelerometer;
import openfl.system.ApplicationDomain;
import openfl.system.Capabilities;
import openfl.system.LoaderContext;
import openfl.system.Security;
import openfl.system.SecurityDomain;
import openfl.system.System;
import openfl.system.TouchscreenType;
import openfl.text.AntiAliasType;
import openfl.text.Font;
import openfl.text.FontStyle;
import openfl.text.FontType;
import openfl.text.GridFitType;
import openfl.text.TextField;
import openfl.text.TextFieldAutoSize;
import openfl.text.TextFieldType;
import openfl.text.TextFormat;
import openfl.text.TextFormatAlign;
import openfl.text.TextLineMetrics;
import openfl.ui.GameInput;
import openfl.ui.GameInputControl;
import openfl.ui.GameInputDevice;
import openfl.ui.Keyboard;
import openfl.ui.KeyLocation;
import openfl.ui.Mouse;
import openfl.ui.MouseCursor;
import openfl.ui.Multitouch;
import openfl.ui.MultitouchInputMode;
import openfl.utils.AGALMiniAssembler;
import openfl.utils.AssetLibrary;
import openfl.utils.AssetManifest;
import openfl.utils.Assets;
import openfl.utils.ByteArray;
import openfl.utils.CompressionAlgorithm;
import openfl.utils.Dictionary;
import openfl.utils.Endian;
import openfl.utils.IDataInput;
import openfl.utils.IDataOutput;
import openfl.utils.Object;
import openfl.utils.Timer;
import openfl.Lib;
import openfl.Memory;
import openfl.Vector;
#if !display
import openfl._internal.swf.SWFLiteLibrary;
#end

23
hGameTest/node_modules/openfl/scripts/build.hxml generated vendored Normal file
View File

@@ -0,0 +1,23 @@
-js ../lib/_gen/_.js
ImportAll
#-lib lime
-cp ../node_modules/lime
-D lime
# -lib openfl
-cp ../src
#-lib hxgenjs
-cp ../node_modules/hxgenjs/src
-cp ../node_modules/tink_macro/src
-cp ../node_modules/tink_core/src
--macro genjs.Generator.use()
# -D hxextern
# -D tsextern
-D openfl-dynamic
-D openfljs
-D lime-opengl
-D lime-bytes-length-getter
-D html5
-D tools
-D commonjs
-D howlerjs
--no-inline

24
hGameTest/node_modules/openfl/scripts/docker-run.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
var workingDirectory = require ('path').resolve (__dirname, '..');
var command = "docker";
var args = [ "run", "--rm", "--volume", workingDirectory + ":/opt/openfl-js", "--workdir", "/opt/openfl-js", process.argv[2], "/bin/bash -c \"" + process.argv[3] + "\"" ];
// console.log (command + " " + args.join (" "));
var docker = require ('child_process').spawn ("docker", args, {
cwd: workingDirectory,
shell: true,
windowsHide: true
});
docker.stdout.on ("data", function (data) {
console.log (data.toString ());
});
docker.stderr.on ("data", function (data) {
console.error (data.toString ());
});
docker.on ("exit", function (code) {
process.exit (code);
});

173
hGameTest/node_modules/openfl/scripts/docs.hxml generated vendored Normal file
View File

@@ -0,0 +1,173 @@
# Generate platform-specific XML for documentation output
-xml xml/Flash.xml
-swf obj/docs
-swf-version 17.0
-D display
-D doc_gen
ImportAll
-lib lime
-lib openfl
-cp ../externs/core/openfl
-cp ../externs/core/flash
-cp ../externs/extras
--no-output
--next
-xml xml/Windows.xml
-cpp obj/docs
-D display
-D native
-D lime-cffi
-D windows
-D doc_gen
ImportAll
-lib lime
-lib openfl
-cp ../externs/core/openfl
-cp ../externs/extras
--no-output
--next
-xml xml/macOS.xml
-cpp obj/docs
-D display
-D native
-D lime-cffi
-D mac
-D doc_gen
ImportAll
-lib lime
-lib openfl
-cp ../externs/core/openfl
-cp ../externs/extras
--no-output
--next
-xml xml/Linux.xml
-cpp obj/docs
-D display
-D native
-D lime-cffi
-D linux
-D doc_gen
ImportAll
-lib lime
-lib openfl
-cp ../externs/core/openfl
-cp ../externs/extras
--no-output
--next
-xml xml/Neko.xml
-neko obj/docs
-D display
-D native
-D lime-cffi
-D doc_gen
ImportAll
-lib lime
-lib openfl
-cp ../externs/core/openfl
-cp ../externs/extras
--no-output
--next
-xml xml/iOS.xml
-cpp obj/docs
-D display
-D native
-D lime-cffi
-D ios
-D doc_gen
ImportAll
-lib lime
-lib openfl
-cp ../externs/core/openfl
-cp ../externs/extras
--no-output
--next
-xml xml/Android.xml
-cpp obj/docs
-D display
-D native
-D lime-cffi
-D android
-D doc_gen
ImportAll
-lib lime
-lib openfl
-cp ../externs/core/openfl
-cp ../externs/extras
--no-output
--next
#-xml xml/BlackBerry.xml
#-cpp obj/docs
#-D display
#-D native
#-D lime-cffi
#-D blackberry
#-D doc_gen
#ImportAll
#-lib lime
#-lib openfl
#-cp ../externs/core/openfl
#-cp ../externs/extras
#--no-output
#
#--next
#-xml xml/Tizen.xml
#-cpp obj/docs
#-D display
#-D native
#-D lime-cffi
#-D tizen
#ImportAll
#-lib lime
#-lib openfl
#-cp ../externs/core/openfl
#-cp ../externs/extras
#--no-output
#
#--next
#-xml xml/Firefox.xml
#-js obj/docs
#-D display
#-D html5
#-D firefox
#-D doc_gen
#ImportAll
#-lib lime
#-lib openfl
#-cp ../externs/core/openfl
#-cp ../externs/extras
#--no-output
#
#--next
-xml xml/HTML5.xml
-js obj/docs
-D display
-D html5
-D doc_gen
ImportAll
-lib lime
-lib openfl
-cp ../externs/core/openfl
-cp ../externs/extras
--no-output
--next
-cmd haxelib run dox -o ../docs -i xml -ex flash --title "API Reference" -D website "http://www.openfl.org" -D logo "http://www.openfl.org/images/logo.png" -D textColor 0x777777 -theme ../assets/docs-theme

1
hGameTest/node_modules/openfl/scripts/importAll.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
import * as openfl from "./../lib/openfl";

108
hGameTest/node_modules/openfl/scripts/js/Browser.hx generated vendored Normal file
View File

@@ -0,0 +1,108 @@
/*
* Copyright (C)2005-2017 Haxe Foundation
*
* 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:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* 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.
*/
package js;
import js.html.Storage;
import js.html.XMLHttpRequest;
class Browser {
/** The global window object. */
public static var window(get, never):js.html.Window;
inline static function get_window() return untyped __js__("window");
/** Shortcut to Window.document. */
public static var document(get, never):js.html.HTMLDocument;
inline static function get_document() return untyped __js__("window.document");
/** Shortcut to Window.location. */
public static var location(get, never):js.html.Location;
inline static function get_location() return untyped __js__("window.location");
/** Shortcut to Window.navigator. */
public static var navigator(get, never):js.html.Navigator;
inline static function get_navigator() return untyped __js__("window.navigator");
/** Shortcut to Window.console. */
public static var console(get, never):js.html.Console;
inline static function get_console() return untyped __js__("window.console");
/**
* True if a window object exists, false otherwise.
*
* This can be used to check if the code is being executed in a non-browser
* environment such as node.js.
*/
public static var supported(get, never):Bool;
inline static function get_supported() return untyped __js__("typeof window") != "undefined";
/**
* Safely gets the browser's local storage, or returns null if localStorage is unsupported or
* disabled.
*/
public static function getLocalStorage() : Storage
{
try {
var s = window.localStorage;
s.getItem("");
return s;
} catch( e : Dynamic ) {
return null;
}
}
/**
* Safely gets the browser's session storage, or returns null if sessionStorage is unsupported
* or disabled.
*/
public static function getSessionStorage() : Storage
{
try {
var s = window.sessionStorage;
s.getItem("");
return s;
} catch( e : Dynamic ) {
return null;
}
}
/**
* Creates an XMLHttpRequest, with a fallback to ActiveXObject for ancient versions of Internet
* Explorer.
*/
public static function createXMLHttpRequest() : XMLHttpRequest
{
if( untyped __js__("typeof XMLHttpRequest") != "undefined" ) {
return new XMLHttpRequest();
}
if( untyped __js__("typeof ActiveXObject") != "undefined" ) {
return untyped __new__("ActiveXObject","Microsoft.XMLHTTP");
}
throw "Unable to create XMLHttpRequest object.";
}
/**
Display an alert message box containing the given message. See also `Window.alert()`.
**/
public static function alert( v : Dynamic ) {
@:privateAccess window.alert(Boot.__string_rec(v,""));
}
}

41
hGameTest/node_modules/openfl/scripts/postinstall.js generated vendored Normal file
View File

@@ -0,0 +1,41 @@
#!/usr/bin/env node
var fs = require ("fs");
var child_process = require ("child_process");
function updateLibrary (name, url) {
if (fs.existsSync ("./" + name)) {
if (!fs.lstatSync ("./" + name).isSymbolicLink ()) {
process.chdir ("./" + name);
child_process.execSync ("git pull", { stdio: "inherit" });
process.chdir ("..");
}
} else {
child_process.execSync ("git clone " + url, { stdio: "inherit" });
}
}
try {
process.chdir ("./node_modules");
updateLibrary ("lime", "https://github.com/openfl/lime");
// updateLibrary ("hxgenjs", "https://github.com/kevinresol/hxgenjs");
// updateLibrary ("tink_macro", "https://github.com/haxetink/tink_macro");
// updateLibrary ("tink_core", "https://github.com/haxetink/tink_core");
} catch (error) {
console.error ("Error running postinstall script");
console.error (error);
return;
}

20
hGameTest/node_modules/openfl/scripts/tools-npm.hxml generated vendored Normal file
View File

@@ -0,0 +1,20 @@
-main Tools
-js ../bin/tools.js
-cp ../src
# -lib lime
-cp ../node_modules/lime
-D lime
# -lib format
-cp ../node_modules/format
-D format
# -lib nodejs
-cp ../node_modules/hxnodejs/src
--macro allowPackage('sys')
--macro _hxnodejs.InitMacro.include()
-D nodejs
-D hxnodejs
-D nocffi
-D disable-cffi
-D openfl
-D commonjs
--remap flash:openfl

BIN
hGameTest/node_modules/openfl/scripts/tools.n generated vendored Normal file

Binary file not shown.