Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
19bf0130
Commit
19bf0130
authored
Nov 01, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
9c144b84
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
getChapter.ts
egret/src/something/chapters/getChapter.ts
+13
-13
No files found.
egret/src/something/chapters/getChapter.ts
View file @
19bf0130
...
...
@@ -37,13 +37,13 @@ export function getChapterData(index: number): ChapterData {
}
var
a
=
{
"level
Num
"
:
102
,
"
levelTarget
"
:
[
{
"tar
getType"
:
5
,
"target
Num"
:
40
}
"level"
:
102
,
"
tar
"
:
[
{
"tar
Type"
:
5
,
"tar
Num"
:
40
}
],
"one
StarScore
"
:
6000
,
"two
StarScore
"
:
15000
,
"three
StarScore
"
:
32000
"one
s
"
:
6000
,
"two
s
"
:
15000
,
"three
s
"
:
32000
};
//取数据格式用,一般情况注释
// (function exportFile(chapters: ChapterData[]) {
...
...
@@ -52,20 +52,20 @@ var a = {
// var chapter: ChapterData = chapters[i]
// var target: PassTargetData = chapter.passTarget
// var a: any = {};
// a["level
Num
"] = i;
// a["
levelTarget
"] = [];
// a["level"] = i;
// a["
tar
"] = [];
// if (target.type == PassType.SCORE_TARGET) {
// a["
levelTarget"].push({ "targetType": 1, "target
Num": target.score })
// a["
tar"].push({ "tarType": 1, "tar
Num": target.score })
// } else {
// for (var j = 0; j < target.elements.length; j++) {
// var element = target.elements[j];
// a["
levelTarget"].push({ "targetType": submitTran[element.type], "target
Num": element.count })
// a["
tar"].push({ "tarType": submitTran[element.type], "tar
Num": element.count })
// }
// }
// a["one
StarScore
"] = chapter.starScores[0];
// a["two
StarScore
"] = chapter.starScores[1];
// a["three
StarScore
"] = chapter.starScores[2];
// a["one
s
"] = chapter.starScores[0];
// a["two
s
"] = chapter.starScores[1];
// a["three
s
"] = chapter.starScores[2];
// obj.push(a)
// }
...
...
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