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
aaf0e810
Commit
aaf0e810
authored
May 05, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Data structure
parent
e901da6c
Changes
43
Show whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
335 additions
and
0 deletions
+335
-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
+8
-0
mission.spec.ts
src/app/class/mission/mission.spec.ts
+7
-0
mission.ts
src/app/class/mission/mission.ts
+12
-0
repeat.spec.ts
src/app/class/repeat/repeat.spec.ts
+7
-0
repeat.ts
src/app/class/repeat/repeat.ts
+6
-0
ressource.spec.ts
src/app/class/ressource/ressource.spec.ts
+7
-0
ressource.ts
src/app/class/ressource/ressource.ts
+6
-0
character-reward.spec.ts
...p/class/rewards/character-reward/character-reward.spec.ts
+7
-0
character-reward.ts
src/app/class/rewards/character-reward/character-reward.ts
+6
-0
objective-reward.spec.ts
...p/class/rewards/objective-reward/objective-reward.spec.ts
+7
-0
objective-reward.ts
src/app/class/rewards/objective-reward/objective-reward.ts
+5
-0
objects-reward.spec.ts
src/app/class/rewards/objects-reward/objects-reward.spec.ts
+7
-0
objects-reward.ts
src/app/class/rewards/objects-reward/objects-reward.ts
+6
-0
quest-reward.spec.ts
src/app/class/rewards/quest-reward/quest-reward.spec.ts
+7
-0
quest-reward.ts
src/app/class/rewards/quest-reward/quest-reward.ts
+6
-0
reward.ts
src/app/class/rewards/reward.ts
+3
-0
skill-reward.spec.ts
src/app/class/rewards/skill-reward/skill-reward.spec.ts
+7
-0
skill-reward.ts
src/app/class/rewards/skill-reward/skill-reward.ts
+6
-0
role-occurrence.spec.ts
src/app/class/role-occurrence/role-occurrence.spec.ts
+7
-0
role-occurrence.ts
src/app/class/role-occurrence/role-occurrence.ts
+5
-0
role.spec.ts
src/app/class/role/role.spec.ts
+7
-0
role.ts
src/app/class/role/role.ts
+25
-0
scenario.spec.ts
src/app/class/scenario/scenario.spec.ts
+7
-0
scenario.ts
src/app/class/scenario/scenario.ts
+15
-0
step.spec.ts
src/app/class/step/step.spec.ts
+7
-0
step.ts
src/app/class/step/step.ts
+7
-0
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
+8
-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
+27
-0
No files found.
src/app/class/character/character.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
export
class
Character
{
name
:
string
=
''
;
description
:
string
=
''
;
}
src/app/class/comment/comment.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
export
class
Comment
{
content
:
string
=
''
;
answers
:
string
[]
=
[];
}
src/app/class/educationnal-objective/educationnal-objective.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
export
class
EducationnalObjective
{
objective
:
string
=
''
;
comments
:
Comment
[]
=
[];
}
src/app/class/game-context/game-context.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
export
class
GameContext
{
univers
:
string
=
''
;
support
:
string
=
''
;
duration
:
string
=
''
;
intrigue
:
string
=
''
;
other
:
string
=
''
;
comments
:
Comment
[]
=
[];
}
src/app/class/game-educationnal-objective/game-educationnal-objective.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
export
class
GameEducationnalObjective
{
objective
:
string
=
''
;
comments
:
Comment
[]
=
[];
}
src/app/class/mission-context/mission-context.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
export
class
MissionContext
{
duration
:
string
=
''
;
intrigue
:
string
=
''
;
communication
=
''
;
various
:
string
=
''
;
comments
:
Comment
[]
=
[];
}
src/app/class/mission/mission.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
import
{
EducationnalObjective
}
from
"../educationnal-objective/educationnal-objective"
;
import
{
MissionContext
}
from
"../mission-context/mission-context"
;
import
{
Role
}
from
"../role/role"
;
import
{
Step
}
from
"../step/step"
;
export
class
Mission
{
educationnalObjective
:
EducationnalObjective
=
new
EducationnalObjective
();
context
:
MissionContext
=
new
MissionContext
();
roles
:
Role
[]
=
[
new
Role
(),
new
Role
()];
chronologie
:
Step
[]
=
[
new
Step
()];
}
src/app/class/repeat/repeat.spec.ts
0 → 100644
View file @
aaf0e810
import
{
Repeat
}
from
'./repeat'
;
describe
(
'Repeat'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Repeat
()).
toBeTruthy
();
});
});
src/app/class/repeat/repeat.ts
0 → 100644
View file @
aaf0e810
export
class
Repeat
{
iteration
:
number
=
0
;
while
:
string
=
''
;
}
src/app/class/ressource/ressource.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
export
class
Ressource
{
name
:
string
=
''
;
number
:
string
=
''
;
type
:
string
=
''
;
}
src/app/class/rewards/character-reward/character-reward.spec.ts
0 → 100644
View file @
aaf0e810
import
{
CharacterReward
}
from
'./character-reward'
;
describe
(
'CharacterReward'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
CharacterReward
()).
toBeTruthy
();
});
});
src/app/class/rewards/character-reward/character-reward.ts
0 → 100644
View file @
aaf0e810
import
{
Character
}
from
"../../character/character"
;
import
{
Reward
}
from
"../reward"
;
export
class
CharacterReward
implements
Reward
{
character
!
:
Character
;
}
src/app/class/rewards/objective-reward/objective-reward.spec.ts
0 → 100644
View file @
aaf0e810
import
{
ObjectiveReward
}
from
'./objective-reward'
;
describe
(
'ObjectiveReward'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
ObjectiveReward
()).
toBeTruthy
();
});
});
src/app/class/rewards/objective-reward/objective-reward.ts
0 → 100644
View file @
aaf0e810
import
{
Reward
}
from
"../reward"
;
export
class
ObjectiveReward
implements
Reward
{
name
:
string
=
''
;
}
src/app/class/rewards/objects-reward/objects-reward.spec.ts
0 → 100644
View file @
aaf0e810
import
{
ObjectsReward
}
from
'./objects-reward'
;
describe
(
'ObjectsReward'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
ObjectsReward
()).
toBeTruthy
();
});
});
src/app/class/rewards/objects-reward/objects-reward.ts
0 → 100644
View file @
aaf0e810
import
{
Ressource
}
from
"../../ressource/ressource"
;
import
{
Reward
}
from
"../reward"
;
export
class
ObjectsReward
implements
Reward
{
objects
:
Ressource
[]
=
[
new
Ressource
()];
}
src/app/class/rewards/quest-reward/quest-reward.spec.ts
0 → 100644
View file @
aaf0e810
import
{
QuestReward
}
from
'./quest-reward'
;
describe
(
'QuestReward'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
QuestReward
()).
toBeTruthy
();
});
});
src/app/class/rewards/quest-reward/quest-reward.ts
0 → 100644
View file @
aaf0e810
import
{
Role
}
from
"../../role/role"
;
import
{
Reward
}
from
"../reward"
;
export
class
QuestReward
implements
Reward
{
quest
!
:
Role
;
}
src/app/class/rewards/reward.ts
0 → 100644
View file @
aaf0e810
export
interface
Reward
{
}
src/app/class/rewards/skill-reward/skill-reward.spec.ts
0 → 100644
View file @
aaf0e810
import
{
SkillReward
}
from
'./skill-reward'
;
describe
(
'SkillReward'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
SkillReward
()).
toBeTruthy
();
});
});
src/app/class/rewards/skill-reward/skill-reward.ts
0 → 100644
View file @
aaf0e810
import
{
Ressource
}
from
"../../ressource/ressource"
;
import
{
Reward
}
from
"../reward"
;
export
class
SkillReward
implements
Reward
{
skill
!
:
Ressource
;
}
src/app/class/role-occurrence/role-occurrence.spec.ts
0 → 100644
View file @
aaf0e810
import
{
RoleOccurrence
}
from
'./role-occurrence'
;
describe
(
'RoleOccurrence'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
RoleOccurrence
()).
toBeTruthy
();
});
});
src/app/class/role-occurrence/role-occurrence.ts
0 → 100644
View file @
aaf0e810
export
class
RoleOccurrence
{
iteration
:
number
=
1
;
min
!
:
number
;
max
!
:
number
;
}
src/app/class/role/role.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
import
{
Step
}
from
"../step/step"
;
import
{
Task
}
from
"../task/task"
;
import
{
Ressource
}
from
"../ressource/ressource"
;
import
{
SupplementaryRole
}
from
"../supplementary-role/supplementary-role"
;
import
{
Reward
}
from
"../rewards/reward"
;
import
{
RoleOccurrence
}
from
"../role-occurrence/role-occurrence"
;
export
class
Role
{
intitule
:
string
=
''
;
questName
:
string
=
''
;
description
:
string
=
''
;
educationnalObjectives
:
string
[]
=
[
''
];
rewards
:
Reward
[]
=
[];
stuff
:
string
=
''
;
ressources
:
Ressource
[]
=
[];
supplementaryRoles
:
SupplementaryRole
[]
=
[];
comments
:
Comment
[]
=
[];
occurences
:
RoleOccurrence
[]
=
[
new
RoleOccurrence
()]
tasks
:
Task
[][]
=
[
[
new
Task
(
'normal'
)]
]
chronologie
:
Step
[]
=
[];
}
src/app/class/scenario/scenario.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
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"
;
import
{
Ressource
}
from
"../ressource/ressource"
;
export
class
Scenario
{
educationnalObjective
:
GameEducationnalObjective
=
new
GameEducationnalObjective
();
context
:
GameContext
=
new
GameContext
();
missions
:
Mission
[]
=
[
new
Mission
()];
characters
:
Character
[]
=
[];
gameRules
:
string
=
''
;
ressources
:
Ressource
[]
=
[
new
Ressource
()];
}
\ No newline at end of file
src/app/class/step/step.spec.ts
0 → 100644
View file @
aaf0e810
import
{
Step
}
from
'./step'
;
describe
(
'Step'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Step
()).
toBeTruthy
();
});
});
src/app/class/step/step.ts
0 → 100644
View file @
aaf0e810
export
class
Step
{
description
:
string
=
''
;
durarion
:
number
=
1
;
durationUnit
:
string
=
'UT'
;
comments
:
Comment
[]
=
[];
}
src/app/class/supplementary-role/supplementary-role.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
export
class
SupplementaryRole
{
name
:
string
=
''
;
color
:
string
=
''
;
objectives
:
string
=
''
;
skills
:
string
=
''
;
rules
:
string
=
''
;
}
src/app/class/symbol/symbol.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
export
class
Symbol
{
symbol
:
string
=
''
;
color
:
string
=
''
;
}
src/app/class/task/task.spec.ts
0 → 100644
View file @
aaf0e810
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 @
aaf0e810
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
;
//peut être : normal / annexe / event / optionnal / final / repeater
identifier
:
string
=
''
;
symbol
:
Symbol
=
new
Symbol
();
objective
:
string
=
''
;
antecedents
:
Task
[]
=
[];
duration
:
number
=
1
;
durationUnite
:
string
=
'UT'
;
comments
:
Comment
[]
=
[];
character
!
:
Character
;
repeat
:
Repeat
=
new
Repeat
();
supplementaryRole
!
:
SupplementaryRole
;
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