cond

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cond_Module_Plr_AchvTab   = "achvtab"   // 成就条件数据
	Cond_Module_Plr_MOpen     = "mopen"     // 模块开启
	Cond_Module_Plr_DailyTask = "dailytask" // 日常任务

	Cond_Module_Guild_Achv = "guild_achv" // 家族成就条件数据

	Cond_Module_World_Record = "world_record" // 世界纪录

)

Variables

This section is empty.

Functions

func RegistCondObj

func RegistCondObj(module string, confid int32, cond int32, p1 int32, f func(body interface{}) ICondObj)

各模块注册监听

func RemoveModuleCondObjs

func RemoveModuleCondObjs(module string)

移除一个模块所有的监听对象

Types

type ICondObj

type ICondObj interface {
	GetVal() int32
	SetVal(v int32)
	AddVal(v int32)

	Done(body interface{}, confid int32) // 值有变动时才调用(body = plr, guild)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL