plugins/include/mapchooser.inc
branchrefac-jit
changeset 2284 026da5437111
parent 2192 7602d7fb60d9
child 2288 15c77b21589a
     1.1 --- a/plugins/include/mapchooser.inc	Fri Jul 11 06:51:21 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,80 +0,0 @@
     1.4 -#if defined _mapchooser_included_
     1.5 -  #endinput
     1.6 -#endif
     1.7 -#define _mapchooser_included_
     1.8 -
     1.9 -enum NominateResult
    1.10 -{
    1.11 -	Nominate_Added,			/** The map was added to the nominate list */
    1.12 -	Nominate_Replaced,		/** A clients existing nomination was replaced */
    1.13 -	Nominate_AlreadyInVote,	/** Specified map was already in the vote */
    1.14 -	Nominate_InvalidMap,	/** Mapname specifed wasn't a valid map */
    1.15 -	Nominate_VoteFull,		/** This will only occur if force was set to false */
    1.16 -};
    1.17 -
    1.18 -enum MapChange
    1.19 -{
    1.20 -	MapChange_Instant,		/** Change map as soon as the voting results have come in */
    1.21 -	MapChange_RoundEnd,		/** Change map at the end of the round */
    1.22 -	MapChange_MapEnd,		/** Change the sm_nextmap cvar */
    1.23 -};
    1.24 -
    1.25 -/**
    1.26 - * Attempt to add a map to the mapchooser map list.
    1.27 - *
    1.28 - * @param map		Map to add.
    1.29 - * @param force		Should we force the map in even if it requires overwriting an existing nomination?
    1.30 - * @param owner		Client index of the nominater. If the client disconnects the nomination will be removed. Use 0 for constant nominations
    1.31 - * @return			Nominate Result of the outcome
    1.32 - */
    1.33 -native NominateResult:NominateMap(const String:map[], bool:force, owner);
    1.34 -
    1.35 -/**
    1.36 - * Gets the current list of excluded maps.
    1.37 - *
    1.38 - * @param array		An ADT array handle to add the map strings to. Needs to be 
    1.39 - * @noreturn
    1.40 - */
    1.41 -native GetExcludeMapList(Handle:array);
    1.42 -
    1.43 -/**
    1.44 - * Checks if MapChooser will allow a vote
    1.45 - *
    1.46 - * @return			True if a vote can be held, or false if mapchooser is already holding a vote.
    1.47 - */
    1.48 -native bool:CanMapChooserStartVote();
    1.49 -
    1.50 -/**
    1.51 - * Initiates a MapChooser map vote
    1.52 - *
    1.53 - * Note: If no input array is specified mapchooser will use its internal list. This includes
    1.54 - * any nominations and excluded maps (as per mapchoosers convars).
    1.55 - *
    1.56 - * @param when			MapChange consant of when the resulting mapchange should occur.
    1.57 - * @param inputarray	ADT array list of maps to add to the vote.
    1.58 - */
    1.59 -native InitiateMapChooserVote(MapChange:when, Handle:inputarray=INVALID_HANDLE);
    1.60 -
    1.61 -
    1.62 -/**
    1.63 - * A horribly named native that checks if MapChooser's end of map vote has completed.
    1.64 - */
    1.65 -native bool:HasEndOfMapVoteFinished();
    1.66 -
    1.67 -/**
    1.68 - * Called when mapchooser removes a nomination from its list.
    1.69 - * Nominations cleared on map start will not trigger this forward
    1.70 - */
    1.71 -forward OnNominationRemoved(String:map[], owner);
    1.72 -
    1.73 -
    1.74 -public SharedPlugin:__pl_mapchooser = 
    1.75 -{
    1.76 -	name = "mapchooser",
    1.77 -	file = "mapchooser.smx",
    1.78 -#if defined REQUIRE_PLUGIN
    1.79 -	required = 1,
    1.80 -#else
    1.81 -	required = 0,
    1.82 -#endif
    1.83 -};
    1.84 \ No newline at end of file