Added a couple of useful services to rconservice

This commit is contained in:
Garry Newman
2016-02-29 13:03:23 +00:00
parent a5a5e107fe
commit 1387e4cb3f
13 changed files with 400 additions and 273 deletions
+17
View File
@@ -0,0 +1,17 @@
app.controller( 'PlayerListController', PlayerListController );
function PlayerListController( $scope, rconService )
{
$scope.Output = new Array();
$scope.Refresh = function ()
{
rconService.Request( "playerlist", $scope, function ( msg )
{
$scope.Players = JSON.parse( msg.Message );
});
}
rconService.InstallService( $scope, $scope.Refresh )
}