Documentation ¶
Index ¶
- func Broadcast(message PB.Message)
- func BuyCount(plr IPlayer, counter_id int32, num int32) int32
- func CheckCount(plr IPlayer, counter_id int32, num int64) int32
- func Drop(args ...interface{}) (ret []int32)
- func DropOne(grpid int32) (ret int32)
- func FindPlayer(uid string) interface{}
- func GenRandCode(n int) string
- func GenRandName(fake bool) (name string)
- func Init(plrmgr IPlayerMgr, netmgr INetMgr, statustab IStatusTab)
- func IsStatusTabArrayConform(plr interface{}, confXXX_FieldName interface{}, extra interface{}) int32
- func IsStatusTabConform(plr interface{}, c_type int32, id int32, num int32, extra interface{}) int32
- func LoadPlayer(uid string) interface{}
- func Send2Bat(batid int32, message PB.Message)
- func Send2CrossPlayer(svrid int32, plrid string, message PB.Message)
- func Send2Game(svrid int32, message PB.Message)
- func Send2GlobalMaster(message PB.Message)
- func Send2GrandMaster(message PB.Message)
- func Send2Master(message PB.Message)
- func WeightRand(conf1 *PB.Unit, num int32) (ret []int32)
- func WeightRandone(conf *PB.Unit) (ret int32)
- type INetMgr
- type IPlayer
- type IPlayerMgr
- type IStatusTab
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Drop ¶
func Drop(args ...interface{}) (ret []int32)
============================================================================ args 0:玩家 1:掉落组id 2:排斥组 3:数量
func FindPlayer ¶
func FindPlayer(uid string) interface{}
func GenRandCode ¶
func GenRandName ¶
func Init ¶
func Init(plrmgr IPlayerMgr, netmgr INetMgr, statustab IStatusTab)
func IsStatusTabArrayConform ¶
func IsStatusTabArrayConform(plr interface{}, confXXX_FieldName interface{}, extra interface{}) int32
用法: utils.IsStatusTabArrayConform(plr,confXXX.FieldName) == Err.OK 须知: confXXX.FieldName是策划表里面的字段,字段名可以自定义,但类型必须和下面的断言类型一致.否则异常
func IsStatusTabConform ¶
func IsStatusTabConform(plr interface{}, c_type int32, id int32, num int32, extra interface{}) int32
============================================================================ 用法: utils.IsStatusTabConform(plr,id,val) == Err.OK extra额外参数,根据具体逻辑传递
func LoadPlayer ¶
func LoadPlayer(uid string) interface{}
func Send2CrossPlayer ¶
func Send2GlobalMaster ¶
func Send2GlobalMaster(message PB.Message)
func Send2GrandMaster ¶
func Send2GrandMaster(message PB.Message)
func Send2Master ¶
func Send2Master(message PB.Message)
func WeightRand ¶
func WeightRandone ¶
func WeightRandone(conf *PB.Unit) (ret int32)
Types ¶
type IPlayerMgr ¶
type IStatusTab ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.