Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RLG Maker
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Romain DELEAU
RLG Maker
Commits
6d37bc90
Commit
6d37bc90
authored
Feb 02, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data structure
parent
7768cdf0
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
180 additions
and
0 deletions
+180
-0
character.spec.ts
src/app/class/character/character.spec.ts
+7
-0
character.ts
src/app/class/character/character.ts
+6
-0
comment.spec.ts
src/app/class/comment/comment.spec.ts
+7
-0
comment.ts
src/app/class/comment/comment.ts
+6
-0
educationnal-objective.spec.ts
...ass/educationnal-objective/educationnal-objective.spec.ts
+7
-0
educationnal-objective.ts
...pp/class/educationnal-objective/educationnal-objective.ts
+5
-0
game-context.spec.ts
src/app/class/game-context/game-context.spec.ts
+7
-0
game-context.ts
src/app/class/game-context/game-context.ts
+9
-0
game-educationnal-objective.spec.ts
...ducationnal-objective/game-educationnal-objective.spec.ts
+7
-0
game-educationnal-objective.ts
...ame-educationnal-objective/game-educationnal-objective.ts
+5
-0
mission-context.spec.ts
src/app/class/mission-context/mission-context.spec.ts
+7
-0
mission-context.ts
src/app/class/mission-context/mission-context.ts
+7
-0
mission.spec.ts
src/app/class/mission/mission.spec.ts
+7
-0
mission.ts
src/app/class/mission/mission.ts
+11
-0
role.spec.ts
src/app/class/role/role.spec.ts
+7
-0
role.ts
src/app/class/role/role.ts
+14
-0
scenario.spec.ts
src/app/class/scenario/scenario.spec.ts
+7
-0
scenario.ts
src/app/class/scenario/scenario.ts
+13
-0
symbol.spec.ts
src/app/class/symbol/symbol.spec.ts
+7
-0
symbol.ts
src/app/class/symbol/symbol.ts
+6
-0
task.spec.ts
src/app/class/task/task.spec.ts
+7
-0
task.ts
src/app/class/task/task.ts
+21
-0
No files found.
src/app/class/character/character.spec.ts
0 → 100644
View file @
6d37bc90
import
{
Character
}
from
'./character'
;
describe
(
'Character'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Character
()).
toBeTruthy
();
});
});
src/app/class/character/character.ts
0 → 100644
View file @
6d37bc90
export
class
Character
{
name
:
string
=
''
;
description
:
string
=
''
;
}
src/app/class/comment/comment.spec.ts
0 → 100644
View file @
6d37bc90
import
{
Comment
}
from
'./comment'
;
describe
(
'Comment'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Comment
()).
toBeTruthy
();
});
});
src/app/class/comment/comment.ts
0 → 100644
View file @
6d37bc90
export
class
Comment
{
content
:
string
=
''
;
answers
:
Comment
[]
=
[];
}
src/app/class/educationnal-objective/educationnal-objective.spec.ts
0 → 100644
View file @
6d37bc90
import
{
EducationnalObjective
}
from
'./educationnal-objective'
;
describe
(
'EducationnalObjective'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
EducationnalObjective
()).
toBeTruthy
();
});
});
src/app/class/educationnal-objective/educationnal-objective.ts
0 → 100644
View file @
6d37bc90
export
class
EducationnalObjective
{
objective
:
string
=
''
;
}
src/app/class/game-context/game-context.spec.ts
0 → 100644
View file @
6d37bc90
import
{
GameContext
}
from
'./game-context'
;
describe
(
'GameContext'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
GameContext
()).
toBeTruthy
();
});
});
src/app/class/game-context/game-context.ts
0 → 100644
View file @
6d37bc90
export
class
GameContext
{
univers
:
string
=
''
;
support
:
string
=
''
;
duration
:
string
=
''
;
intrigue
:
string
=
''
;
other
:
string
=
''
;
}
src/app/class/game-educationnal-objective/game-educationnal-objective.spec.ts
0 → 100644
View file @
6d37bc90
import
{
GameEducationnalObjective
}
from
'./game-educationnal-objective'
;
describe
(
'GameEducationnalObjective'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
GameEducationnalObjective
()).
toBeTruthy
();
});
});
src/app/class/game-educationnal-objective/game-educationnal-objective.ts
0 → 100644
View file @
6d37bc90
export
class
GameEducationnalObjective
{
objective
:
string
=
''
;
}
src/app/class/mission-context/mission-context.spec.ts
0 → 100644
View file @
6d37bc90
import
{
MissionContext
}
from
'./mission-context'
;
describe
(
'MissionContext'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
MissionContext
()).
toBeTruthy
();
});
});
src/app/class/mission-context/mission-context.ts
0 → 100644
View file @
6d37bc90
export
class
MissionContext
{
duration
:
string
=
''
;
intrigue
:
string
=
''
;
other
:
string
=
''
;
}
src/app/class/mission/mission.spec.ts
0 → 100644
View file @
6d37bc90
import
{
Mission
}
from
'./mission'
;
describe
(
'Mission'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Mission
()).
toBeTruthy
();
});
});
src/app/class/mission/mission.ts
0 → 100644
View file @
6d37bc90
import
{
EducationnalObjective
}
from
"../educationnal-objective/educationnal-objective"
;
import
{
MissionContext
}
from
"../mission-context/mission-context"
;
import
{
Role
}
from
"../role/role"
;
export
class
Mission
{
educationnalObjective
:
EducationnalObjective
=
new
EducationnalObjective
();
context
:
MissionContext
=
new
MissionContext
();
roles
:
Role
[]
=
[
new
Role
(),
new
Role
()];
}
src/app/class/role/role.spec.ts
0 → 100644
View file @
6d37bc90
import
{
Role
}
from
'./role'
;
describe
(
'Role'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Role
()).
toBeTruthy
();
});
});
src/app/class/role/role.ts
0 → 100644
View file @
6d37bc90
import
{
Task
}
from
"../task/task"
;
export
class
Role
{
intitule
:
string
=
''
;
questName
:
string
=
''
;
objective
:
string
=
''
;
rewards
:
string
=
''
;
comments
:
Comment
[]
=
[];
tasks
:
Task
[][]
=
[
[
new
Task
(
'normal'
)]
]
}
src/app/class/scenario/scenario.spec.ts
0 → 100644
View file @
6d37bc90
import
{
Scenario
}
from
'./scenario'
;
describe
(
'Scenario'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Scenario
()).
toBeTruthy
();
});
});
src/app/class/scenario/scenario.ts
0 → 100644
View file @
6d37bc90
import
{
Character
}
from
"../character/character"
;
import
{
GameContext
}
from
"../game-context/game-context"
;
import
{
GameEducationnalObjective
}
from
"../game-educationnal-objective/game-educationnal-objective"
;
import
{
Mission
}
from
"../mission/mission"
;
export
class
Scenario
{
educationnalObjective
:
GameEducationnalObjective
=
new
GameEducationnalObjective
();
context
:
GameContext
=
new
GameContext
();
missions
:
Mission
[]
=
[
new
Mission
()];
characters
:
Character
[]
=
[];
}
\ No newline at end of file
src/app/class/symbol/symbol.spec.ts
0 → 100644
View file @
6d37bc90
import
{
Symbol
}
from
'./symbol'
;
describe
(
'Symbol'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Symbol
()).
toBeTruthy
();
});
});
src/app/class/symbol/symbol.ts
0 → 100644
View file @
6d37bc90
export
class
Symbol
{
symbol
:
string
=
''
;
color
:
string
=
''
;
}
src/app/class/task/task.spec.ts
0 → 100644
View file @
6d37bc90
import
{
Task
}
from
'./task'
;
describe
(
'Task'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Task
()).
toBeTruthy
();
});
});
src/app/class/task/task.ts
0 → 100644
View file @
6d37bc90
import
{
Character
}
from
"../character/character"
;
import
{
Comment
}
from
"../comment/comment"
;
import
{
Symbol
}
from
"../symbol/symbol"
;
export
class
Task
{
type
:
string
;
//could be : normal / annexe / event
identifier
:
string
=
''
;
symbol
:
Symbol
=
new
Symbol
();
objective
:
string
=
''
;
antecedents
:
Task
[]
=
[];
duration
:
number
=
1
;
durationUnite
:
string
=
'UT'
;
comments
:
Comment
[]
=
[];
character
:
Character
=
new
Character
();
constructor
(
type
:
string
)
{
this
.
type
=
type
;
}
}
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