Commit 3bb32b78 authored by Razer's avatar Razer
Browse files

Updated constants.hpp

parent b3c8d7cd
/* constants.hpp
*
* Copyright 2016-2018 Desolation Redux
* Copyright 2016-2020 Desolation Redux
*
* Author: Legodev <legodevgit@mailbox.org>
*
......@@ -18,7 +18,7 @@
#ifndef SOURCE_CONSTANTS_HPP_
#define SOURCE_CONSTANTS_HPP_
#define DLLVERSIONSTRING "[1,0,5,1]"
#define DLLVERSIONSTRING "[1,0,5,9999]"
#define CONFIG_FILE_NAME "libredex.cfg"
#define DB_DEBUG true
......@@ -31,6 +31,13 @@
#define QUIET_MAGIC 4
#define ASYNC_MAGIC 0
#define SYNC_MAGIC 1
#define CALLBACK_MAGIC 2
/*
* Magic Names to identify callback origin
*/
#define PROTOCOL_CALLBACK_NAME_CALLBACK "libredex_callback"
#define PROTOCOL_CALLBACK_NAME_CALLIN "libredex_callin"
/*
* Magic Strings for the Arma 3 Call Extension API
......@@ -45,6 +52,8 @@
#define PROTOCOL_LIBARY_FUNCTION_RECEIVE_MESSAGE "rcvmsg"
#define PROTOCOL_LIBARY_FUNCTION_CHECK_MESSAGE_STATE "chkmsg"
#define PROTOCOL_LIBARY_FUNCTION_CHECK_VERSION "version"
#define PROTOCOL_LIBARY_FUNCTION_CHECK_VERSION_ASYNC "aversion"
#define PROTOCOL_LIBARY_FUNCTION_CHECK_VERSION_CALLBACK "cversion"
// File IO Call Functions
#define PROTOCOL_IOCALL_FUNCTION_READ_FILE "readFile"
......@@ -63,6 +72,11 @@
#define PROTOCOL_RANDOM_FUNCTION_GET_DISCRETE_LIST "getDiscreteItemList"
#define PROTOCOL_RANDOM_FUNCTION_GET_RANDOMNUMBER_LIST "getRandomNumberList"
// Rest Call Functions
#define PROTOCOL_REST_FUNCTION_STARTSERVER "startrestserver"
#define PROTOCOL_REST_ARGUMENT_ADDRESS "restaddress"
#define PROTOCOL_REST_ARGUMENT_PORT "restport"
// Database Call Functions
#define PROTOCOL_DBCALL_FUNCTION_EXECUTE_INIT_DB "initdb"
#define PROTOCOL_DBCALL_FUNCTION_EXECUTE_TERMINATE_DB "termdb"
......@@ -74,6 +88,8 @@
#define PROTOCOL_DBCALL_FUNCTION_RETURN_ASYNC_MSG "rcvasmsg"
#define PROTOCOL_DBCALL_FUNCTION_RETURN_ASYNC_SATE "chkasmsg"
#define PROTOCOL_DBCALL_FUNCTION_SET_WORLD_VARIABLES "setWorldVariables"
#define PROTOCOL_DBCALL_FUNCTION_GET_WORLD_VARIABLES "getWorldVariables"
#define PROTOCOL_DBCALL_FUNCTION_SET_WORLD_STATE "setWorldState"
#define PROTOCOL_DBCALL_FUNCTION_GET_LINKED_WORLDS "getLinkedWorlds"
#define PROTOCOL_DBCALL_FUNCTION_LOAD_PLAYER "loadPlayer"
......@@ -88,6 +104,7 @@
#define PROTOCOL_DBCALL_FUNCTION_AV_CHARS "loadAvChars"
#define PROTOCOL_DBCALL_FUNCTION_LINK_CHARS "linkChars"
#define PROTOCOL_DBCALL_FUNCTION_LOAD_CHAR "loadChar"
#define PROTOCOL_DBCALL_FUNCTION_LOAD_CHAR_CALLBACK "cloadChar"
#define PROTOCOL_DBCALL_FUNCTION_CREATE_CHAR "createChar"
#define PROTOCOL_DBCALL_FUNCTION_UPDATE_CHAR "updateChar"
#define PROTOCOL_DBCALL_FUNCTION_QUIET_UPDATE_CHAR "qupdateChar"
......@@ -101,6 +118,7 @@
#define PROTOCOL_DBCALL_FUNCTION_QUIET_UPDATE_OBJECT "qupdateObject"
#define PROTOCOL_DBCALL_FUNCTION_DECLARE_OBJECT_DEATH "killObject"
#define PROTOCOL_DBCALL_FUNCTION_DUMP_OBJECTS "dumpObjects"
#define PROTOCOL_DBCALL_FUNCTION_DUMP_OBJECTS_CALLBACK "cdumpObjects"
#define PROTOCOL_DBCALL_FUNCTION_CREATE_OBJECT_WORLD_LINK "createObjectWorldLink"
#define PROTOCOL_DBCALL_FUNCTION_UPDATE_OBJECT_WORLD_LINK "updateObjectWorldLink"
......@@ -120,6 +138,7 @@
#define PROTOCOL_DBCALL_ARGUMENT_ATTACKER "attackeruuid"
#define PROTOCOL_DBCALL_ARGUMENT_BACKPACK "backpack"
#define PROTOCOL_DBCALL_ARGUMENT_RESERVEDTWO "reservedtwo"
#define PROTOCOL_DBCALL_ARGUMENT_CALLBACK_FUNCTION "fndbcallback"
#define PROTOCOL_DBCALL_ARGUMENT_CHARUUID "charuuid"
#define PROTOCOL_DBCALL_ARGUMENT_CLAN_UUID "clanuuid"
#define PROTOCOL_DBCALL_ARGUMENT_CLANNAME "clanname"
......@@ -180,17 +199,13 @@
#define PROTOCOL_DBCALL_ARGUMENT_OFFSET "offset"
#define PROTOCOL_DBCALL_ARGUMENT_LIMIT "limit"
// Error codes
#define PROTOCOL_MESSAGE_ERROR_NOTMEMBER "notMember"
#define PROTOCOL_MESSAGE_ERROR_NAMETAKEN "nameTaken"
#define PROTOCOL_MESSAGE_ERROR_NOTFOUND "notFound"
// Message Types
#define PROTOCOL_MESSAGE_TYPE_ERROR "ERROR"
#define PROTOCOL_MESSAGE_TYPE_MESSAGE "MSG"
#define PROTOCOL_MESSAGE_TYPE_MULTIPART "MPMSG"
#define PROTOCOL_MESSAGE_TYPE_NOT_READY "RSN"
#define PROTOCOL_MESSAGE_TYPE_ASYNC "ASYNC"
#define PROTOCOL_MESSAGE_TYPE_CALLBACK "CALLBACK"
#define PROTOCOL_MESSAGE_TYPE_QUIET "QUIET"
// Complete Messages
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment