Created
September 7, 2020 22:36
-
-
Save IntelOrca/b28e833990bed120c6c3bcb103315975 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="C:/Users/Ted/Documents/GitHub/openrct2/distribution/openrct2.d.ts" /> | |
var main = function () { | |
context.subscribe('action.query', function(e) { | |
console.log("Query Action:"); | |
if (!e.isClientOnly && e.type != 3 && e.type != 4) | |
console.log(e); | |
}); | |
context.subscribe('action.execute', function(e) { | |
console.log("Execute Action:"); | |
if (!e.isClientOnly && e.type != 3 && e.type != 4) | |
console.log(e); | |
}); | |
}; | |
registerPlugin({ | |
name: 'Action Hook', | |
version: '1.0', | |
authors: ['Ted'], | |
type: 'local', | |
main: main | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment