Documentation
¶
Index ¶
- Constants
- Variables
- func ConvertToWorldPos(tileID int32) (int32, int32, int32)
- func ConvertToWorldTileID(x int32, y int32, sid int32) int32
- func StttRecord(name string, tp StttType, val int64)
- type ActionType
- type MSGType
- type ObjectType
- type RobSimple
- type RobSttts
- type RobotType
- type RoundChanInfo
- type RoundInfo
- type StttData
- type StttType
Constants ¶
View Source
const ( ConfigUrl = "./conf/robot.ini" HeaderLen = 4 WorldW = 990 WorldH = 990 WorldOffset = 1000 UserCityID = 100001 )
Variables ¶
View Source
var ( MassWaitDur = []uint64{5, 10, 30, 60} WorldExploreDur = []uint64{15, 60, 480, 720} StttRecorder chan *StttData CallServerChan chan *RoundChanInfo RobType uint32 NumTicker int64 Caller chan bool )
Functions ¶
func StttRecord ¶
Types ¶
type ActionType ¶
type ActionType uint32
const ( ActionType_Common ActionType = iota + 1 ActionType_Castle ActionType_Global ActionType_League ActionType_Wonder ActionType_Max )
type MSGType ¶
type MSGType uint32
const ( /// First Of All MSGType_JoinAction MSGType = iota /// client MSGType_Dirty //请求脏数据 MSGType_Cheat MSGType_CharInfo MSGType_Draw MSGType_ChatREQ // 聊天请求 MSGType_TopList MSGType_SevenDay MSGType_Novice //开服七日活动 MSGType_AirShip MSGType_Tutorial MSGType_Talent MSGType_AirShipGift //点小火车领礼物 MSGType_HeroDetail MSGType_HeroRecuit MSGType_HeroStarUp MSGType_HeroWearUp MSGType_HeroRankUp MSGType_HeroGuarde MSGType_MailList MSGType_MailBody MSGType_MailRead MSGType_MailKeep MSGType_MailLock MSGType_MailDele /// castle MSGType_CastleMSGs MSGType_ActionS MSGType_ActionC MSGType_ActionE MSGType_TaskAch // 发展任务 MSGType_UseResItem //使用资源道具 /// globalWorld MSGType_GlobalMSGs MSGType_EnterMap MSGType_SettleCity MSGType_SettleWonder MSGType_WorldTiles MSGType_WorldSimple MSGType_WorldDetail MSGType_WorldEntry MSGType_WorldAction /// globalAction MSGType_WorldMonster MSGType_WorldCamp MSGType_WorldGather MSGType_WorldSiege MSGType_WorldPortal MSGType_MinorMiracle //小奇迹 MSGType_SuperMiracle //大奇迹 MSGType_StartGroup //集结 MSGType_JoinGroup //加入集结 /// leagueAction MSGType_LeagueList //MSGType_LeagueSimple MSGType_LeagueJoin MSGType_LeagueMake MSGType_LeagueBoxRefresh MSGType_LeagueGift MSGType_LeagueDevote //联盟科技捐献 MSGType_Logout MSGType_MAX )
type ObjectType ¶
type ObjectType uint32
const ( ObjectType_Nothing ObjectType = iota ObjectType_UserCity ObjectType_Monster ObjectType_MMonster ObjectType_Veins ObjectType_NpcCity ObjectType_Wonder ObjectType_Miracle ObjectType_Portal )
type RoundChanInfo ¶
Click to show internal directories.
Click to hide internal directories.