Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
renderingEngine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
renderingEngine
Commits
ce8afae0
Commit
ce8afae0
authored
Nov 23, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加自定义模块支持
parent
0b63ae5e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
package.json
package.json
+1
-1
rollup.config.js
rollup.config.js
+1
-1
GameStage.ts
src/zeroing/game-warpper/GameStage.ts
+6
-2
No files found.
package.json
View file @
ce8afae0
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
"scripts"
:
{
"scripts"
:
{
"build-webpack"
:
"webpack"
,
"build-webpack"
:
"webpack"
,
"rollup"
:
"rollup -c"
,
"rollup"
:
"rollup -c"
,
"rename"
:
"node scripts/rename-hash.js dist/
index
.js"
,
"rename"
:
"node scripts/rename-hash.js dist/
engine
.js"
,
"build"
:
"yarn rollup && yarn rename"
,
"build"
:
"yarn rollup && yarn rename"
,
"ts"
:
"dts-bundle --name engine --main types/src/index.d.ts --out ../../dist/index.d.ts"
,
"ts"
:
"dts-bundle --name engine --main types/src/index.d.ts --out ../../dist/index.d.ts"
,
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
...
...
rollup.config.js
View file @
ce8afae0
...
@@ -12,7 +12,7 @@ export default {
...
@@ -12,7 +12,7 @@ export default {
input
:
'src/index.ts'
,
input
:
'src/index.ts'
,
output
:
[
output
:
[
{
{
file
:
`dist/
index
.js`
,
file
:
`dist/
engine
.js`
,
format
:
'umd'
,
format
:
'umd'
,
name
:
'engine'
,
name
:
'engine'
,
sourcemap
:
true
,
sourcemap
:
true
,
...
...
src/zeroing/game-warpper/GameStage.ts
View file @
ce8afae0
...
@@ -92,7 +92,9 @@ export class GameStage extends Container {
...
@@ -92,7 +92,9 @@ export class GameStage extends Container {
let
total
=
assets
.
length
;
let
total
=
assets
.
length
;
if
(
customs
)
{
if
(
customs
)
{
for
(
let
custom
of
customs
)
{
for
(
let
custom
of
customs
)
{
total
+=
custom
.
assets
.
length
;
if
(
custom
.
assets
){
total
+=
custom
.
assets
.
length
;
}
}
}
}
}
...
@@ -100,7 +102,9 @@ export class GameStage extends Container {
...
@@ -100,7 +102,9 @@ export class GameStage extends Container {
await
loadAssets
(
assets
,
p
);
await
loadAssets
(
assets
,
p
);
if
(
customs
)
{
if
(
customs
)
{
for
(
let
custom
of
customs
)
{
for
(
let
custom
of
customs
)
{
await
loadAssets
(
custom
.
assets
,
p
);
if
(
custom
.
assets
){
await
loadAssets
(
custom
.
assets
,
p
);
}
}
}
}
}
hideLoadingView
();
hideLoadingView
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment