2015-09-30 02:56:11 +02:00
|
|
|
#ifndef _MISC_FUNCTIONS_HPP_
|
|
|
|
#define _MISC_FUNCTIONS_HPP_
|
|
|
|
|
2016-02-20 23:25:00 +01:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
#include "SqBase.hpp"
|
|
|
|
|
2015-09-30 02:56:11 +02:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
namespace SqMod {
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2016-02-20 23:25:00 +01:00
|
|
|
CCStr GetKeyCodeName(Uint8 keycode);
|
|
|
|
void SetKeyCodeName(Uint8 keycode, CCStr name);
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
Uint32 GetPluginVersion();
|
|
|
|
CCStr GetPluginVersionStr();
|
|
|
|
CCStr GetPluginName();
|
|
|
|
CCStr GetPluginAuthor();
|
|
|
|
Int32 GetPluginID();
|
|
|
|
Uint32 GetNumberOfPlugins();
|
|
|
|
Int32 FindPlugin(CCStr name);
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
Uint32 GetServerVersion();
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
Uint32 GetServerPort();
|
|
|
|
Uint32 GetServerFlags();
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
void SetServerName(CCStr name);
|
|
|
|
CCStr GetServerName();
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
ULongInt GetTime();
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
void SendCustomCommand(Uint32 type, CCStr cmd);
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
void SetMaxPlayers(Int32 max);
|
|
|
|
Int32 GetMaxPlayers(void);
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
void SetServerPassword(CCStr passwd);
|
|
|
|
CCStr GetServerPassword();
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
void SetGameModeText(CCStr text);
|
|
|
|
CCStr GetGameModeText();
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
Int32 PlaySound(Int32 world, Int32 sound, const Vector3 & pos);
|
|
|
|
Int32 PlaySoundEx(Int32 world, Int32 sound, Float32 x, Float32 y, Float32 z);
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
Int32 AddRadioStream(Int32 id, CCStr name, CCStr url, bool listed);
|
|
|
|
Int32 RemoveRadioStream(Int32 id);
|
2015-09-30 02:56:11 +02:00
|
|
|
|
|
|
|
} // Namespace:: SqMod
|
|
|
|
|
2016-02-20 23:25:00 +01:00
|
|
|
#endif // _MISC_FUNCTIONS_HPP_
|