Documentation ¶
Index ¶
- Constants
- func RegisterService()
- type Msg
- type Msgbox
- func (mb *Msgbox) DefineAttrs(desc *entity.EntityTypeDesc)
- func (mb *Msgbox) MsgboxOnRecvMsg(beginMsgId int64, endMsgId int64, msgs []Msg)
- func (mb *Msgbox) OnInit()
- func (mb *Msgbox) Recv()
- func (mb *Msgbox) Send(targetID common.EntityID, msg Msg)
- func (mb *Msgbox) SetMsgHandler(handler func(msg Msg))
- type MsgboxService
Constants ¶
View Source
const (
ServiceName = "MsgboxService"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Msgbox ¶
Msgbox is used to send messages among entities: e.x. Msgbox{&a.Entity}.Send(targetID, msg, callback)
func (*Msgbox) DefineAttrs ¶ added in v0.1.1
func (mb *Msgbox) DefineAttrs(desc *entity.EntityTypeDesc)
func (*Msgbox) MsgboxOnRecvMsg ¶
func (*Msgbox) SetMsgHandler ¶
type MsgboxService ¶
func (*MsgboxService) DefineAttrs ¶ added in v0.1.1
func (mbs *MsgboxService) DefineAttrs(desc *entity.EntityTypeDesc)
func (*MsgboxService) OnCreated ¶
func (mbs *MsgboxService) OnCreated()
OnCreated is called when MsgboxService is created
func (*MsgboxService) OnInit ¶
func (mbs *MsgboxService) OnInit()
OnInit initialize MsgboxService fields
Click to show internal directories.
Click to hide internal directories.