生成dts带注释
This commit is contained in:
2409
source/bin/framework.d.ts
vendored
2409
source/bin/framework.d.ts
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
2
source/bin/framework.min.js
vendored
2
source/bin/framework.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -3,6 +3,7 @@ const gulp = require("gulp");
|
|||||||
const minify = require('gulp-minify');
|
const minify = require('gulp-minify');
|
||||||
const inject = require("gulp-inject-string");
|
const inject = require("gulp-inject-string");
|
||||||
const ts = require('gulp-typescript');
|
const ts = require('gulp-typescript');
|
||||||
|
const compile = require("gulp-typescript");
|
||||||
const tsProject = ts.createProject('tsconfig.json');
|
const tsProject = ts.createProject('tsconfig.json');
|
||||||
|
|
||||||
gulp.task('buildJs', () => {
|
gulp.task('buildJs', () => {
|
||||||
|
|||||||
@@ -29,36 +29,25 @@ module es {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 在场景子类中重写这个并在这里进行加载。在场景设置好之后,在调用begin之前,从构造器中调用。
|
* 在场景子类中重写这个,然后在这里进行加载。
|
||||||
|
* 在场景设置好之后,但在调用begin之前,从contructor中调用这个函数
|
||||||
*/
|
*/
|
||||||
public initialize() {
|
public initialize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 在场景子类中重写这个。当SceneManager将此场景设置为活动场景时,将调用此操作。
|
* 当Core将这个场景设置为活动场景时,这个将被调用
|
||||||
*/
|
*/
|
||||||
public async onStart() {
|
public async onStart() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 在场景子类中重写这个,并在这里做任何必要的卸载。当SceneManager从活动槽中删除此场景时调用。
|
* 在场景子类中重写这个,并在这里做任何必要的卸载。
|
||||||
|
* 当Core把这个场景从活动槽中移除时,这个被调用。
|
||||||
*/
|
*/
|
||||||
public unload() {
|
public unload() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 在场景子类中重写这个,当该场景当获得焦点时调用
|
|
||||||
*/
|
|
||||||
public onActive() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 在场景子类中重写这个,当该场景当失去焦点时调用
|
|
||||||
*/
|
|
||||||
public onDeactive() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public begin() {
|
public begin() {
|
||||||
Physics.reset();
|
Physics.reset();
|
||||||
this.updateResolutionScaler();
|
this.updateResolutionScaler();
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"target": "es5",
|
"target": "es5",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
"removeComments": true,
|
"removeComments": false,
|
||||||
"outFile": "./framework.js",
|
"outFile": "./framework.js",
|
||||||
"lib": [
|
"lib": [
|
||||||
"es5",
|
"es5",
|
||||||
|
|||||||
Reference in New Issue
Block a user