本文整理汇总了C++中clib::ConfigElem::remove_unsigned方法的典型用法代码示例。如果您正苦于以下问题:C++ ConfigElem::remove_unsigned方法的具体用法?C++ ConfigElem::remove_unsigned怎么用?C++ ConfigElem::remove_unsigned使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类clib::ConfigElem
的用法示例。
在下文中一共展示了ConfigElem::remove_unsigned方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: name
RealmDescriptor::RealmDescriptor(const std::string& realm_name, const std::string& realm_path, Clib::ConfigElem& elem) :
name( realm_name ),
file_path( realm_path ),
width( elem.remove_ushort( "width" ) ),
height( elem.remove_ushort( "height" ) ),
uomapid( elem.remove_unsigned( "uomapid", 0 ) ),
uodif( elem.remove_bool( "uodif", false ) ),
num_map_patches( elem.remove_unsigned( "num_map_patches", 0 ) ),
num_static_patches( elem.remove_unsigned( "num_static_patches", 0 ) ),
season( elem.remove_unsigned( "season", 1 ) ),
mapserver_type( Clib::strlower( elem.remove_string( "mapserver", "memory" ) ) ),
grid_width(calc_grid_size(width)),
grid_height(calc_grid_size(height))
{
}
示例2: read_extobj
void read_extobj()
{
Clib::ConfigFile cf;
Clib::ConfigElem elem;
if ( Clib::FileExists( "config/extobj.local.cfg" ) )
{
cf.open( "config/extobj.local.cfg" );
cf.readraw( elem );
}
else if ( Clib::FileExists( "config/extobj.cfg" ) )
{
cf.open( "config/extobj.cfg" );
cf.readraw( elem );
}
settingsManager.extobj.tillerman = elem.remove_unsigned( "Tillerman", 0x1F010 );
settingsManager.extobj.port_plank = elem.remove_unsigned( "Port_Plank", 0x1F011 );
settingsManager.extobj.starboard_plank = elem.remove_unsigned( "Starboard_Plank", 0x1F012 );
settingsManager.extobj.hold = elem.remove_unsigned( "Hold", 0x1F013 );
settingsManager.extobj.rope = elem.remove_unsigned( "Rope", 0x1F014 );
settingsManager.extobj.wheel = elem.remove_unsigned( "Wheel", 0x1F015 );
settingsManager.extobj.hull = elem.remove_unsigned( "Hull", 0x1F016 );
settingsManager.extobj.tiller = elem.remove_unsigned( "Tiller", 0x1F017 );
settingsManager.extobj.rudder = elem.remove_unsigned( "Rudder", 0x1F018 );
settingsManager.extobj.sails = elem.remove_unsigned( "Sails", 0x1F019 );
settingsManager.extobj.storage = elem.remove_unsigned( "Storage", 0x1F01A );
settingsManager.extobj.weaponslot = elem.remove_unsigned( "Weaponslot", 0x1F01B );
settingsManager.extobj.wrestling = elem.remove_unsigned( "Wrestling", 0x1F020 );
settingsManager.extobj.mount = elem.remove_unsigned( "Mount", 0x1F021 );
settingsManager.extobj.secure_trade_container = elem.remove_unsigned( "Secure_Trade_Container", 0x1FF01 );
settingsManager.extobj.wornitems_container = elem.remove_unsigned( "Wornitems_Container", 0x1FF02 );
}