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
0f9873a5
Commit
0f9873a5
authored
Apr 11, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ressource and supplementary-role class - update role step task class
parent
b0d43ca4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
4 deletions
+41
-4
ressource.spec.ts
src/app/class/ressource/ressource.spec.ts
+7
-0
ressource.ts
src/app/class/ressource/ressource.ts
+6
-0
role.ts
src/app/class/role/role.ts
+7
-1
step.ts
src/app/class/step/step.ts
+1
-1
supplementary-role.spec.ts
src/app/class/supplementary-role/supplementary-role.spec.ts
+7
-0
supplementary-role.ts
src/app/class/supplementary-role/supplementary-role.ts
+7
-0
task.ts
src/app/class/task/task.ts
+6
-2
No files found.
src/app/class/ressource/ressource.spec.ts
0 → 100644
View file @
0f9873a5
import
{
Ressource
}
from
'./ressource'
;
describe
(
'Ressource'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Ressource
()).
toBeTruthy
();
});
});
src/app/class/ressource/ressource.ts
0 → 100644
View file @
0f9873a5
export
class
Ressource
{
name
:
string
=
''
;
number
:
string
=
''
;
type
:
string
=
''
;
}
src/app/class/role/role.ts
View file @
0f9873a5
import
{
Step
}
from
"../step/step"
;
import
{
Task
}
from
"../task/task"
;
import
{
Ressource
}
from
"../ressource/ressource"
;
import
{
SupplementaryRole
}
from
"../supplementary-role/supplementary-role"
;
export
class
Role
{
intitule
:
string
=
''
;
questName
:
string
=
''
;
objective
:
string
=
''
;
description
:
string
=
''
;
educationnalObjectives
:
string
[]
=
[
''
];
rewards
:
string
=
''
;
stuff
:
string
=
''
;
ressources
:
Ressource
[]
=
[
new
Ressource
()];
supplementaryRoles
:
SupplementaryRole
[]
=
[];
comments
:
Comment
[]
=
[];
tasks
:
Task
[][]
=
[
[
new
Task
(
'normal'
)]
...
...
src/app/class/step/step.ts
View file @
0f9873a5
export
class
Step
{
description
:
string
=
''
;
durarion
:
number
=
0
;
durarion
:
number
=
1
;
durationUnit
:
string
=
'UT'
;
comments
:
Comment
[]
=
[];
}
src/app/class/supplementary-role/supplementary-role.spec.ts
0 → 100644
View file @
0f9873a5
import
{
SupplementaryRole
}
from
'./supplementary-role'
;
describe
(
'SupplementaryRole'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
SupplementaryRole
()).
toBeTruthy
();
});
});
src/app/class/supplementary-role/supplementary-role.ts
0 → 100644
View file @
0f9873a5
export
class
SupplementaryRole
{
name
:
string
=
''
;
objectives
:
string
=
''
;
skills
:
string
=
''
;
rules
:
string
=
''
;
}
src/app/class/task/task.ts
View file @
0f9873a5
import
{
Character
}
from
"../character/character"
;
import
{
Comment
}
from
"../comment/comment"
;
import
{
Repeat
}
from
"../repeat/repeat"
;
import
{
SupplementaryRole
}
from
"../supplementary-role/supplementary-role"
;
import
{
Symbol
}
from
"../symbol/symbol"
;
export
class
Task
{
type
:
string
;
//
could be : normal / annexe / event
type
:
string
;
//
peut être : normal / annexe / event / optionnal / final / repeater
identifier
:
string
=
''
;
symbol
:
Symbol
=
new
Symbol
();
objective
:
string
=
''
;
...
...
@@ -13,9 +14,12 @@ export class Task {
duration
:
number
=
1
;
durationUnite
:
string
=
'UT'
;
comments
:
Comment
[]
=
[];
character
:
Character
=
new
Character
()
;
character
:
Character
|
null
=
null
;
repeat
:
Repeat
=
new
Repeat
();
supplementaryRole
:
SupplementaryRole
|
null
=
null
;
interrupt
:
string
=
''
;
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