X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcampaign_common.qh;h=25c008d260d12329b2e16aed6dfdf97fdaf0973d;hb=6edeeb916f7c823714f1d9ea64e2a7705de7ef00;hp=a8e61fc4f4378d69b43f936105bf02f11ff1fb12;hpb=0e7ed909bffb4ff21f0c68d163edfc17487e380a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/campaign_common.qh b/qcsrc/common/campaign_common.qh index a8e61fc4f..25c008d26 100644 --- a/qcsrc/common/campaign_common.qh +++ b/qcsrc/common/campaign_common.qh @@ -1,15 +1,18 @@ +#pragma once + #ifndef CAMPAIGN_MAX_ENTRIES #define CAMPAIGN_MAX_ENTRIES 64 #endif // each i-th array element corresponds to the list entry campaign_offset+i -float campaign_entries; -float campaign_offset; +int campaign_entries; +int campaign_offset; string campaign_gametype[CAMPAIGN_MAX_ENTRIES]; string campaign_mapname[CAMPAIGN_MAX_ENTRIES]; float campaign_bots[CAMPAIGN_MAX_ENTRIES]; float campaign_botskill[CAMPAIGN_MAX_ENTRIES]; float campaign_fraglimit[CAMPAIGN_MAX_ENTRIES]; +float campaign_timelimit[CAMPAIGN_MAX_ENTRIES]; string campaign_mutators[CAMPAIGN_MAX_ENTRIES]; string campaign_shortdesc[CAMPAIGN_MAX_ENTRIES]; string campaign_longdesc[CAMPAIGN_MAX_ENTRIES]; @@ -26,4 +29,4 @@ void CampaignFile_Unload(); // Sets up the campaign for the n-th array item (meaning: campaign_offset+nth // level) using localcmd() -void CampaignSetup(float n); +void CampaignSetup(int n);