This repository has been archived on 2026-01-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Game/Server/robot/ws/manager.go

27 lines
390 B
Go

package ws
import (
"common/utils"
"robot/config"
"strconv"
)
type Manager struct {
addr string
}
func NewManager(addr string) *Manager {
c := &Manager{
addr: addr,
}
return c
}
func (c *Manager) Start() {
cfg := config.Get().Client
for i := 0; i < 300; i++ {
client := NewClient(c.addr, strconv.Itoa(utils.RandInt(int(cfg.UID[0]), int(cfg.UID[1]))))
client.Start()
}
}