Skip to content

Commit 52b2951

Browse files
committed
feat: add campaign manager entity
1 parent e9e98db commit 52b2951

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@PointClass base(BaseEntity)
2+
appliesto(P2CE)
3+
iconsprite("editor/info_campaign_manager.vmt")
4+
= info_campaign_manager: "Management entity for campaign/workshop maps. Used to transition to other maps or change campaign state."
5+
[
6+
7+
// Control Functions
8+
input PreviousMap(void) : "Immediately load the previous map in the campaign script."
9+
input NextMap(void) : "Immediately load the next map in the campaign script."
10+
input MarkCampaignComplete(void) : "Mark the campaign as completed. Will unlock all chapters."
11+
input ExitGame(void) : "Trigger the evaluation screen where a player can vote on your campaign/map."
12+
13+
// TODO: make campaign system handle non-linear stuff
14+
// better before implementing this!
15+
// ------------------------------------------------------
16+
// Getter Functions
17+
// input GetChapterProgress(void) : ""
18+
// input GetCampaignProgress(void) : ""
19+
// Setter Functions
20+
// input SetChapterLockState(string) : ""
21+
// Outputs
22+
// output OnGetChapterProgress(int) : ""
23+
// output OnGetCampaignProgress(int) : ""
24+
]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Sprite
2+
{
3+
$baseTexture "editor/info_campaign_manager"
4+
$spriteorientation "vp_parallel"
5+
$spriteorigin "[ 0.50 0.50 ]"
6+
$spriterendermode 2
7+
$no_fullbright 1
8+
}
5.58 KB
Binary file not shown.

0 commit comments

Comments
 (0)