|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
|
|
|
|
// Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
|
|
|
|
// Copyright (C) 2010 Winch Gate Property Limited
|
|
|
|
// Copyright (C) 2010 Winch Gate Property Limited
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -34,13 +35,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "nel/misc/entity_id.h"
|
|
|
|
#include "nel/misc/entity_id.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "game_share/r2_basic_types.h"
|
|
|
|
#include "r2_share/r2_basic_types.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "game_share/r2_share_itf.h"
|
|
|
|
#include "r2_share/r2_share_itf.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "nel/net/login_cookie.h"
|
|
|
|
#include "nel/net/login_cookie.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "game_share/welcome_service_itf.h"
|
|
|
|
#include "../../nelns/welcome_service/welcome_service_itf.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "game_share/character_sync_itf.h"
|
|
|
|
#include "game_share/character_sync_itf.h"
|
|
|
|
|
|
|
|
|
|
|
@ -116,7 +117,8 @@ namespace RSMGR
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
invalid_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -255,7 +257,8 @@ namespace RSMGR
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
invalid_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -400,7 +403,8 @@ namespace RSMGR
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
invalid_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -539,7 +543,8 @@ namespace RSMGR
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
invalid_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -672,7 +677,8 @@ namespace RSMGR
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
invalid_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -805,7 +811,8 @@ namespace RSMGR
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
invalid_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -938,7 +945,8 @@ namespace RSMGR
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
invalid_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1038,7 +1046,8 @@ namespace RSMGR
|
|
|
|
lf_e = 16,
|
|
|
|
lf_e = 16,
|
|
|
|
lf_f = 32,
|
|
|
|
lf_f = 32,
|
|
|
|
|
|
|
|
|
|
|
|
invalid_val,
|
|
|
|
empty_val = 0,
|
|
|
|
|
|
|
|
max_val = ((uint32)lf_f << 1) - 1,
|
|
|
|
|
|
|
|
|
|
|
|
/// Number of enumerated values
|
|
|
|
/// Number of enumerated values
|
|
|
|
nb_enum_items = 6
|
|
|
|
nb_enum_items = 6
|
|
|
@ -1054,11 +1063,11 @@ namespace RSMGR
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(lf_d)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(lf_d)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(lf_e)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(lf_e)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(lf_f)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(lf_f)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(invalid_val)
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
empty_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1067,7 +1076,7 @@ namespace RSMGR
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
TLevelFilterEnum()
|
|
|
|
TLevelFilterEnum()
|
|
|
|
: _Value(invalid_val)
|
|
|
|
: _Value(empty_val)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
TLevelFilterEnum(TValues value)
|
|
|
|
TLevelFilterEnum(TValues value)
|
|
|
@ -1129,8 +1138,6 @@ namespace RSMGR
|
|
|
|
// return true if the actual value of the enum is valid, otherwise false
|
|
|
|
// return true if the actual value of the enum is valid, otherwise false
|
|
|
|
bool isValid()
|
|
|
|
bool isValid()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (_Value == invalid_val)
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// not invalid, check other enum value
|
|
|
|
// not invalid, check other enum value
|
|
|
|
return getConversionTable().isValid(_Value);
|
|
|
|
return getConversionTable().isValid(_Value);
|
|
|
@ -1139,7 +1146,7 @@ namespace RSMGR
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
typedef NLMISC::CEnumBitset < TLevelFilterEnum, uint32, TLevelFilterEnum::invalid_val, ',', NLMISC::TContainedEnum < TLevelFilterEnum, uint32 >, TLevelFilterEnum::TValues > TLevelFilter;
|
|
|
|
typedef NLMISC::CEnumBitset < TLevelFilterEnum, uint32, TLevelFilterEnum::max_val, ',', NLMISC::TContainedEnum < TLevelFilterEnum, uint32 >, TLevelFilterEnum::TValues > TLevelFilter;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct TEstimatedDuration
|
|
|
|
struct TEstimatedDuration
|
|
|
@ -1189,7 +1196,8 @@ namespace RSMGR
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
invalid_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1287,7 +1295,8 @@ namespace RSMGR
|
|
|
|
rf_tryker = 4,
|
|
|
|
rf_tryker = 4,
|
|
|
|
rf_zorai = 8,
|
|
|
|
rf_zorai = 8,
|
|
|
|
|
|
|
|
|
|
|
|
invalid_val,
|
|
|
|
empty_val = 0,
|
|
|
|
|
|
|
|
max_val = ((uint32)rf_zorai << 1) - 1,
|
|
|
|
|
|
|
|
|
|
|
|
/// Number of enumerated values
|
|
|
|
/// Number of enumerated values
|
|
|
|
nb_enum_items = 4
|
|
|
|
nb_enum_items = 4
|
|
|
@ -1301,11 +1310,11 @@ namespace RSMGR
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_matis)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_matis)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_tryker)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_tryker)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_zorai)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_zorai)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(invalid_val)
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
empty_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1314,7 +1323,7 @@ namespace RSMGR
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
TRaceFilterEnum()
|
|
|
|
TRaceFilterEnum()
|
|
|
|
: _Value(invalid_val)
|
|
|
|
: _Value(empty_val)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
TRaceFilterEnum(TValues value)
|
|
|
|
TRaceFilterEnum(TValues value)
|
|
|
@ -1376,8 +1385,6 @@ namespace RSMGR
|
|
|
|
// return true if the actual value of the enum is valid, otherwise false
|
|
|
|
// return true if the actual value of the enum is valid, otherwise false
|
|
|
|
bool isValid()
|
|
|
|
bool isValid()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (_Value == invalid_val)
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// not invalid, check other enum value
|
|
|
|
// not invalid, check other enum value
|
|
|
|
return getConversionTable().isValid(_Value);
|
|
|
|
return getConversionTable().isValid(_Value);
|
|
|
@ -1386,7 +1393,7 @@ namespace RSMGR
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
typedef NLMISC::CEnumBitset < TRaceFilterEnum, uint32, TRaceFilterEnum::invalid_val, ',', NLMISC::TContainedEnum < TRaceFilterEnum, uint32 >, TRaceFilterEnum::TValues > TRaceFilter;
|
|
|
|
typedef NLMISC::CEnumBitset < TRaceFilterEnum, uint32, TRaceFilterEnum::max_val, ',', NLMISC::TContainedEnum < TRaceFilterEnum, uint32 >, TRaceFilterEnum::TValues > TRaceFilter;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct TReligionFilterEnum
|
|
|
|
struct TReligionFilterEnum
|
|
|
@ -1397,7 +1404,8 @@ namespace RSMGR
|
|
|
|
rf_karavan = 2,
|
|
|
|
rf_karavan = 2,
|
|
|
|
rf_neutral = 4,
|
|
|
|
rf_neutral = 4,
|
|
|
|
|
|
|
|
|
|
|
|
invalid_val,
|
|
|
|
empty_val = 0,
|
|
|
|
|
|
|
|
max_val = ((uint32)rf_neutral << 1) - 1,
|
|
|
|
|
|
|
|
|
|
|
|
/// Number of enumerated values
|
|
|
|
/// Number of enumerated values
|
|
|
|
nb_enum_items = 3
|
|
|
|
nb_enum_items = 3
|
|
|
@ -1410,11 +1418,11 @@ namespace RSMGR
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_kami)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_kami)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_karavan)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_karavan)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_neutral)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(rf_neutral)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(invalid_val)
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
empty_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1423,7 +1431,7 @@ namespace RSMGR
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
TReligionFilterEnum()
|
|
|
|
TReligionFilterEnum()
|
|
|
|
: _Value(invalid_val)
|
|
|
|
: _Value(empty_val)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
TReligionFilterEnum(TValues value)
|
|
|
|
TReligionFilterEnum(TValues value)
|
|
|
@ -1485,8 +1493,6 @@ namespace RSMGR
|
|
|
|
// return true if the actual value of the enum is valid, otherwise false
|
|
|
|
// return true if the actual value of the enum is valid, otherwise false
|
|
|
|
bool isValid()
|
|
|
|
bool isValid()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (_Value == invalid_val)
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// not invalid, check other enum value
|
|
|
|
// not invalid, check other enum value
|
|
|
|
return getConversionTable().isValid(_Value);
|
|
|
|
return getConversionTable().isValid(_Value);
|
|
|
@ -1495,7 +1501,7 @@ namespace RSMGR
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
typedef NLMISC::CEnumBitset < TReligionFilterEnum, uint32, TReligionFilterEnum::invalid_val, ',', NLMISC::TContainedEnum < TReligionFilterEnum, uint32 >, TReligionFilterEnum::TValues > TReligionFilter;
|
|
|
|
typedef NLMISC::CEnumBitset < TReligionFilterEnum, uint32, TReligionFilterEnum::max_val, ',', NLMISC::TContainedEnum < TReligionFilterEnum, uint32 >, TReligionFilterEnum::TValues > TReligionFilter;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct TGuildFilter
|
|
|
|
struct TGuildFilter
|
|
|
@ -1542,7 +1548,8 @@ namespace RSMGR
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
invalid_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1666,11 +1673,13 @@ namespace RSMGR
|
|
|
|
sf_shard28 = 1<<28,
|
|
|
|
sf_shard28 = 1<<28,
|
|
|
|
sf_shard29 = 1<<29,
|
|
|
|
sf_shard29 = 1<<29,
|
|
|
|
sf_shard30 = 1<<30,
|
|
|
|
sf_shard30 = 1<<30,
|
|
|
|
|
|
|
|
sf_shard31 = 1<<31,
|
|
|
|
|
|
|
|
|
|
|
|
invalid_val,
|
|
|
|
empty_val = 0,
|
|
|
|
|
|
|
|
max_val = ((uint32)sf_shard31 << 1) - 1,
|
|
|
|
|
|
|
|
|
|
|
|
/// Number of enumerated values
|
|
|
|
/// Number of enumerated values
|
|
|
|
nb_enum_items = 31
|
|
|
|
nb_enum_items = 32
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1708,11 +1717,12 @@ namespace RSMGR
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(sf_shard28)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(sf_shard28)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(sf_shard29)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(sf_shard29)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(sf_shard30)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(sf_shard30)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(invalid_val)
|
|
|
|
NL_STRING_CONVERSION_TABLE_ENTRY(sf_shard31)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
empty_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1721,7 +1731,7 @@ namespace RSMGR
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
TShardFilterEnum()
|
|
|
|
TShardFilterEnum()
|
|
|
|
: _Value(invalid_val)
|
|
|
|
: _Value(empty_val)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
TShardFilterEnum(TValues value)
|
|
|
|
TShardFilterEnum(TValues value)
|
|
|
@ -1783,8 +1793,6 @@ namespace RSMGR
|
|
|
|
// return true if the actual value of the enum is valid, otherwise false
|
|
|
|
// return true if the actual value of the enum is valid, otherwise false
|
|
|
|
bool isValid()
|
|
|
|
bool isValid()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (_Value == invalid_val)
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// not invalid, check other enum value
|
|
|
|
// not invalid, check other enum value
|
|
|
|
return getConversionTable().isValid(_Value);
|
|
|
|
return getConversionTable().isValid(_Value);
|
|
|
@ -1793,7 +1801,7 @@ namespace RSMGR
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
typedef NLMISC::CEnumBitset < TShardFilterEnum, uint32, TShardFilterEnum::invalid_val, ',', NLMISC::TContainedEnum < TShardFilterEnum, uint32 >, TShardFilterEnum::TValues > TShardFilter;
|
|
|
|
typedef NLMISC::CEnumBitset < TShardFilterEnum, uint32, TShardFilterEnum::max_val, ',', NLMISC::TContainedEnum < TShardFilterEnum, uint32 >, TShardFilterEnum::TValues > TShardFilter;
|
|
|
|
// Info about a running session in a DSS
|
|
|
|
// Info about a running session in a DSS
|
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
/////////////////////////////////////////////////////////////////
|
|
|
|
// WARNING : this is a generated file, don't change it !
|
|
|
|
// WARNING : this is a generated file, don't change it !
|
|
|
@ -1942,7 +1950,8 @@ namespace RSMGR
|
|
|
|
};
|
|
|
|
};
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
static NLMISC::CStringConversion<TValues>
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
conversionTable(TValues_nl_string_conversion_table, sizeof(TValues_nl_string_conversion_table)
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]), invalid_val);
|
|
|
|
/ sizeof(TValues_nl_string_conversion_table[0]),
|
|
|
|
|
|
|
|
invalid_val);
|
|
|
|
|
|
|
|
|
|
|
|
return conversionTable;
|
|
|
|
return conversionTable;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2055,9 +2064,9 @@ namespace RSMGR
|
|
|
|
|
|
|
|
|
|
|
|
// unused interceptors
|
|
|
|
// unused interceptors
|
|
|
|
std::string fwdBuildModuleManifest() const { return std::string(); }
|
|
|
|
std::string fwdBuildModuleManifest() const { return std::string(); }
|
|
|
|
void fwdOnModuleUp(NLNET::IModuleProxy * /* moduleProxy */) {}
|
|
|
|
void fwdOnModuleUp(NLNET::IModuleProxy *moduleProxy) {}
|
|
|
|
void fwdOnModuleDown(NLNET::IModuleProxy * /* moduleProxy */) {}
|
|
|
|
void fwdOnModuleDown(NLNET::IModuleProxy *moduleProxy) {}
|
|
|
|
void fwdOnModuleSecurityChange(NLNET::IModuleProxy * /* moduleProxy */) {}
|
|
|
|
void fwdOnModuleSecurityChange(NLNET::IModuleProxy *moduleProxy) {}
|
|
|
|
|
|
|
|
|
|
|
|
// process module message interceptor
|
|
|
|
// process module message interceptor
|
|
|
|
bool fwdOnProcessModuleMessage(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
|
|
|
|
bool fwdOnProcessModuleMessage(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
|
|
|
@ -2221,9 +2230,9 @@ namespace RSMGR
|
|
|
|
|
|
|
|
|
|
|
|
// unused interceptors
|
|
|
|
// unused interceptors
|
|
|
|
std::string fwdBuildModuleManifest() const { return std::string(); }
|
|
|
|
std::string fwdBuildModuleManifest() const { return std::string(); }
|
|
|
|
void fwdOnModuleUp(NLNET::IModuleProxy * /* moduleProxy */) {}
|
|
|
|
void fwdOnModuleUp(NLNET::IModuleProxy *moduleProxy) {}
|
|
|
|
void fwdOnModuleDown(NLNET::IModuleProxy * /* moduleProxy */) {}
|
|
|
|
void fwdOnModuleDown(NLNET::IModuleProxy *moduleProxy) {}
|
|
|
|
void fwdOnModuleSecurityChange(NLNET::IModuleProxy * /* moduleProxy */) {}
|
|
|
|
void fwdOnModuleSecurityChange(NLNET::IModuleProxy *moduleProxy) {}
|
|
|
|
|
|
|
|
|
|
|
|
// process module message interceptor
|
|
|
|
// process module message interceptor
|
|
|
|
bool fwdOnProcessModuleMessage(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
|
|
|
|
bool fwdOnProcessModuleMessage(NLNET::IModuleProxy *sender, const NLNET::CMessage &message);
|
|
|
@ -3858,7 +3867,7 @@ namespace RSMGR
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
/// the callback client adaptor
|
|
|
|
/// the callback client adaptor
|
|
|
|
CUniquePtr < ICallbackClientAdaptor > _CallbackClient;
|
|
|
|
CUniquePtr<ICallbackClientAdaptor> _CallbackClient;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void getCallbakArray(NLNET::TCallbackItem *&arrayPtr, uint32 &arraySize)
|
|
|
|
void getCallbakArray(NLNET::TCallbackItem *&arrayPtr, uint32 &arraySize)
|
|
|
@ -3922,12 +3931,12 @@ namespace RSMGR
|
|
|
|
if (adaptorReplacement == NULL)
|
|
|
|
if (adaptorReplacement == NULL)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// use the default Nel adaptor
|
|
|
|
// use the default Nel adaptor
|
|
|
|
_CallbackClient = CUniquePtr < ICallbackClientAdaptor >(new CNelCallbackClientAdaptor(this));
|
|
|
|
_CallbackClient = CUniquePtr<ICallbackClientAdaptor>(new CNelCallbackClientAdaptor(this));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// use the replacement one
|
|
|
|
// use the replacement one
|
|
|
|
_CallbackClient = CUniquePtr < ICallbackClientAdaptor >(adaptorReplacement);
|
|
|
|
_CallbackClient = CUniquePtr<ICallbackClientAdaptor>(adaptorReplacement);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|