Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
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
劳工
zeroing-engine
Commits
e746081c
Commit
e746081c
authored
Mar 30, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据中心获取空数据的问题
修改自定义常量可以通过表达式获取 修改oss密钥
parent
a757d535
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
6 deletions
+14
-6
manifest.json
manifest.json
+1
-1
oss.config.js
oss.config.js
+2
-2
Process.ts
src/zeroing/behavior-runtime/Process.ts
+2
-2
data-center.ts
src/zeroing/game-warpper/data-center.ts
+1
-1
ZriCommands.ts
src/zeroing/game-warpper/mvvm/ZriCommands.ts
+8
-0
No files found.
manifest.json
View file @
e746081c
{
"id"
:
"engine"
,
"url"
:
"engine.90b8f75c7c269eab8a9476fee14257118c0828a9.js"
}
\ No newline at end of file
{
"id"
:
"engine"
,
"url"
:
"engine.fe1c152c762e3bad43fe201bc9d9704676e8b275.js"
}
\ No newline at end of file
oss.config.js
View file @
e746081c
module
.
exports
=
{
region
:
'oss-cn-hangzhou'
,
id
:
'LTAI
qO2wblIxQvwc
'
,
secret
:
'
4brsaSRbRpjxw3oDIxJi6bNMcndIR6
'
,
id
:
'LTAI
4Fw25WcfcGv7FvcHoiHK
'
,
secret
:
'
NZk1NtT9J5HFaAolNbtQdzTzLLvLYm
'
,
bucket
:
'duiba'
,
output
:
'/editor/zeroing/libs'
};
src/zeroing/behavior-runtime/Process.ts
View file @
e746081c
...
...
@@ -4,7 +4,7 @@
* 过程
*/
import
{
VM
}
from
"./VM"
;
import
{
getDataByPath
,
link
edFlag
,
linkScheme
,
nodeScheme
,
objClone
}
from
"../utils
"
;
import
{
getDataByPath
,
link
Scheme
,
nodeScheme
,
objClone
}
from
"../utils/index
"
;
import
{
dataCenter
}
from
"../game-warpper/data-center"
;
import
{
env
}
from
"../game-warpper/enviroment"
;
import
{
getLogSwitch
,
Logs
}
from
"../log-switch"
;
...
...
@@ -241,7 +241,7 @@ export class Process {
props
[
key
]
=
nameValue
!==
undefined
?
nameValue
:
dataCenter
.
getDataByPath
(
name
);
break
;
case
'env'
:
props
[
key
]
=
env
[
name
]
;
props
[
key
]
=
getDataByPath
(
env
,
name
)
;
break
;
case
'map'
:
this
.
updateProps
(
props
[
key
]
=
{},
args
,
name
,
name
);
...
...
src/zeroing/game-warpper/data-center.ts
View file @
e746081c
...
...
@@ -84,7 +84,7 @@ export class DataCenter extends EventDispatcher {
let
name
=
args
[
0
];
let
dataMapping
=
this
.
getDataMapping
(
name
);
try
{
let
data
:
any
=
this
.
getDataByPath
(
dataMapping
.
path
,
undefined
,
tru
e
);
let
data
:
any
=
this
.
getDataByPath
(
dataMapping
.
path
,
undefined
,
fals
e
);
if
(
args
[
1
]
!==
undefined
)
{
data
=
data
[
args
[
1
]];
}
...
...
src/zeroing/game-warpper/mvvm/ZriCommands.ts
View file @
e746081c
...
...
@@ -199,6 +199,7 @@ export const commands: { [name: string]: Command } = {
parent
.
addChild
(
newNode
);
// 生成子域
let
newScope
:
any
=
Object
.
create
(
forScope
);
// 这里一定要用defineProperty将目标定义在当前节点上,否则会影响forScope
Object
.
defineProperty
(
newScope
,
"$index"
,
{
configurable
:
true
,
...
...
@@ -236,6 +237,13 @@ export const commands: { [name: string]: Command } = {
value
:
(
isArray
?
curList
[
curIndex
]
:
curList
[
curIndex
].
value
),
writable
:
false
});
// 把单项数据注入到显示对象上
Object
.
defineProperty
(
newNode
,
"$data"
,
{
configurable
:
true
,
enumerable
:
false
,
value
:
(
isArray
?
curList
[
curIndex
]
:
curList
[
curIndex
].
value
),
writable
:
false
});
// 开始编译新节点
context
.
compiler
.
compile
(
newNode
,
newScope
);
// 赋值上一个节点
...
...
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