mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
implement bus mode for game interface to allow files for bus data transfer
This commit is contained in:
@ -28,7 +28,12 @@ Setup()
|
||||
level.overrideMethods[level.commonFunctions.backupRestoreClientKillStreakData] = ::BackupRestoreClientKillStreakData;
|
||||
level.overrideMethods[level.commonFunctions.waitTillAnyTimeout] = ::WaitTillAnyTimeout;
|
||||
level.overrideMethods[level.commonFunctions.waittillNotifyOrTimeout] = ::WaitillNotifyOrTimeoutWrapper;
|
||||
|
||||
|
||||
level.overrideMethods[level.commonFunctions.getInboundData] = ::GetInboundData;
|
||||
level.overrideMethods[level.commonFunctions.getOutboundData] = ::GetOutboundData;
|
||||
level.overrideMethods[level.commonFunctions.setInboundData] = ::SetInboundData;
|
||||
level.overrideMethods[level.commonFunctions.setOutboundData] = ::SetOutboundData;
|
||||
|
||||
RegisterClientCommands();
|
||||
|
||||
level notify( level.notifyTypes.gameFunctionsInitialized );
|
||||
@ -97,6 +102,26 @@ WaitForClientEvents()
|
||||
}
|
||||
}
|
||||
|
||||
GetInboundData()
|
||||
{
|
||||
return FileRead( level.eventBus.inVar);
|
||||
}
|
||||
|
||||
GetOutboundData()
|
||||
{
|
||||
return FileRead( level.eventBus.outVar );
|
||||
}
|
||||
|
||||
SetInboundData( data )
|
||||
{
|
||||
FileWrite( level.eventBus.inVar, data, "write" );
|
||||
}
|
||||
|
||||
SetOutboundData( data )
|
||||
{
|
||||
FileWrite(level.eventBus.outVar, data, "write" );
|
||||
}
|
||||
|
||||
GetMaxClients()
|
||||
{
|
||||
return level.maxClients;
|
||||
|
Reference in New Issue
Block a user