src/signs.h
branchnoai
changeset 9511 f767ad06e86b
parent 6574 e1d1a12faaf7
child 9574 698395509d12
equal deleted inserted replaced
9510:261d33fbabb8 9511:f767ad06e86b
    14 	PlayerByte   owner; // placed by this player. Anyone can delete them though. OWNER_NONE for gray signs from old games.
    14 	PlayerByte   owner; // placed by this player. Anyone can delete them though. OWNER_NONE for gray signs from old games.
    15 
    15 
    16 	SignID       index;
    16 	SignID       index;
    17 };
    17 };
    18 
    18 
       
    19 enum {
       
    20 	INVALID_SIGN = 0xFFFF,
       
    21 };
       
    22 
       
    23 extern SignID _new_sign_id;
       
    24 
    19 DECLARE_OLD_POOL(Sign, Sign, 2, 16000)
    25 DECLARE_OLD_POOL(Sign, Sign, 2, 16000)
    20 
    26 
    21 static inline SignID GetMaxSignIndex()
    27 static inline SignID GetMaxSignIndex()
    22 {
    28 {
    23 	/* TODO - This isn't the real content of the function, but
    29 	/* TODO - This isn't the real content of the function, but
    28 	return GetSignPoolSize() - 1;
    34 	return GetSignPoolSize() - 1;
    29 }
    35 }
    30 
    36 
    31 static inline uint GetNumSigns()
    37 static inline uint GetNumSigns()
    32 {
    38 {
    33 	return GetSignPoolSize();
    39 	extern uint _total_signs;
       
    40 	return _total_signs;
    34 }
    41 }
    35 
    42 
    36 /**
    43 /**
    37  * Check if a Sign really exists.
    44  * Check if a Sign really exists.
    38  */
    45  */