Versions in this module Expand all Collapse all v1 v1.1.3 Dec 25, 2020 v1.1.1 Dec 19, 2020 Changes in this version + const C_tabname_act + const C_tabname_actrank + const C_tabname_arena + const C_tabname_auction + const C_tabname_battleRecord + const C_tabname_bill + const C_tabname_chat + const C_tabname_escort + const C_tabname_giftinfo + const C_tabname_giftuse + const C_tabname_gmail + const C_tabname_gsinfo + const C_tabname_guild + const C_tabname_log + const C_tabname_login + const C_tabname_names + const C_tabname_online + const C_tabname_rank + const C_tabname_replay + const C_tabname_seqid + const C_tabname_svrlist + const C_tabname_tower + const C_tabname_user + const C_tabname_userinfo + const C_tabname_userload + const C_tabname_worlddata + const C_tabname_worldrecord + var DBGame *db.MyMongo + func DatabaseOpen() + type Handlers struct + func (e *Handlers) Client2Game(ctx context.Context, in *MPB.Bytes, out *MPB.Bytes) error + func (e *Handlers) Login(ctx context.Context, in *MPB.GW_UserOnline, out *MPB.GS_UserInfo) error + func (e *Handlers) LogoutPlayer(ctx context.Context, in *MPB.GW_LogoutPlayer, out *MPB.Response) error + func (e *Handlers) PlayerUpdate_AtkPower(ctx context.Context, in *MPB.GS_PlayerUpdate_AtkPower, out *MPB.Response) error + func (e *Handlers) UserReconnect(ctx context.Context, in *MPB.GW_UserReconnect, out *MPB.Response) error type Player + AuthId string + CreateTs int64 + DevId string + LoginCtDays int32 + LoginTs int64 + Offline_ts int64 + OnlineDur int32 + Plat string + Rst_ts int64 + Sdk string + Svr string + Svr0 string v1.1.0 Nov 9, 2020 Changes in this version + const C_max_gateid + const C_prop_min_aggregate_id + const C_prop_min_pct_id + const C_prop_pct_plus_id + const PROP_AtkPct + const PROP_Blood + const PROP_CoinAdd + const PROP_Crit + const PROP_CritDmg + const PROP_CritDmgRes + const PROP_CritRes + const PROP_CurHp + const PROP_DefDuce + const PROP_DefPct + const PROP_DmgBack + const PROP_DmgDown + const PROP_DmgExt + const PROP_DmgPct + const PROP_DmgUp + const PROP_Dodge + const PROP_ExpAdd + const PROP_Hit + const PROP_Hp + const PROP_HpPct + const PROP_MAtk + const PROP_MDef + const PROP_MSpeed + const PROP_Magic + const PROP_PAtk + const PROP_PDef + const PROP_SKillDmgDuce + const PROP_SkillPct + var C_op_register_gate = (&PB.GW_RegisterGate{}).MsgId() + var C_op_test = (&PB.C_Test{}).MsgId() + var GSReport = &gs_report_t + var NetMgr = &netmgr_t + var PlayerMgr = &plrmgr_t + var Ranks = &ranks + func AddAttributeTeam(self PropMap, AttributeTeam []*PB.AttributeType) + func AddAttributeType(self *PB.ClassAttributeType, new *PB.ClassAttributeType) + func AddPropMods(self *PB.PropMods, m *PB.PropMods) + func AddProps(self *PB.ClassAttributeType, Type, id int32, num float32) + func GetMyRank(req *PB.GS_GetRank) (res *PB.GS_GetRank_R) + func GetNextRankSortTs() int64 + func GetRankType(RankType PB.RankType) string + func InitRank() + func ModBase(self *PB.PropMods, id int32, v float32) + func ModBasePct(self *PB.PropMods, id int32, v float32) + func ModExt(self *PB.PropMods, id int32, v float32) + func NewPropMods() *PB.PropMods + func RankAdd() + func RankOpen() + func RankReset() + func RankSave(req *PB.GS_SetRank) + func RankSort() + func SubPropMods(self *PB.PropMods, m *PB.PropMods) + type A_rank struct + Map map[string]*Rank_rec + Records []*Rank_rec + func (self *A_rank) GetRank(uid string) (rank, score int32) + func (self *A_rank) GetUid(rank int) string + func (self A_rank) GenSaveData(num int) interface{} + func (self A_rank) GetRankData(num int) *OneRank + type ClassProp struct + Prop_map PropMap + Prop_mods *PB.PropMods + Props2map *PB.PropMods + Props2other *PB.ClassAttributeType + func NewClassProp() *ClassProp + type OneRank struct + Records []*Rank_rec + type Player struct + func (self *Player) AccOnlineDur() + func (self *Player) AddExp(v int64) bool + func (self *Player) AddGiftCodeLog(s string) + func (self *Player) BindGuild(gldid string) + func (self *Player) BuyCount(counter_id int32, num int32) int32 + func (self *Player) CalcHeroesProps(sendUpdate bool) + func (self *Player) CalcProp(Calc bool) *PB.ClassAttributeType + func (self *Player) CalcTeamProps(sendUpdate bool) + func (self *Player) ChangeName(name string, f func(bool)) + func (self *Player) CheckGmailDeliverCond(cond string) bool + func (self *Player) CreateBattlePlayer() *PB.BattlePlayer + func (self *Player) CreateMainHero(id int32) *hero.MainHero + func (self *Player) DB() *db.Database + func (self *Player) Drop(args ...interface{}) (ret []int32) + func (self *Player) GetAct() *act.Act + func (self *Player) GetActPersonalStage(actid int32) int32 + func (self *Player) GetActRawData(actid int32) interface{} + func (self *Player) GetAtkPower() int32 + func (self *Player) GetBag() *comp.Bag + func (self *Player) GetBill() *bill.Bill + func (self *Player) GetBillSumDiam() int32 + func (self *Player) GetClientData() *PB.GS_UserInfo + func (self *Player) GetCloud() *cloud.Cloud + func (self *Player) GetCounter() *counter.Counter + func (self *Player) GetCreateTs() time.Time + func (self *Player) GetDevId() string + func (self *Player) GetExp() int64 + func (self *Player) GetFashions() *hero.FashionMap + func (self *Player) GetFields() *comp.Fields + func (self *Player) GetFigure() int32 + func (self *Player) GetFigureStore() *comp.FigureStore + func (self *Player) GetGiftCode() []string + func (self *Player) GetGuild() *guild.Guild + func (self *Player) GetGuildBuildingLv(id int32) int32 + func (self *Player) GetGuildId() string + func (self *Player) GetGuildName() string + func (self *Player) GetGuildRank() int32 + func (self *Player) GetHFrame() int32 + func (self *Player) GetHFrameStore() *comp.HFrameStore + func (self *Player) GetHead() int32 + func (self *Player) GetHeadStore() *comp.HeadStore + func (self *Player) GetHeroes() *hero.Heroes + func (self *Player) GetId() string + func (self *Player) GetLevel() int32 + func (self *Player) GetMailBox() *mail.MailBox + func (self *Player) GetMainHero() *hero.MainHero + func (self *Player) GetMisc() *misc.Misc + func (self *Player) GetName() string + func (self *Player) GetOfflineTs() time.Time + func (self *Player) GetOnlineDur() int32 + func (self *Player) GetPlat() string + func (self *Player) GetSdk() string + func (self *Player) GetShop() *shop.Shop + func (self *Player) GetShopBuyCnt(shopid, itemid int32) int32 + func (self *Player) GetSvr() string + func (self *Player) GetSvrId() int32 + func (self *Player) GetTask(tasktype int32, args ...interface{}) (ret *PB.Unit) + func (self *Player) GetTeam() map[int32]int32 + func (self *Player) GetTutorial() *tutorial.Tutorial + func (self *Player) GetUser() *User + func (self *Player) GetVip() *vip.Vip + func (self *Player) GetVipLevel() int32 + func (self *Player) GetWorld() *world.World + func (self *Player) HeartBeat() + func (self *Player) InGuild() bool + func (self *Player) IsCardValid(typeid int32) bool + func (self *Player) IsOnline() bool + func (self *Player) Logout() + func (self *Player) OnLevelup(new_lv int32) + func (self *Player) OnOffline() + func (self *Player) OnOnline() + func (self *Player) Reconnect(sessionKey uint64) + func (self *Player) Reset_Daily() + func (self *Player) Reset_GetTime() time.Time + func (self *Player) Reset_SetTime(ts time.Time) + func (self *Player) SendMail(mid int32, attachment []*comp.Object, dict map[string]string) + func (self *Player) SendMsg(message PB.Message) + func (self *Player) SendMsgWithoutQueue(message PB.Message) + func (self *Player) SetActPersonalStage(actid int32, v int32) + func (self *Player) User() *User + type PropMap map[int32]float32 + func UpdatePropMap(self PropMap, mods *PB.PropMods) (updated PropMap) + type Rank_rec struct + BattlePlayer *PB.BattlePlayer + Score int32 + Uid string + type SocketGW struct + func (self *SocketGW) Close() + func (self *SocketGW) Dispatch(p packet.Packet) + func (self *SocketGW) SendMsg(message PB.Message) + func (self *SocketGW) SendPacket(p packet.Packet) + type SocketRt struct + Id int32 + func (self *SocketRt) Close() + func (self *SocketRt) Dispatch(p packet.Packet) + func (self *SocketRt) Open() + func (self *SocketRt) SendMsg(message PB.Message) + func (self *SocketRt) SendPacket(p packet.Packet) + type User struct + Act *act.Act + AuthId string + Bag *comp.Bag + Bill *bill.Bill + ChatTs time.Time + ClientData *PB.GS_UserInfo + Cloud *cloud.Cloud + Counter *counter.Counter + CreateTs time.Time + DevId string + Exp int64 + Fashions *hero.FashionMap + Fields *comp.Fields + Figure int32 + FigureStore *comp.FigureStore + GiftCode []string + Guild *guild.Guild + GuildId string + HFrame int32 + HFrameStore *comp.HFrameStore + Head int32 + HeadStore *comp.HeadStore + Heroes *hero.Heroes + Id string + LoginCtDays int32 + LoginIP string + LoginTs time.Time + Lv int32 + MailBox *mail.MailBox + MainHero *hero.MainHero + Misc *misc.Misc + Name string + Offline_ts time.Time + OnlineDur int32 + Plat string + Rst_ts time.Time + Sdk string + Shop *shop.Shop + Svr string + Svr0 string + TeamMap map[int32]int32 + Tutorial *tutorial.Tutorial + Vip *vip.Vip + World *world.World