Documentation ¶
Index ¶
- type ChatModel
- func (p *ChatModel) AddPlayerRecord(player *data_type.UserChatData) error
- func (p *ChatModel) BroadCastSystemMessage(context string, aliveSec uint64) error
- func (p *ChatModel) Chat(chatType proto.ChatChannelType, context string, ...) error
- func (p *ChatModel) Daily(utc time.Time)
- func (p *ChatModel) GeUserChatData(userId int64) *data_type.UserChatData
- func (p *ChatModel) GetChatMap(appId string, mapId int32) (*data_type.ChatMap, error)
- func (p *ChatModel) Hourly(utc time.Time)
- func (p *ChatModel) LoadPlayerBaseData(userId int64) (*dbData.PlayerBaseData, error)
- func (p *ChatModel) Minutely(utc time.Time)
- func (p *ChatModel) MultiLoadPlayerBaseData(playerIds []int64) (map[int64]dbData.PlayerBaseData, error)
- func (p *ChatModel) MultiLoadPlayerSceneData(playerIds []int64) (map[int64]dbData.PlayerSceneData, error)
- func (p *ChatModel) OnEnterGame(env *pubsubEventData.UserEnterGameEvent, ...) error
- func (p *ChatModel) OnInit() error
- func (p *ChatModel) OnLeaveGame(userId int64, socketId string)
- func (p *ChatModel) OnStart() error
- func (p *ChatModel) RemovePlayerRecord(userId int64, socketId string)
- func (p *ChatModel) Secondly(utc time.Time)
- func (p *ChatModel) UpdatePlayerRecord(newChatData *data_type.UserChatData) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatModel ¶
type ChatModel struct { module_base.ModuleBase // contains filtered or unexported fields }
func GetChatModel ¶
func NewChatModel ¶
func NewChatModel() *ChatModel
func (*ChatModel) AddPlayerRecord ¶
func (p *ChatModel) AddPlayerRecord(player *data_type.UserChatData) error
func (*ChatModel) BroadCastSystemMessage ¶
func (*ChatModel) GeUserChatData ¶
func (p *ChatModel) GeUserChatData(userId int64) *data_type.UserChatData
if not found player chat data return nil
func (*ChatModel) GetChatMap ¶
func (*ChatModel) LoadPlayerBaseData ¶
func (p *ChatModel) LoadPlayerBaseData(userId int64) (*dbData.PlayerBaseData, error)
func (*ChatModel) MultiLoadPlayerBaseData ¶
func (*ChatModel) MultiLoadPlayerSceneData ¶
func (*ChatModel) OnEnterGame ¶
func (p *ChatModel) OnEnterGame( env *pubsubEventData.UserEnterGameEvent, agent *user_agent_module.UserAgentData, ) error
func (*ChatModel) OnLeaveGame ¶
func (*ChatModel) RemovePlayerRecord ¶
func (*ChatModel) UpdatePlayerRecord ¶
func (p *ChatModel) UpdatePlayerRecord(newChatData *data_type.UserChatData) error
Click to show internal directories.
Click to hide internal directories.