No message. 83 files changed.

This commit is contained in:
Vortrex
2021-01-11 10:31:49 -06:00
parent ce8579364c
commit 7f2ee0c8d5
83 changed files with 1544 additions and 746 deletions

View File

@@ -15,6 +15,7 @@ const AG_LABEL_HOUSE = 3;
const AG_LABEL_EXIT = 3;
// Log Levels
const LOG_ALL = -1;
const LOG_NONE = 0;
const LOG_INFO = 1;
const LOG_WARN = 2;

View File

@@ -111,13 +111,17 @@ function getDistance(vec1, vec2) {
// ---------------------------------------------------------------------------
function isConsole(client) {
if(client == null) {
return false;
}
return client.console;
}
// ---------------------------------------------------------------------------
function logToConsole(tempLogLevel, text) {
if(logLevel & tempLogLevel) {
if(logLevel & tempLogLevel || logLevel == LOG_ALL) {
if(tempLogLevel == LOG_ERROR) {
console.error(text);
} else if(tempLogLevel == LOG_WARN) {
@@ -132,4 +136,10 @@ function logToConsole(tempLogLevel, text) {
return false;
}
// ---------------------------------------------------------------------------
function isSamePlayer(client1, client2) {
return (client1 == client2);
}
// ---------------------------------------------------------------------------