Interface ICore.IManagedInterface
Represents the managed interface implemented by its unmanaged counterpart.
public interface ICore.IManagedInterface : IUnmanagedInterface
- Inherited Members
Methods
ConnectBot(string, string)
Attempt to connect a new bot to the server.
void ConnectBot(string name, string script)
Parameters
GetConfig()
Gets the server configuration.
IConfig GetConfig()
Returns
- IConfig
Yhe server configuration.
GetEventDispatcher()
Gets the core event dispatcher.
IEventDispatcher<ICoreEventHandler> GetEventDispatcher()
Returns
- IEventDispatcher<ICoreEventHandler>
The core event dispatcher.
GetGravity()
Gets the server gravity.
float GetGravity()
Returns
- float
The server gravity.
GetNetworkBitStreamVersion()
Get the version of the NetworkBitStream class the core was built with.
int GetNetworkBitStreamVersion()
Returns
- int
The version of the NetworkBitStream class.
GetNetworks()
Gets a list of available networks.
FlatPtrHashSet<INetwork> GetNetworks()
Returns
- FlatPtrHashSet<INetwork>
A list of available networks.
GetPlayers()
Gets the player pool
IPlayerPool GetPlayers()
Returns
- IPlayerPool
The player pool.
GetTickCount()
Gets the tick count.
uint GetTickCount()
Returns
- uint
The tick count.
GetVersion()
Gets the version of the open.mp server.
SemanticVersion GetVersion()
Returns
- SemanticVersion
The version of the open.mp server package.
GetVersionHash()
Gets the version hash of the open.mp server.
string GetVersionHash()
Returns
- string
The version hash.
GetWeaponName(PlayerWeapon)
Get the name of a weapon.
string GetWeaponName(PlayerWeapon weapon)
Parameters
weaponPlayerWeaponThe weapon.
Returns
- string
The name of the weapon.
ReloadAll()
Create all entities that appear on GM start.
void ReloadAll()
ResetAll()
Clear all entities that vanish on GM exit.
void ResetAll()
SetData(SettableCoreDataType, string)
Sets string data during runtime.
void SetData(SettableCoreDataType type, string data)
Parameters
typeSettableCoreDataTypeThe type of the data.
datastringThe data value.
SetGravity(float)
Sets the server gravity.
void SetGravity(float gravity)
Parameters
gravityfloatThe server gravity.
SetThreadSleep(Microseconds)
Sets the sleep value for each main thread update cycle.
void SetThreadSleep(Microseconds value)
Parameters
valueMicrosecondsThe sleep duration.
SetWeather(int)
Sets the server weather.
void SetWeather(int weather)
Parameters
weatherintThe server weather.
SetWorldTime(TimeSpan)
Sets the server world time.
void SetWorldTime(TimeSpan time)
Parameters
timeTimeSpanThe world time, truncated to whole hours on the native side.
TickRate()
Gets the ticks per second.
uint TickRate()
Returns
- uint
Ticks per second.
UseDynTicks(bool)
Toggle dynamic ticks instead of static duration sleep.
void UseDynTicks(bool enable)
Parameters
UseStuntBonuses(bool)
Toggles server stunt bonuses.
void UseStuntBonuses(bool enable)