The config_get_bool also works with on/off, yes/no, true/false. Add 'main' section name. This will make it easier to change settings from uci. Add a link to documentation. Signed-off-by: Sergey Ponomarev <stokito@gmail.com> Link:#15579Signed-off-by: Hauke Mehrtens <hauke@hauke-m...
return_t NO_UT gather_traffic_light_info() { nome_config_t *cfg = get_apply_config(); nome_global_t *ng = get_nome_global(); return_t ret; bool_t is_last_requesting = ng->traffic_light.is_requesting; bool_t ... 该接口gather_traffic_light_info的作用是收集和更新交通信号灯的信息...
voidComponentParticleSystem::OnLoad(Config* config) { init.max_particles = config->GetUInt("Max particles",100); init.loop = config->GetBool("Loop",false); init.duration = config->GetFloat("Duration",0.0f); init.life.Load("Life", *config); init.speed.Load("Speed", *config); init....
ClassDef *c2=(ClassDef *)item2;staticboolb =Config_getBool("SORT_BY_SCOPE_NAME");//printf("compItems: %d %s<->%s\n",b,c1->qualifiedName().data(),c2->qualifiedName().data());if(b) {returnstricmp(c1->name(), c2->name()); }else{returnstricmp(c1->className(), c2->className...
dropbear: use config_get_bool enable Browse files The config_get_bool also works with on/off, yes/no, true/false. Add 'main' section name. This will make it easier to change settings from uci. Add a link to documentation. Signed-off-by: Sergey Ponomarev <stokito@gmail.com> Link:...
func(p *JujuProvisioner)elbSupport()bool{ifp.elb ==nil{ elb, _ := config.GetBool("juju:use-elb") p.elb = &elb }return*p.elb } 开发者ID:nemx,项目名称:tsuru,代码行数:7,代码来源:provisioner.go 示例3: CreateApp ▲点赞 5▼
在下文中一共展示了Config.GetBool方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。 示例1: CreateDataStore ▲点赞 6▼ funcCreateDataStore(cnf *conf.Config, writtenSpanschan*common.Span)(*dataStore, error){// ...
The config_get_bool also works with on/off, yes/no, true/false. Add 'main' section name. This will make it easier to change settings from uci. Add a link to documentation. Signed-off-by: Sergey Ponomarev <stokito@gmail.com> Link: openwrt#15579 Signed-off-by: Hauke Mehrtens <hauke...
}// Make sure player is not in combatif(!player->getAttackers().empty()) { player->CLOSE_GOSSIP_MENU(); Creature->MonsterWhisper("You are in combat!",(Unit *)player->GetGUID());returnfalse; }// If enabled, make sure only GM can use TelePortsif(SD2Config.GetBoolDefault("Teleport...
在下文中一共展示了AppHelper::getPhpConfigValueAsBool方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。 示例1: actionRenderError ▲点赞 9▼ /** * Renders an error template. ...