mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Merge pull request #16978 from AffectedArc07/multi-instance-cleanup
Multi instance cleanup
This commit is contained in:
@@ -625,7 +625,7 @@ CREATE TABLE `pai_saves` (
|
||||
CREATE TABLE `instance_data_cache` (
|
||||
`server_id` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
|
||||
`key_name` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
|
||||
`key_value` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
|
||||
`key_value` VARCHAR(12345) NOT NULL COLLATE 'utf8mb4_general_ci',
|
||||
`last_updated` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`server_id`, `key_name`) USING HASH
|
||||
) COLLATE='utf8mb4_general_ci' ENGINE=MEMORY;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
CREATE TABLE `instance_data_cache` (
|
||||
`server_id` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
|
||||
`key_name` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
|
||||
`key_value` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
|
||||
`key_value` VARCHAR(12345) NOT NULL COLLATE 'utf8mb4_general_ci',
|
||||
`last_updated` TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
PRIMARY KEY (`server_id`, `key_name`) USING HASH
|
||||
) COLLATE='utf8mb4_general_ci' ENGINE=MEMORY;
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
/**
|
||||
* # Peer server
|
||||
*
|
||||
* This datum is essentially a model class to represent another instance of Paracode running
|
||||
*
|
||||
* It contains communications passes, an internal IP to communicate to, an external IP for players to connect to
|
||||
*
|
||||
*/
|
||||
/datum/peer_server
|
||||
// The following options will be loaded from configuration
|
||||
/// Peer server internal IP, used for communications
|
||||
var/internal_ip
|
||||
/// Port of the server
|
||||
var/server_port = 0
|
||||
/// Comms key for this server
|
||||
var/commskey
|
||||
|
||||
// The following options will be pulled from the peer at runtime
|
||||
/// Peer server external IP, used for routing players around
|
||||
var/external_ip
|
||||
/// Peer server ID, used internally. Pulled from the peer on startup.
|
||||
var/server_id
|
||||
/// Peer server name, presented to players. Pulled from the peer on startup.
|
||||
var/server_name
|
||||
/// Have we done initial data discovery yet?
|
||||
var/discovered = FALSE
|
||||
/// Is the peer server online?
|
||||
var/online = FALSE
|
||||
/// Playercount of the peer server on last ping
|
||||
var/playercount
|
||||
/// Last world.time that an operation was attempted
|
||||
var/last_operation_time = 0
|
||||
@@ -21,7 +21,6 @@
|
||||
# - gamemode_configuration
|
||||
# - gateway_configuration
|
||||
# - general_configuration
|
||||
# - instancing_configuration
|
||||
# - ipintel_configuration
|
||||
# - job_configuration
|
||||
# - logging_configuration
|
||||
|
||||
@@ -294,7 +294,6 @@
|
||||
#include "code\datums\mind.dm"
|
||||
#include "code\datums\mixed.dm"
|
||||
#include "code\datums\mutable_appearance.dm"
|
||||
#include "code\datums\peer_server.dm"
|
||||
#include "code\datums\periodic_news.dm"
|
||||
#include "code\datums\pipe_datums.dm"
|
||||
#include "code\datums\progressbar.dm"
|
||||
|
||||
Reference in New Issue
Block a user