Out with MagicOnion, in with LiteNetLib

Removed MagicOnion
Added LiteNetLib
Created client and server abstractions
Fixed serialization bugs
This commit is contained in:
hyperion51 2020-03-24 14:36:22 +00:00
commit e96146b7bb
869 changed files with 59401 additions and 16812 deletions

View file

@ -0,0 +1,23 @@
//AUTOGENERATED, DO NOTMODIFY.
//Do not edit this file directly.
#pragma warning disable 1591
// ReSharper disable CheckNamespace
namespace RethinkDb.Driver.Proto {
public enum DatumType {
R_NULL = 1,
R_BOOL = 2,
R_NUM = 3,
R_STR = 4,
R_ARRAY = 5,
R_OBJECT = 6,
R_JSON = 7,
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: bdcf1058ce14b834cae326784d972e3b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,24 @@
//AUTOGENERATED, DO NOTMODIFY.
//Do not edit this file directly.
#pragma warning disable 1591
// ReSharper disable CheckNamespace
namespace RethinkDb.Driver.Proto {
public enum ErrorType {
INTERNAL = 1000000,
RESOURCE_LIMIT = 2000000,
QUERY_LOGIC = 3000000,
NON_EXISTENCE = 3100000,
OP_FAILED = 4100000,
OP_INDETERMINATE = 4200000,
USER = 5000000,
PERMISSION_ERROR = 6000000,
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 07f4fd0911724e84cb53f7531414dbe4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,18 @@
//AUTOGENERATED, DO NOTMODIFY.
//Do not edit this file directly.
#pragma warning disable 1591
// ReSharper disable CheckNamespace
namespace RethinkDb.Driver.Proto {
public enum FrameType {
POS = 1,
OPT = 2,
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7e4448e3d9e402343821d3a11ec1d359
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,18 @@
//AUTOGENERATED, DO NOTMODIFY.
//Do not edit this file directly.
#pragma warning disable 1591
// ReSharper disable CheckNamespace
namespace RethinkDb.Driver.Proto {
public enum Protocol {
PROTOBUF = 656407617,
JSON = 2120839367,
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d65516c37759bb046bfc3f8605224893
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,21 @@
//AUTOGENERATED, DO NOTMODIFY.
//Do not edit this file directly.
#pragma warning disable 1591
// ReSharper disable CheckNamespace
namespace RethinkDb.Driver.Proto {
public enum QueryType {
START = 1,
CONTINUE = 2,
STOP = 3,
NOREPLY_WAIT = 4,
SERVER_INFO = 5,
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a5f78a55189753f4098165053294b1ef
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,38 @@
//AUTOGENERATED, DO NOTMODIFY.
//Do not edit this file directly.
#pragma warning disable 1591
// ReSharper disable CheckNamespace
namespace RethinkDb.Driver.Proto {
public enum ResponseNote {
SEQUENCE_FEED = 1,
ATOM_FEED = 2,
ORDER_BY_LIMIT_FEED = 3,
UNIONED_FEED = 4,
INCLUDES_STATES = 5,
}
public static class ExtensionsForResponseNote {
public static bool IsFeed(this ResponseNote note){
switch( note ){
case ResponseNote.SEQUENCE_FEED:
return true;
case ResponseNote.ATOM_FEED:
return true;
case ResponseNote.ORDER_BY_LIMIT_FEED:
return true;
case ResponseNote.UNIONED_FEED:
return true;
default:
return false;
}
}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 29bd5d01a62b29048bfa5443a1c54a41
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,39 @@
//AUTOGENERATED, DO NOTMODIFY.
//Do not edit this file directly.
#pragma warning disable 1591
// ReSharper disable CheckNamespace
namespace RethinkDb.Driver.Proto {
public enum ResponseType {
SUCCESS_ATOM = 1,
SUCCESS_SEQUENCE = 2,
SUCCESS_PARTIAL = 3,
WAIT_COMPLETE = 4,
SERVER_INFO = 5,
CLIENT_ERROR = 16,
COMPILE_ERROR = 17,
RUNTIME_ERROR = 18,
}
public static class ExtensionsForResponseType {
public static bool IsError(this ResponseType rtype){
switch( rtype ){
case ResponseType.CLIENT_ERROR:
return true;
case ResponseType.COMPILE_ERROR:
return true;
case ResponseType.RUNTIME_ERROR:
return true;
default:
return false;
}
}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4f4b0e56dd6834344aa19789c2ffd21c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,194 @@
//AUTOGENERATED, DO NOTMODIFY.
//Do not edit this file directly.
#pragma warning disable 1591
// ReSharper disable CheckNamespace
namespace RethinkDb.Driver.Proto {
public enum TermType {
DATUM = 1,
MAKE_ARRAY = 2,
MAKE_OBJ = 3,
VAR = 10,
JAVASCRIPT = 11,
UUID = 169,
HTTP = 153,
ERROR = 12,
IMPLICIT_VAR = 13,
DB = 14,
TABLE = 15,
GET = 16,
GET_ALL = 78,
EQ = 17,
NE = 18,
LT = 19,
LE = 20,
GT = 21,
GE = 22,
NOT = 23,
ADD = 24,
SUB = 25,
MUL = 26,
DIV = 27,
MOD = 28,
FLOOR = 183,
CEIL = 184,
ROUND = 185,
APPEND = 29,
PREPEND = 80,
DIFFERENCE = 95,
SET_INSERT = 88,
SET_INTERSECTION = 89,
SET_UNION = 90,
SET_DIFFERENCE = 91,
SLICE = 30,
SKIP = 70,
LIMIT = 71,
OFFSETS_OF = 87,
CONTAINS = 93,
GET_FIELD = 31,
KEYS = 94,
VALUES = 186,
OBJECT = 143,
HAS_FIELDS = 32,
WITH_FIELDS = 96,
PLUCK = 33,
WITHOUT = 34,
MERGE = 35,
BETWEEN_DEPRECATED = 36,
BETWEEN = 182,
REDUCE = 37,
MAP = 38,
FOLD = 187,
FILTER = 39,
CONCAT_MAP = 40,
ORDER_BY = 41,
DISTINCT = 42,
COUNT = 43,
IS_EMPTY = 86,
UNION = 44,
NTH = 45,
BRACKET = 170,
INNER_JOIN = 48,
OUTER_JOIN = 49,
EQ_JOIN = 50,
ZIP = 72,
RANGE = 173,
INSERT_AT = 82,
DELETE_AT = 83,
CHANGE_AT = 84,
SPLICE_AT = 85,
COERCE_TO = 51,
TYPE_OF = 52,
UPDATE = 53,
DELETE = 54,
REPLACE = 55,
INSERT = 56,
DB_CREATE = 57,
DB_DROP = 58,
DB_LIST = 59,
TABLE_CREATE = 60,
TABLE_DROP = 61,
TABLE_LIST = 62,
CONFIG = 174,
STATUS = 175,
WAIT = 177,
RECONFIGURE = 176,
REBALANCE = 179,
SYNC = 138,
GRANT = 188,
INDEX_CREATE = 75,
INDEX_DROP = 76,
INDEX_LIST = 77,
INDEX_STATUS = 139,
INDEX_WAIT = 140,
INDEX_RENAME = 156,
FUNCALL = 64,
BRANCH = 65,
OR = 66,
AND = 67,
FOR_EACH = 68,
FUNC = 69,
ASC = 73,
DESC = 74,
INFO = 79,
MATCH = 97,
UPCASE = 141,
DOWNCASE = 142,
SAMPLE = 81,
DEFAULT = 92,
JSON = 98,
TO_JSON_STRING = 172,
ISO8601 = 99,
TO_ISO8601 = 100,
EPOCH_TIME = 101,
TO_EPOCH_TIME = 102,
NOW = 103,
IN_TIMEZONE = 104,
DURING = 105,
DATE = 106,
TIME_OF_DAY = 126,
TIMEZONE = 127,
YEAR = 128,
MONTH = 129,
DAY = 130,
DAY_OF_WEEK = 131,
DAY_OF_YEAR = 132,
HOURS = 133,
MINUTES = 134,
SECONDS = 135,
TIME = 136,
MONDAY = 107,
TUESDAY = 108,
WEDNESDAY = 109,
THURSDAY = 110,
FRIDAY = 111,
SATURDAY = 112,
SUNDAY = 113,
JANUARY = 114,
FEBRUARY = 115,
MARCH = 116,
APRIL = 117,
MAY = 118,
JUNE = 119,
JULY = 120,
AUGUST = 121,
SEPTEMBER = 122,
OCTOBER = 123,
NOVEMBER = 124,
DECEMBER = 125,
LITERAL = 137,
GROUP = 144,
SUM = 145,
AVG = 146,
MIN = 147,
MAX = 148,
SPLIT = 149,
UNGROUP = 150,
RANDOM = 151,
CHANGES = 152,
ARGS = 154,
BINARY = 155,
GEOJSON = 157,
TO_GEOJSON = 158,
POINT = 159,
LINE = 160,
POLYGON = 161,
DISTANCE = 162,
INTERSECTS = 163,
INCLUDES = 164,
CIRCLE = 165,
GET_INTERSECTING = 166,
FILL = 167,
GET_NEAREST = 168,
POLYGON_SUB = 171,
MINVAL = 180,
MAXVAL = 181,
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 134ea8c5132d03247bf99dc5204a5cdd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,21 @@
//AUTOGENERATED, DO NOTMODIFY.
//Do not edit this file directly.
#pragma warning disable 1591
// ReSharper disable CheckNamespace
namespace RethinkDb.Driver.Proto {
public enum Version {
V0_1 = 1063369270,
V0_2 = 1915781601,
V0_3 = 1601562686,
V0_4 = 1074539808,
V1_0 = 885177795,
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d4e71351150da594e9a554de5f4f045b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: