优化架构

This commit is contained in:
huangxiaolei committed 2022-11-23 18:05:11 +08:00
1 parent 3efed3defe
commit 43403202b5
6760 files changed
+33748 -554768

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
# hk4e
hk4e game server
-195
View File
@@ -1,195 +0,0 @@
package client
import (
"encoding/json"
"errors"
"io/ioutil"
"net/http"
"strconv"
"time"
)
var httpClient http.Client
var airAddr string
var airPort int
func init() {
httpClient = http.Client{
Transport: &http.Transport{
DisableKeepAlives: true,
},
Timeout: time.Second * 60,
}
}
// 设置注册发现中心地址
func SetAirAddr(addr string, port int) {
airAddr = addr
airPort = port
}
// 获取某个HTTP服务的所有实例
func FetchHttpService(name string) (*ResponseData, error) {
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/http/fetch" +
"?name=" + name
return getAirServiceCore(url)
}
// 获取全部HTTP服务的实例
func FetchAllHttpService() (*ResponseData, error) {
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/http/fetch/all"
return getAirServiceCore(url)
}
// 长轮询某个HTTP服务的实例状态变化
func PollHttpService(name string) (*ResponseData, error) {
lastTime := int64(0)
for {
nowTime := time.Now().UnixNano()
if time.Duration(nowTime-lastTime) < time.Second {
time.Sleep(time.Millisecond * 100)
continue
}
lastTime = time.Now().UnixNano()
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/poll/http" +
"?name=" + name
responseData, err := getAirServiceCore(url)
if err != nil {
return nil, err
}
if responseData.Code != 0 {
return nil, errors.New("response code error")
}
if responseData.Instance == nil {
continue
}
return responseData, nil
}
}
// 长轮询全部HTTP服务的实例状态变化
func PollAllHttpService() (*ResponseData, error) {
lastTime := int64(0)
for {
nowTime := time.Now().UnixNano()
if time.Duration(nowTime-lastTime) < time.Second {
time.Sleep(time.Millisecond * 100)
continue
}
lastTime = time.Now().UnixNano()
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/poll/http/all"
responseData, err := getAirServiceCore(url)
if err != nil {
return nil, err
}
if responseData.Code != 0 {
return nil, errors.New("response code error")
}
if responseData.Service == nil {
continue
}
return responseData, nil
}
}
// 获取某个RPC服务的所有实例
func FetchRpcService(name string) (*ResponseData, error) {
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/rpc/fetch" +
"?name=" + name
return getAirServiceCore(url)
}
// 获取全部RPC服务的实例
func FetchAllRpcService() (*ResponseData, error) {
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/rpc/fetch/all"
return getAirServiceCore(url)
}
// 长轮询某个RPC服务的实例状态变化
func PollRpcService(name string) (*ResponseData, error) {
lastTime := int64(0)
for {
nowTime := time.Now().UnixNano()
if time.Duration(nowTime-lastTime) < time.Second {
time.Sleep(time.Millisecond * 100)
continue
}
lastTime = time.Now().UnixNano()
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/poll/rpc" +
"?name=" + name
responseData, err := getAirServiceCore(url)
if err != nil {
return nil, err
}
if responseData.Code != 0 {
return nil, errors.New("response code error")
}
if responseData.Instance == nil {
continue
}
return responseData, nil
}
}
// 长轮询全部RPC服务的实例状态变化
func PollAllRpcService() (*ResponseData, error) {
lastTime := int64(0)
for {
nowTime := time.Now().UnixNano()
if time.Duration(nowTime-lastTime) < time.Second {
time.Sleep(time.Millisecond * 100)
continue
}
lastTime = time.Now().UnixNano()
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/poll/rpc/all"
responseData, err := getAirServiceCore(url)
if err != nil {
return nil, err
}
if responseData.Code != 0 {
return nil, errors.New("response code error")
}
if responseData.Service == nil {
continue
}
return responseData, nil
}
}
func getAirServiceCore(url string) (*ResponseData, error) {
req, err := http.NewRequest("GET", url, nil)
if err != nil {
return nil, err
}
rsp, err := httpClient.Do(req)
if err != nil {
return nil, err
}
data, err := ioutil.ReadAll(rsp.Body)
_ = rsp.Body.Close()
if err != nil {
return nil, err
}
responseData := new(ResponseData)
err = json.Unmarshal(data, responseData)
if err != nil {
return nil, err
}
return responseData, nil
}
-84
View File
@@ -1,84 +0,0 @@
package client
import (
"bytes"
"encoding/json"
"io/ioutil"
"net/http"
"strconv"
)
// 注册HTTP服务
func RegisterHttpService(inst Instance) (*ResponseData, error) {
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/http/reg"
return postAirServiceCore(url, inst)
}
// HTTP服务心跳保持
func KeepaliveHttpService(inst Instance) (*ResponseData, error) {
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/http/ka"
return postAirServiceCore(url, inst)
}
// 取消注册HTTP服务
func CancelHttpService(inst Instance) (*ResponseData, error) {
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/http/cancel"
return postAirServiceCore(url, inst)
}
// 注册RPC服务
func RegisterRpcService(inst Instance) (*ResponseData, error) {
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/rpc/reg"
return postAirServiceCore(url, inst)
}
// RPC服务心跳保持
func KeepaliveRpcService(inst Instance) (*ResponseData, error) {
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/rpc/ka"
return postAirServiceCore(url, inst)
}
// 取消注册RPC服务
func CancelRpcService(inst Instance) (*ResponseData, error) {
url := "http://" +
airAddr + ":" + strconv.Itoa(airPort) +
"/rpc/cancel"
return postAirServiceCore(url, inst)
}
func postAirServiceCore(url string, inst Instance) (*ResponseData, error) {
reqData, err := json.Marshal(inst)
if err != nil {
return nil, err
}
req, err := http.NewRequest("POST", url, bytes.NewBuffer(reqData))
if err != nil {
return nil, err
}
req.Header.Set("Content-Type", "application/json")
rsp, err := httpClient.Do(req)
if err != nil {
return nil, err
}
rspData, err := ioutil.ReadAll(rsp.Body)
_ = rsp.Body.Close()
if err != nil {
return nil, err
}
responseData := new(ResponseData)
err = json.Unmarshal(rspData, responseData)
if err != nil {
return nil, err
}
return responseData, nil
}
-15
View File
@@ -1,15 +0,0 @@
package client
// 服务实例
type Instance struct {
ServiceName string `json:"service_name"`
InstanceName string `json:"instance_name"`
InstanceAddr string `json:"instance_addr"`
}
// 注册中心响应实体类
type ResponseData struct {
Code int `json:"code"`
Service map[string][]Instance `json:"service"`
Instance []Instance `json:"instance"`
}
-3
View File
@@ -1,3 +0,0 @@
module air-api
go 1.19
-6
View File
@@ -1,6 +0,0 @@
http_port = 8086
[logger]
level = "DEBUG"
method = "CONSOLE"
track_line = true
-55
View File
@@ -1,55 +0,0 @@
package main
import (
"air/controller"
"air/service"
"flswld.com/common/config"
"flswld.com/logger"
"github.com/arl/statsviz"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
"syscall"
"time"
)
func main() {
filePath := "./application.toml"
config.InitConfig(filePath)
logger.InitLogger()
logger.LOG.Info("air start")
go func() {
// 性能检测
err := statsviz.RegisterDefault()
if err != nil {
logger.LOG.Error("statsviz init error: %v", err)
}
err = http.ListenAndServe("0.0.0.0:1234", nil)
if err != nil {
logger.LOG.Error("perf debug http start error: %v", err)
}
}()
svc := service.NewService()
_ = controller.NewController(svc)
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)
for {
s := <-c
logger.LOG.Info("get a signal %s", s.String())
switch s {
case syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT:
logger.LOG.Info("air exit")
time.Sleep(time.Second)
return
case syscall.SIGHUP:
default:
return
}
}
}
-48
View File
@@ -1,48 +0,0 @@
package controller
import (
"air/service"
"flswld.com/common/config"
"github.com/gin-gonic/gin"
"strconv"
)
type Controller struct {
service *service.Service
}
func NewController(service *service.Service) (r *Controller) {
r = new(Controller)
r.service = service
go r.registerRouter()
return r
}
func (c *Controller) registerRouter() {
if config.CONF.Logger.Level == "DEBUG" {
gin.SetMode(gin.DebugMode)
} else {
gin.SetMode(gin.ReleaseMode)
}
engine := gin.Default()
// HTTP
engine.GET("/http/fetch", c.fetchHttpService)
engine.GET("/http/fetch/all", c.fetchAllHttpService)
engine.POST("/http/reg", c.registerHttpService)
engine.POST("/http/cancel", c.cancelHttpService)
engine.POST("/http/ka", c.httpKeepalive)
// RPC
engine.GET("/rpc/fetch", c.fetchRpcService)
engine.GET("/rpc/fetch/all", c.fetchAllRpcService)
engine.POST("/rpc/reg", c.registerRpcService)
engine.POST("/rpc/cancel", c.cancelRpcService)
engine.POST("/rpc/ka", c.rpcKeepalive)
// 长轮询
engine.GET("/poll/http", c.pollHttpService)
engine.GET("/poll/http/all", c.pollAllHttpService)
engine.GET("/poll/rpc", c.pollRpcService)
engine.GET("/poll/rpc/all", c.pollAllRpcService)
port := strconv.FormatInt(int64(config.CONF.HttpPort), 10)
portStr := ":" + port
_ = engine.Run(portStr)
}
-39
View File
@@ -1,39 +0,0 @@
package controller
import "github.com/gin-gonic/gin"
// 获取HTTP服务
func (c *Controller) fetchHttpService(context *gin.Context) {
inst := c.service.FetchHttpService(context.Query("name"))
context.JSON(200, gin.H{
"code": 0,
"instance": inst,
})
}
// 获取所有HTTP服务
func (c *Controller) fetchAllHttpService(context *gin.Context) {
svc := c.service.FetchAllHttpService()
context.JSON(200, gin.H{
"code": 0,
"service": svc,
})
}
// 获取RPC服务
func (c *Controller) fetchRpcService(context *gin.Context) {
inst := c.service.FetchRpcService(context.Query("name"))
context.JSON(200, gin.H{
"code": 0,
"instance": inst,
})
}
// 获取所有RPC服务
func (c *Controller) fetchAllRpcService(context *gin.Context) {
svc := c.service.FetchAllRpcService()
context.JSON(200, gin.H{
"code": 0,
"service": svc,
})
}
-35
View File
@@ -1,35 +0,0 @@
package controller
import (
"air/entity"
"flswld.com/logger"
"github.com/gin-gonic/gin"
)
// HTTP心跳
func (c *Controller) httpKeepalive(context *gin.Context) {
inst := new(entity.Instance)
err := context.ShouldBindJSON(inst)
if err != nil {
logger.LOG.Error("parse json error: %v", err)
return
}
c.service.HttpKeepalive(*inst)
context.JSON(200, gin.H{
"code": 0,
})
}
// RPC心跳
func (c *Controller) rpcKeepalive(context *gin.Context) {
inst := new(entity.Instance)
err := context.ShouldBindJSON(inst)
if err != nil {
logger.LOG.Error("parse json error: %v", err)
return
}
c.service.RpcKeepalive(*inst)
context.JSON(200, gin.H{
"code": 0,
})
}
-85
View File
@@ -1,85 +0,0 @@
package controller
import (
"github.com/gin-gonic/gin"
"net/http"
"time"
)
func (c *Controller) pollHttpService(context *gin.Context) {
serviceName := context.Query("name")
recvrNtfr := c.service.RegistryHttpNotifyReceiver(serviceName)
timeout := time.NewTicker(time.Second * 30)
select {
case inst := <-recvrNtfr.NotifyChannel:
c.service.CancelHttpNotifyReceiver(serviceName, recvrNtfr.Id)
context.JSON(http.StatusOK, gin.H{
"code": 0,
"instance": inst,
})
case <-timeout.C:
c.service.CancelHttpNotifyReceiver(serviceName, recvrNtfr.Id)
context.JSON(http.StatusOK, gin.H{
"code": 0,
"instance": nil,
})
}
}
func (c *Controller) pollAllHttpService(context *gin.Context) {
recvrNtfr := c.service.RegistryAllHttpNotifyReceiver()
timeout := time.NewTicker(time.Second * 30)
select {
case svc := <-recvrNtfr.NotifyChannel:
c.service.CancelAllHttpNotifyReceiver(recvrNtfr.Id)
context.JSON(http.StatusOK, gin.H{
"code": 0,
"service": svc,
})
case <-timeout.C:
c.service.CancelAllHttpNotifyReceiver(recvrNtfr.Id)
context.JSON(http.StatusOK, gin.H{
"code": 0,
"service": nil,
})
}
}
func (c *Controller) pollRpcService(context *gin.Context) {
serviceName := context.Query("name")
recvrNtfr := c.service.RegistryRpcNotifyReceiver(serviceName)
timeout := time.NewTicker(time.Second * 30)
select {
case inst := <-recvrNtfr.NotifyChannel:
c.service.CancelRpcNotifyReceiver(serviceName, recvrNtfr.Id)
context.JSON(http.StatusOK, gin.H{
"code": 0,
"instance": inst,
})
case <-timeout.C:
c.service.CancelRpcNotifyReceiver(serviceName, recvrNtfr.Id)
context.JSON(http.StatusOK, gin.H{
"code": 0,
"instance": nil,
})
}
}
func (c *Controller) pollAllRpcService(context *gin.Context) {
recvrNtfr := c.service.RegistryAllRpcNotifyReceiver()
timeout := time.NewTicker(time.Second * 30)
select {
case svc := <-recvrNtfr.NotifyChannel:
c.service.CancelAllRpcNotifyReceiver(recvrNtfr.Id)
context.JSON(http.StatusOK, gin.H{
"code": 0,
"service": svc,
})
case <-timeout.C:
c.service.CancelAllRpcNotifyReceiver(recvrNtfr.Id)
context.JSON(http.StatusOK, gin.H{
"code": 0,
"service": nil,
})
}
}
-63
View File
@@ -1,63 +0,0 @@
package controller
import (
"air/entity"
"flswld.com/logger"
"github.com/gin-gonic/gin"
)
// 注册HTTP服务
func (c *Controller) registerHttpService(context *gin.Context) {
inst := new(entity.Instance)
err := context.ShouldBindJSON(inst)
if err != nil {
logger.LOG.Error("parse json error: %v", err)
return
}
c.service.RegisterHttpService(*inst)
context.JSON(200, gin.H{
"code": 0,
})
}
// 取消注册HTTP服务
func (c *Controller) cancelHttpService(context *gin.Context) {
inst := new(entity.Instance)
err := context.ShouldBindJSON(inst)
if err != nil {
logger.LOG.Error("parse json error: %v", err)
return
}
c.service.CancelHttpService(*inst)
context.JSON(200, gin.H{
"code": 0,
})
}
// 注册RPC服务
func (c *Controller) registerRpcService(context *gin.Context) {
inst := new(entity.Instance)
err := context.ShouldBindJSON(inst)
if err != nil {
logger.LOG.Error("parse json error: %v", err)
return
}
c.service.RegisterRpcService(*inst)
context.JSON(200, gin.H{
"code": 0,
})
}
// 取消注册RPC服务
func (c *Controller) cancelRpcService(context *gin.Context) {
inst := new(entity.Instance)
err := context.ShouldBindJSON(inst)
if err != nil {
logger.LOG.Error("parse json error: %v", err)
return
}
c.service.CancelRpcService(*inst)
context.JSON(200, gin.H{
"code": 0,
})
}
-8
View File
@@ -1,8 +0,0 @@
package entity
// 服务实例实体类
type Instance struct {
ServiceName string `json:"service_name"`
InstanceName string `json:"instance_name"`
InstanceAddr string `json:"instance_addr"`
}
-33
View File
@@ -1,33 +0,0 @@
module air
go 1.19
require flswld.com/common v0.0.0-incompatible
replace flswld.com/common => ../common
require flswld.com/logger v0.0.0-incompatible
replace flswld.com/logger => ../logger
require github.com/gin-gonic/gin v1.6.3
require github.com/arl/statsviz v0.5.1
require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.13.0 // indirect
github.com/go-playground/universal-translator v0.17.0 // indirect
github.com/go-playground/validator/v10 v10.2.0 // indirect
github.com/golang/protobuf v1.3.3 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/json-iterator/go v1.1.9 // indirect
github.com/leodido/go-urn v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 // indirect
github.com/ugorji/go/codec v1.1.7 // indirect
golang.org/x/sys v0.0.0-20200116001909-b77594299b42 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
)
-52
View File
@@ -1,52 +0,0 @@
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/arl/statsviz v0.5.1 h1:3HY0ZEB738JtguWsD1Tf1pFJZiCcWUmYRq/3OTYKaSI=
github.com/arl/statsviz v0.5.1/go.mod h1:zDnjgRblGm1Dyd7J5YlbH7gM1/+HRC+SfkhZhQb5AnM=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14=
github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M=
github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A=
github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q=
github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8=
github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no=
github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA=
github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY=
github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI=
github.com/golang/protobuf v1.3.3 h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I=
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
github.com/json-iterator/go v1.1.9 h1:9yzud/Ht36ygwatGx56VwCZtlI/2AD15T1X2sjSuGns=
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y=
github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg=
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-89
View File
@@ -1,89 +0,0 @@
package service
import "air/entity"
// 获取HTTP服务
func (s *Service) FetchHttpService(name string) (r []entity.Instance) {
s.httpServiceMapLock.RLock()
instanceMap := s.httpServiceMap[name]
s.httpServiceMapLock.RUnlock()
r = make([]entity.Instance, 0)
if instanceMap == nil {
return r
}
instanceMap.lock.RLock()
for k, v := range instanceMap.Imap {
instance := new(entity.Instance)
instance.ServiceName = name
instance.InstanceName = k
instance.InstanceAddr = v.Address
r = append(r, *instance)
}
instanceMap.lock.RUnlock()
return r
}
// 获取所有HTTP服务
func (s *Service) FetchAllHttpService() (r map[string][]entity.Instance) {
s.httpServiceMapLock.RLock()
serviceMap := s.httpServiceMap
s.httpServiceMapLock.RUnlock()
r = make(map[string][]entity.Instance)
for k, v := range serviceMap {
instanceSlice := make([]entity.Instance, 0)
v.lock.RLock()
for kk, vv := range v.Imap {
instance := new(entity.Instance)
instance.ServiceName = k
instance.InstanceName = kk
instance.InstanceAddr = vv.Address
instanceSlice = append(instanceSlice, *instance)
}
v.lock.RUnlock()
r[k] = instanceSlice
}
return r
}
// 获取RPC服务
func (s *Service) FetchRpcService(name string) (r []entity.Instance) {
s.rpcServiceMapLock.RLock()
instanceMap := s.rpcServiceMap[name]
s.rpcServiceMapLock.RUnlock()
r = make([]entity.Instance, 0)
if instanceMap == nil {
return r
}
instanceMap.lock.RLock()
for k, v := range instanceMap.Imap {
instance := new(entity.Instance)
instance.ServiceName = name
instance.InstanceName = k
instance.InstanceAddr = v.Address
r = append(r, *instance)
}
instanceMap.lock.RUnlock()
return r
}
// 获取所有RPC服务
func (s *Service) FetchAllRpcService() (r map[string][]entity.Instance) {
s.rpcServiceMapLock.RLock()
serviceMap := s.rpcServiceMap
s.rpcServiceMapLock.RUnlock()
r = make(map[string][]entity.Instance)
for k, v := range serviceMap {
instanceSlice := make([]entity.Instance, 0)
v.lock.RLock()
for kk, vv := range v.Imap {
instance := new(entity.Instance)
instance.ServiceName = k
instance.InstanceName = kk
instance.InstanceAddr = vv.Address
instanceSlice = append(instanceSlice, *instance)
}
v.lock.RUnlock()
r[k] = instanceSlice
}
return r
}
-136
View File
@@ -1,136 +0,0 @@
package service
import (
"air/entity"
"flswld.com/logger"
"time"
)
// HTTP心跳
func (s *Service) HttpKeepalive(instance entity.Instance) {
nowTime := time.Now().Unix()
s.httpServiceMapLock.RLock()
instanceMap := s.httpServiceMap[instance.ServiceName]
s.httpServiceMapLock.RUnlock()
if instanceMap != nil {
instanceMap.lock.Lock()
instanceData := instanceMap.Imap[instance.InstanceName]
if instanceData != nil {
instanceData.LastAliveTime = nowTime
} else {
logger.LOG.Error("recv not exist instance http keepalive, instance name: %v", instance.InstanceName)
}
instanceMap.lock.Unlock()
} else {
logger.LOG.Error("recv not exist service http keepalive, service name: %v", instance.ServiceName)
}
}
// RPC心跳
func (s *Service) RpcKeepalive(instance entity.Instance) {
nowTime := time.Now().Unix()
s.rpcServiceMapLock.RLock()
instanceMap := s.rpcServiceMap[instance.ServiceName]
s.rpcServiceMapLock.RUnlock()
if instanceMap != nil {
instanceMap.lock.Lock()
instanceData := instanceMap.Imap[instance.InstanceName]
if instanceData != nil {
instanceData.LastAliveTime = nowTime
} else {
logger.LOG.Error("recv not exist instance rpc keepalive, instance name: %v", instance.InstanceName)
}
instanceMap.lock.Unlock()
} else {
logger.LOG.Error("recv not exist service rpc keepalive, service name: %v", instance.ServiceName)
}
}
// 定时移除掉线服务
func (s *Service) removeDeadService() {
ticker := time.NewTicker(time.Second * 60)
for {
<-ticker.C
nowTime := time.Now().Unix()
httpSvcChgFlagMap := make(map[string]bool)
httpSvcChgMap := make(map[string]*InstanceMap)
httpSvcDelMap := make(map[string]*InstanceMap)
s.httpServiceMapLock.RLock()
for svcName, svcInstMap := range s.httpServiceMap {
svcInstMap.lock.Lock()
for instName, instData := range svcInstMap.Imap {
if nowTime-instData.LastAliveTime > 60 {
httpSvcChgFlagMap[svcName] = true
if httpSvcDelMap[svcName] == nil {
httpSvcDelMap[svcName] = new(InstanceMap)
httpSvcDelMap[svcName].Imap = make(map[string]*InstanceData)
}
httpSvcDelMap[svcName].Imap[instName] = instData
delete(svcInstMap.Imap, instName)
} else {
if httpSvcChgMap[svcName] == nil {
httpSvcChgMap[svcName] = new(InstanceMap)
httpSvcChgMap[svcName].Imap = make(map[string]*InstanceData)
}
httpSvcChgMap[svcName].Imap[instName] = instData
}
}
svcInstMap.lock.Unlock()
}
s.httpServiceMapLock.RUnlock()
for svcName, instMap := range httpSvcDelMap {
for instName, instData := range instMap.Imap {
logger.LOG.Info("remove timeout http service, service name: %v, instance name: %v, instance data: %v", svcName, instName, instData)
}
}
for svcName, _ := range httpSvcChgMap {
if !httpSvcChgFlagMap[svcName] {
delete(httpSvcChgMap, svcName)
}
}
if len(httpSvcChgMap) != 0 {
s.httpSvcChgNtfCh <- httpSvcChgMap
}
rpcSvcChgFlagMap := make(map[string]bool)
rpcSvcChgMap := make(map[string]*InstanceMap)
rpcSvcDelMap := make(map[string]*InstanceMap)
s.rpcServiceMapLock.RLock()
for svcName, svcInstMap := range s.rpcServiceMap {
svcInstMap.lock.Lock()
for instName, instData := range svcInstMap.Imap {
if nowTime-instData.LastAliveTime > 60 {
rpcSvcChgFlagMap[svcName] = true
if rpcSvcDelMap[svcName] == nil {
rpcSvcDelMap[svcName] = new(InstanceMap)
rpcSvcDelMap[svcName].Imap = make(map[string]*InstanceData)
}
rpcSvcDelMap[svcName].Imap[instName] = instData
delete(svcInstMap.Imap, instName)
} else {
if rpcSvcChgMap[svcName] == nil {
rpcSvcChgMap[svcName] = new(InstanceMap)
rpcSvcChgMap[svcName].Imap = make(map[string]*InstanceData)
}
rpcSvcChgMap[svcName].Imap[instName] = instData
}
}
svcInstMap.lock.Unlock()
}
s.rpcServiceMapLock.RUnlock()
for svcName, instMap := range rpcSvcDelMap {
for instName, instData := range instMap.Imap {
logger.LOG.Info("remove timeout rpc service, service name: %v, instance name: %v, instance data: %v", svcName, instName, instData)
}
}
for svcName, _ := range rpcSvcChgMap {
if !rpcSvcChgFlagMap[svcName] {
delete(rpcSvcChgMap, svcName)
}
}
if len(rpcSvcChgMap) != 0 {
s.rpcSvcChgNtfCh <- rpcSvcChgMap
}
}
}
-190
View File
@@ -1,190 +0,0 @@
package service
import (
"air/entity"
"flswld.com/logger"
"sync/atomic"
"time"
)
func (s *Service) watchServiceChange() {
s.watcher.receiverNotifierIdCounter = 0
s.watcher.httpRecvrNtfrMap = make(map[string]map[uint64]*ReceiverNotifier)
s.watcher.httpAllSvcRecvrNtfrMap = make(map[uint64]*AllServiceReceiverNotifier)
s.watcher.rpcRecvrNtfrMap = make(map[string]map[uint64]*ReceiverNotifier)
s.watcher.rpcAllSvcRecvrNtfrMap = make(map[uint64]*AllServiceReceiverNotifier)
go func() {
for {
imap := <-s.httpSvcChgNtfCh
for svcName, instMap := range imap {
// 给某个服务的接收者通知器发送消息
s.watcher.httpRecvrNtfrMapLock.RLock()
recvrNtfrMap := s.watcher.httpRecvrNtfrMap[svcName]
instList := make([]entity.Instance, 0)
for instName, instData := range instMap.Imap {
inst := new(entity.Instance)
inst.ServiceName = svcName
inst.InstanceName = instName
inst.InstanceAddr = instData.Address
instList = append(instList, *inst)
}
if recvrNtfrMap == nil || len(recvrNtfrMap) == 0 {
s.watcher.httpRecvrNtfrMapLock.RUnlock()
continue
}
for _, recvrNtfr := range recvrNtfrMap {
if time.Now().UnixNano()-recvrNtfr.CreateTime < int64(time.Second*30) {
logger.LOG.Debug("send http service change notify to receiver: %d", recvrNtfr.Id)
recvrNtfr.NotifyChannel <- instList
}
close(recvrNtfr.NotifyChannel)
}
s.watcher.httpRecvrNtfrMapLock.RUnlock()
}
// 给全体服务的接收者通知器发送消息
s.watcher.httpAllSvcRecvrNtfrMapLock.RLock()
if len(s.watcher.httpAllSvcRecvrNtfrMap) == 0 {
s.watcher.httpAllSvcRecvrNtfrMapLock.RUnlock()
continue
}
svcMap := s.FetchAllHttpService()
for _, recvrNtfr := range s.watcher.httpAllSvcRecvrNtfrMap {
if time.Now().UnixNano()-recvrNtfr.CreateTime < int64(time.Second*30) {
logger.LOG.Debug("send all http service change notify to receiver: %d", recvrNtfr.Id)
recvrNtfr.NotifyChannel <- svcMap
}
close(recvrNtfr.NotifyChannel)
}
s.watcher.httpAllSvcRecvrNtfrMapLock.RUnlock()
}
}()
go func() {
for {
imap := <-s.rpcSvcChgNtfCh
for svcName, instMap := range imap {
// 给某个服务的接收者通知器发送消息
s.watcher.rpcRecvrNtfrMapLock.RLock()
recvrNtfrMap := s.watcher.rpcRecvrNtfrMap[svcName]
instList := make([]entity.Instance, 0)
for instName, instData := range instMap.Imap {
inst := new(entity.Instance)
inst.ServiceName = svcName
inst.InstanceName = instName
inst.InstanceAddr = instData.Address
instList = append(instList, *inst)
}
if recvrNtfrMap == nil || len(recvrNtfrMap) == 0 {
s.watcher.rpcRecvrNtfrMapLock.RUnlock()
continue
}
for _, recvrNtfr := range recvrNtfrMap {
if time.Now().UnixNano()-recvrNtfr.CreateTime < int64(time.Second*30) {
logger.LOG.Debug("send rpc service change notify to receiver: %d", recvrNtfr.Id)
recvrNtfr.NotifyChannel <- instList
}
close(recvrNtfr.NotifyChannel)
}
s.watcher.rpcRecvrNtfrMapLock.RUnlock()
}
// 给全体服务的接收者通知器发送消息
s.watcher.rpcAllSvcRecvrNtfrMapLock.RLock()
if len(s.watcher.rpcAllSvcRecvrNtfrMap) == 0 {
s.watcher.rpcAllSvcRecvrNtfrMapLock.RUnlock()
continue
}
svcMap := s.FetchAllRpcService()
for _, recvrNtfr := range s.watcher.rpcAllSvcRecvrNtfrMap {
if time.Now().UnixNano()-recvrNtfr.CreateTime < int64(time.Second*30) {
logger.LOG.Debug("send all rpc service change notify to receiver: %d", recvrNtfr.Id)
recvrNtfr.NotifyChannel <- svcMap
}
close(recvrNtfr.NotifyChannel)
}
s.watcher.rpcAllSvcRecvrNtfrMapLock.RUnlock()
}
}()
}
// 注册HTTP服务变化通知接收者
func (s *Service) RegistryHttpNotifyReceiver(serviceName string) *ReceiverNotifier {
recvrNtfr := new(ReceiverNotifier)
recvrNtfr.Id = atomic.AddUint64(&s.watcher.receiverNotifierIdCounter, 1)
recvrNtfr.CreateTime = time.Now().UnixNano()
recvrNtfr.NotifyChannel = make(chan []entity.Instance, 0)
s.watcher.httpRecvrNtfrMapLock.Lock()
if s.watcher.httpRecvrNtfrMap[serviceName] == nil {
s.watcher.httpRecvrNtfrMap[serviceName] = make(map[uint64]*ReceiverNotifier)
}
s.watcher.httpRecvrNtfrMap[serviceName][recvrNtfr.Id] = recvrNtfr
s.watcher.httpRecvrNtfrMapLock.Unlock()
return recvrNtfr
}
// 取消HTTP服务变化通知接收者
func (s *Service) CancelHttpNotifyReceiver(serviceName string, id uint64) {
s.watcher.httpRecvrNtfrMapLock.Lock()
delete(s.watcher.httpRecvrNtfrMap[serviceName], id)
s.watcher.httpRecvrNtfrMapLock.Unlock()
}
// 注册全体HTTP服务变化通知接收者
func (s *Service) RegistryAllHttpNotifyReceiver() *AllServiceReceiverNotifier {
recvrNtfr := new(AllServiceReceiverNotifier)
recvrNtfr.Id = atomic.AddUint64(&s.watcher.receiverNotifierIdCounter, 1)
recvrNtfr.CreateTime = time.Now().UnixNano()
recvrNtfr.NotifyChannel = make(chan map[string][]entity.Instance, 0)
s.watcher.httpAllSvcRecvrNtfrMapLock.Lock()
s.watcher.httpAllSvcRecvrNtfrMap[recvrNtfr.Id] = recvrNtfr
s.watcher.httpAllSvcRecvrNtfrMapLock.Unlock()
return recvrNtfr
}
// 取消全体HTTP服务变化通知接收者
func (s *Service) CancelAllHttpNotifyReceiver(id uint64) {
s.watcher.httpAllSvcRecvrNtfrMapLock.Lock()
delete(s.watcher.httpAllSvcRecvrNtfrMap, id)
s.watcher.httpAllSvcRecvrNtfrMapLock.Unlock()
}
// 注册RPC服务变化通知接收者
func (s *Service) RegistryRpcNotifyReceiver(serviceName string) *ReceiverNotifier {
recvrNtfr := new(ReceiverNotifier)
recvrNtfr.Id = atomic.AddUint64(&s.watcher.receiverNotifierIdCounter, 1)
recvrNtfr.CreateTime = time.Now().UnixNano()
recvrNtfr.NotifyChannel = make(chan []entity.Instance, 0)
s.watcher.rpcRecvrNtfrMapLock.Lock()
if s.watcher.rpcRecvrNtfrMap[serviceName] == nil {
s.watcher.rpcRecvrNtfrMap[serviceName] = make(map[uint64]*ReceiverNotifier)
}
s.watcher.rpcRecvrNtfrMap[serviceName][recvrNtfr.Id] = recvrNtfr
s.watcher.rpcRecvrNtfrMapLock.Unlock()
return recvrNtfr
}
// 取消RPC服务变化通知接收者
func (s *Service) CancelRpcNotifyReceiver(serviceName string, id uint64) {
s.watcher.rpcRecvrNtfrMapLock.Lock()
delete(s.watcher.rpcRecvrNtfrMap[serviceName], id)
s.watcher.rpcRecvrNtfrMapLock.Unlock()
}
// 注册全体RPC服务变化通知接收者
func (s *Service) RegistryAllRpcNotifyReceiver() *AllServiceReceiverNotifier {
recvrNtfr := new(AllServiceReceiverNotifier)
recvrNtfr.Id = atomic.AddUint64(&s.watcher.receiverNotifierIdCounter, 1)
recvrNtfr.CreateTime = time.Now().UnixNano()
recvrNtfr.NotifyChannel = make(chan map[string][]entity.Instance, 0)
s.watcher.rpcAllSvcRecvrNtfrMapLock.Lock()
s.watcher.rpcAllSvcRecvrNtfrMap[recvrNtfr.Id] = recvrNtfr
s.watcher.rpcAllSvcRecvrNtfrMapLock.Unlock()
return recvrNtfr
}
// 取消全体RPC服务变化通知接收者
func (s *Service) CancelAllRpcNotifyReceiver(id uint64) {
s.watcher.rpcAllSvcRecvrNtfrMapLock.Lock()
delete(s.watcher.rpcAllSvcRecvrNtfrMap, id)
s.watcher.rpcAllSvcRecvrNtfrMapLock.Unlock()
}
-103
View File
@@ -1,103 +0,0 @@
package service
import (
"air/entity"
"flswld.com/common/utils/object"
"time"
)
// 注册HTTP服务
func (s *Service) RegisterHttpService(instance entity.Instance) bool {
nowTime := time.Now().Unix()
s.httpServiceMapLock.Lock()
instanceMap := s.httpServiceMap[instance.ServiceName]
if instanceMap == nil {
instanceMap = new(InstanceMap)
instanceMap.Imap = make(map[string]*InstanceData)
}
instanceMap.lock.Lock()
instanceData := instanceMap.Imap[instance.InstanceName]
if instanceData == nil {
instanceData = new(InstanceData)
}
instanceData.Address = instance.InstanceAddr
instanceData.LastAliveTime = nowTime
instanceMap.Imap[instance.InstanceName] = instanceData
s.httpServiceMap[instance.ServiceName] = instanceMap
instanceMap.lock.Unlock()
s.httpServiceMapLock.Unlock()
changeInst := make(map[string]*InstanceMap)
instanceMapCopy := new(InstanceMap)
instanceMap.lock.RLock()
_ = object.ObjectDeepCopy(instanceMap, instanceMapCopy)
instanceMap.lock.RUnlock()
changeInst[instance.ServiceName] = instanceMapCopy
s.httpSvcChgNtfCh <- changeInst
return true
}
// 取消注册HTTP服务
func (s *Service) CancelHttpService(instance entity.Instance) bool {
s.httpServiceMapLock.RLock()
instanceMap := s.httpServiceMap[instance.ServiceName]
s.httpServiceMapLock.RUnlock()
instanceMap.lock.Lock()
delete(instanceMap.Imap, instance.InstanceName)
instanceMap.lock.Unlock()
changeInst := make(map[string]*InstanceMap)
instanceMapCopy := new(InstanceMap)
instanceMap.lock.RLock()
_ = object.ObjectDeepCopy(instanceMap, instanceMapCopy)
instanceMap.lock.RUnlock()
changeInst[instance.ServiceName] = instanceMapCopy
s.httpSvcChgNtfCh <- changeInst
return true
}
// 注册RPC服务
func (s *Service) RegisterRpcService(instance entity.Instance) bool {
nowTime := time.Now().Unix()
s.rpcServiceMapLock.Lock()
instanceMap := s.rpcServiceMap[instance.ServiceName]
if instanceMap == nil {
instanceMap = new(InstanceMap)
instanceMap.Imap = make(map[string]*InstanceData)
}
instanceMap.lock.Lock()
instanceData := instanceMap.Imap[instance.InstanceName]
if instanceData == nil {
instanceData = new(InstanceData)
}
instanceData.Address = instance.InstanceAddr
instanceData.LastAliveTime = nowTime
instanceMap.Imap[instance.InstanceName] = instanceData
s.rpcServiceMap[instance.ServiceName] = instanceMap
instanceMap.lock.Unlock()
s.rpcServiceMapLock.Unlock()
changeInst := make(map[string]*InstanceMap)
instanceMapCopy := new(InstanceMap)
instanceMap.lock.RLock()
_ = object.ObjectDeepCopy(instanceMap, instanceMapCopy)
instanceMap.lock.RUnlock()
changeInst[instance.ServiceName] = instanceMapCopy
s.rpcSvcChgNtfCh <- changeInst
return true
}
// 取消注册RPC服务
func (s *Service) CancelRpcService(instance entity.Instance) bool {
s.rpcServiceMapLock.RLock()
instanceMap := s.rpcServiceMap[instance.ServiceName]
s.rpcServiceMapLock.RUnlock()
instanceMap.lock.Lock()
delete(instanceMap.Imap, instance.InstanceName)
instanceMap.lock.Unlock()
changeInst := make(map[string]*InstanceMap)
instanceMapCopy := new(InstanceMap)
instanceMap.lock.RLock()
_ = object.ObjectDeepCopy(instanceMap, instanceMapCopy)
instanceMap.lock.RUnlock()
changeInst[instance.ServiceName] = instanceMapCopy
s.rpcSvcChgNtfCh <- changeInst
return true
}
-75
View File
@@ -1,75 +0,0 @@
package service
import (
"air/entity"
"sync"
)
// 实例数据
type InstanceData struct {
// 实例地址
Address string
// 最后心跳时间
LastAliveTime int64
}
// 服务实例集合
type InstanceMap struct {
// key:实例名 value:实例数据
Imap map[string]*InstanceData
lock sync.RWMutex
}
type ReceiverNotifier struct {
Id uint64
CreateTime int64
NotifyChannel chan []entity.Instance
}
type AllServiceReceiverNotifier struct {
Id uint64
CreateTime int64
NotifyChannel chan map[string][]entity.Instance
}
type Watcher struct {
receiverNotifierIdCounter uint64
// key1:服务名 key2:接收者通知器id value:接收者通知器
httpRecvrNtfrMap map[string]map[uint64]*ReceiverNotifier
httpRecvrNtfrMapLock sync.RWMutex
// key:接收者通知器id value:接收者通知器
httpAllSvcRecvrNtfrMap map[uint64]*AllServiceReceiverNotifier
httpAllSvcRecvrNtfrMapLock sync.RWMutex
// key1:服务名 key2:接收者通知器id value:接收者通知器
rpcRecvrNtfrMap map[string]map[uint64]*ReceiverNotifier
rpcRecvrNtfrMapLock sync.RWMutex
// key:接收者通知器id value:接收者通知器
rpcAllSvcRecvrNtfrMap map[uint64]*AllServiceReceiverNotifier
rpcAllSvcRecvrNtfrMapLock sync.RWMutex
}
// 注册服务
type Service struct {
// key:服务名 value:服务实例集合
httpServiceMap map[string]*InstanceMap
httpServiceMapLock sync.RWMutex
httpSvcChgNtfCh chan map[string]*InstanceMap
// key:服务名 value:服务实例集合
rpcServiceMap map[string]*InstanceMap
rpcServiceMapLock sync.RWMutex
rpcSvcChgNtfCh chan map[string]*InstanceMap
watcher *Watcher
}
// 构造函数
func NewService() (r *Service) {
r = new(Service)
r.httpServiceMap = make(map[string]*InstanceMap)
r.rpcServiceMap = make(map[string]*InstanceMap)
r.httpSvcChgNtfCh = make(chan map[string]*InstanceMap, 0)
r.rpcSvcChgNtfCh = make(chan map[string]*InstanceMap, 0)
r.watcher = new(Watcher)
go r.removeDeadService()
go r.watchServiceChange()
return r
}
+3 -44
View File
@@ -10,13 +10,8 @@ var CONF *Config = nil
// 配置
type Config struct {
HttpPort int `toml:"http_port"`
KcpPort int `toml:"kcp_port"`
Logger Logger `toml:"logger"`
Air Air `toml:"air"`
Database Database `toml:"database"`
Light Light `toml:"light"`
Routes []Routes `toml:"routes"`
Wxmp Wxmp `toml:"wxmp"`
Hk4e Hk4e `toml:"hk4e"`
MQ MQ `toml:"mq"`
}
@@ -28,55 +23,18 @@ type Logger struct {
TrackLine bool `toml:"track_line"`
}
// 注册中心配置
type Air struct {
Addr string `toml:"addr"`
Port int `toml:"port"`
ServiceName string `toml:"service_name"`
}
// 数据库配置
type Database struct {
Url string `toml:"url"`
}
// RPC框架配置
type Light struct {
Port int `toml:"port"`
}
// 路由配置
type Routes struct {
ServiceName string `toml:"service_name"`
ServicePredicates string `toml:"service_predicates"`
StripPrefix int `toml:"strip_prefix"`
}
// FWDN服务
type Fwdn struct {
FwdnCron string `toml:"fwdn_cron"`
TestCron string `toml:"test_cron"`
QQMailAddr string `toml:"qq_mail_addr"`
QQMailName string `toml:"qq_mail_name"`
QQMailToken string `toml:"qq_mail_token"`
FwMailAddr string `toml:"fw_mail_addr"`
}
// 微信公众号
type Wxmp struct {
AppId string `toml:"app_id"`
RawId string `toml:"raw_id"`
Token string `toml:"token"`
EncodingAesKey string `toml:"encoding_aes_key"`
Fwdn Fwdn `toml:"fwdn"`
}
// 原神相关
type Hk4e struct {
KcpPort int `toml:"kcp_port"`
KcpAddr string `toml:"kcp_addr"`
ResourcePath string `toml:"resource_path"`
GachaHistoryServer string `toml:"gacha_history_server"`
LoginSdkUrl string `toml:"login_sdk_url"`
}
// 消息队列
@@ -93,6 +51,7 @@ func InitConfig(filePath string) {
func (c *Config) loadConfigFile(filePath string) {
_, err := toml.DecodeFile(filePath, &c)
if err != nil {
panic(fmt.Sprintf("application.toml load fail ! err: %v", err))
info := fmt.Sprintf("config file load error: %v\n", err)
panic(info)
}
}
@@ -1,15 +0,0 @@
package dto
type ResponseResult struct {
Code int32 `json:"code"`
Msg string `json:"msg"`
Data any `json:"data,omitempty"`
}
func NewResponseResult(code int32, msg string, data any) (r *ResponseResult) {
r = new(ResponseResult)
r.Code = code
r.Msg = msg
r.Data = data
return r
}
-5
View File
@@ -1,5 +0,0 @@
module common
go 1.19
require github.com/BurntSushi/toml v0.3.1
-2
View File
@@ -1,2 +0,0 @@
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
@@ -2,30 +2,30 @@ package region
import (
"encoding/base64"
"flswld.com/common/utils/endec"
"flswld.com/gate-hk4e-api/proto"
"flswld.com/logger"
pb "google.golang.org/protobuf/proto"
"io/ioutil"
"hk4e/common/utils/endec"
"hk4e/logger"
"hk4e/protocol/proto"
"os"
)
func LoadRsaKey() (signRsaKey []byte, encRsaKeyMap map[string][]byte, pwdRsaKey []byte) {
var err error = nil
encRsaKeyMap = make(map[string][]byte)
signRsaKey, err = ioutil.ReadFile("static/region_sign_key.pem")
signRsaKey, err = os.ReadFile("static/region_sign_key.pem")
if err != nil {
logger.LOG.Error("open region_sign_key.pem error: %v", err)
return nil, nil, nil
}
encKeyIdList := []string{"2", "3", "4", "5"}
for _, v := range encKeyIdList {
encRsaKeyMap[v], err = ioutil.ReadFile("static/region_enc_key_" + v + ".pem")
encRsaKeyMap[v], err = os.ReadFile("static/region_enc_key_" + v + ".pem")
if err != nil {
logger.LOG.Error("open region_enc_key_3.pem error: %v", err)
return nil, nil, nil
}
}
pwdRsaKey, err = ioutil.ReadFile("static/account_password_key.pem")
pwdRsaKey, err = os.ReadFile("static/account_password_key.pem")
if err != nil {
logger.LOG.Error("open account_password_key.pem error: %v", err)
return nil, nil, nil
@@ -34,12 +34,12 @@ func LoadRsaKey() (signRsaKey []byte, encRsaKeyMap map[string][]byte, pwdRsaKey
}
func InitRegion(kcpAddr string, kcpPort int) (*proto.QueryCurrRegionHttpRsp, *proto.QueryRegionListHttpRsp) {
dispatchKey, err := ioutil.ReadFile("static/dispatchKey.bin")
dispatchKey, err := os.ReadFile("static/dispatchKey.bin")
if err != nil {
logger.LOG.Error("open dispatchKey.bin error: %v", err)
return nil, nil
}
dispatchSeed, err := ioutil.ReadFile("static/dispatchSeed.bin")
dispatchSeed, err := os.ReadFile("static/dispatchSeed.bin")
if err != nil {
logger.LOG.Error("open dispatchSeed.bin error: %v", err)
return nil, nil
@@ -84,22 +84,22 @@ func InitRegion(kcpAddr string, kcpPort int) (*proto.QueryCurrRegionHttpRsp, *pr
func _InitRegion(log *logger.Logger, kcpAddr string, kcpPort int) (*proto.QueryCurrRegionHttpRsp, *proto.QueryRegionListHttpRsp) {
// TODO 总有一天要把这些烦人的数据全部自己构造别再他妈的读文件了
// 加载文件
regionListKeyFile, err := ioutil.ReadFile("static/query_region_list_key")
regionListKeyFile, err := os.ReadFile("static/query_region_list_key")
if err != nil {
log.Error("open query_region_list_key error")
return nil, nil
}
regionCurrKeyFile, err := ioutil.ReadFile("static/query_cur_region_key")
regionCurrKeyFile, err := os.ReadFile("static/query_cur_region_key")
if err != nil {
log.Error("open query_cur_region_key error")
return nil, nil
}
regionListFile, err := ioutil.ReadFile("static/query_region_list")
regionListFile, err := os.ReadFile("static/query_region_list")
if err != nil {
log.Error("open query_region_list error")
return nil, nil
}
regionCurrFile, err := ioutil.ReadFile("static/query_cur_region")
regionCurrFile, err := os.ReadFile("static/query_cur_region")
if err != nil {
log.Error("open query_cur_region error")
return nil, nil
@@ -148,7 +148,7 @@ func _InitRegion(log *logger.Logger, kcpAddr string, kcpPort int) (*proto.QueryC
log.Error("Unmarshal QueryCurrRegionHttpRsp error")
return nil, nil
}
secretKey, err := ioutil.ReadFile("static/dispatchSeed.bin")
secretKey, err := os.ReadFile("static/dispatchSeed.bin")
if err != nil {
log.Error("open dispatchSeed.bin error")
return nil, nil
@@ -2,9 +2,9 @@ package region
import (
"encoding/base64"
"flswld.com/gate-hk4e-api/proto"
"fmt"
pb "google.golang.org/protobuf/proto"
"hk4e/protocol/proto"
"testing"
)
+75
View File
@@ -0,0 +1,75 @@
package httpclient
import (
"bytes"
"encoding/json"
"io/ioutil"
"net/http"
"time"
)
var httpClient http.Client
func init() {
httpClient = http.Client{
Transport: &http.Transport{
DisableKeepAlives: true,
},
Timeout: time.Second * 60,
}
}
func Get[T any](url string, token string) (*T, error) {
req, err := http.NewRequest("GET", url, nil)
if err != nil {
return nil, err
}
if token != "" {
req.Header.Set("Authorization", "Bearer"+" "+token)
}
rsp, err := httpClient.Do(req)
if err != nil {
return nil, err
}
data, err := ioutil.ReadAll(rsp.Body)
_ = rsp.Body.Close()
if err != nil {
return nil, err
}
responseData := new(T)
err = json.Unmarshal(data, responseData)
if err != nil {
return nil, err
}
return responseData, nil
}
func Post[T any](url string, body any, token string) (*T, error) {
reqData, err := json.Marshal(body)
if err != nil {
return nil, err
}
req, err := http.NewRequest("POST", url, bytes.NewBuffer(reqData))
if err != nil {
return nil, err
}
req.Header.Set("Content-Type", "application/json")
if token != "" {
req.Header.Set("Authorization", "Bearer"+" "+token)
}
rsp, err := httpClient.Do(req)
if err != nil {
return nil, err
}
rspData, err := ioutil.ReadAll(rsp.Body)
_ = rsp.Body.Close()
if err != nil {
return nil, err
}
responseData := new(T)
err = json.Unmarshal(rspData, responseData)
if err != nil {
return nil, err
}
return responseData, nil
}
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
)
func ObjectDeepCopy(src, dest any) error {
func DeepCopy(src, dest any) error {
var buf bytes.Buffer
if err := gob.NewEncoder(&buf).Encode(src); err != nil {
return err
+14
View File
@@ -0,0 +1,14 @@
http_port = 8080
[hk4e]
kcp_addr = "hk4e.flswld.com"
kcp_port = 22103
login_sdk_url = "https://api.flswld.com/api/v1/auth/login"
[logger]
level = "DEBUG"
method = "CONSOLE"
track_line = true
[database]
url = "mongodb://mongo:27017"
+42
View File
@@ -0,0 +1,42 @@
package main
import (
"hk4e/common/config"
"hk4e/dispatch/controller"
"hk4e/dispatch/dao"
"hk4e/logger"
_ "net/http/pprof"
"os"
"os/signal"
"syscall"
"time"
)
func main() {
filePath := "./application.toml"
config.InitConfig(filePath)
logger.InitLogger("dispatch")
logger.LOG.Info("dispatch start")
db := dao.NewDao()
_ = controller.NewController(db)
c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)
for {
s := <-c
logger.LOG.Info("get a signal %s", s.String())
switch s {
case syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT:
logger.LOG.Info("dispatch exit")
db.CloseDao()
time.Sleep(time.Second)
return
case syscall.SIGHUP:
default:
return
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

@@ -1,10 +1,10 @@
package controller
import (
"flswld.com/logger"
"github.com/gin-gonic/gin"
"io/ioutil"
"hk4e/logger"
"net/http"
"os"
)
func (c *Controller) headDataVersions(context *gin.Context) {
@@ -14,7 +14,7 @@ func (c *Controller) headDataVersions(context *gin.Context) {
}
func (c *Controller) getDataVersions(context *gin.Context) {
dataVersions, err := ioutil.ReadFile("static/data_versions")
dataVersions, err := os.ReadFile("static/data_versions")
if err != nil {
logger.LOG.Error("open data_versions error")
return
@@ -29,7 +29,7 @@ func (c *Controller) headBlk(context *gin.Context) {
}
func (c *Controller) getBlk(context *gin.Context) {
blk, err := ioutil.ReadFile("static/29342328.blk")
blk, err := os.ReadFile("static/29342328.blk")
if err != nil {
logger.LOG.Error("open 29342328.blk error")
return
+144
View File
@@ -0,0 +1,144 @@
package controller
import (
"encoding/base64"
"github.com/gin-gonic/gin"
pb "google.golang.org/protobuf/proto"
"hk4e/common/config"
"hk4e/common/region"
"hk4e/dispatch/dao"
"hk4e/logger"
"net/http"
"strconv"
)
type Controller struct {
dao *dao.Dao
regionListBase64 string
regionCurrBase64 string
signRsaKey []byte
encRsaKeyMap map[string][]byte
pwdRsaKey []byte
}
func NewController(dao *dao.Dao) (r *Controller) {
r = new(Controller)
r.dao = dao
r.regionListBase64 = ""
r.regionCurrBase64 = ""
regionCurr, regionList := region.InitRegion(config.CONF.Hk4e.KcpAddr, config.CONF.Hk4e.KcpPort)
r.signRsaKey, r.encRsaKeyMap, r.pwdRsaKey = region.LoadRsaKey()
regionCurrModify, err := pb.Marshal(regionCurr)
if err != nil {
logger.LOG.Error("Marshal QueryCurrRegionHttpRsp error")
return nil
}
r.regionCurrBase64 = base64.StdEncoding.EncodeToString(regionCurrModify)
regionListModify, err := pb.Marshal(regionList)
if err != nil {
logger.LOG.Error("Marshal QueryRegionListHttpRsp error")
return nil
}
r.regionListBase64 = base64.StdEncoding.EncodeToString(regionListModify)
r.runEngine()
return r
}
func (c *Controller) runEngine() {
if config.CONF.Logger.Level == "DEBUG" {
gin.SetMode(gin.DebugMode)
} else {
gin.SetMode(gin.ReleaseMode)
}
go func() {
engine := c.registerRouter()
port := config.CONF.HttpPort
addr := ":" + strconv.FormatInt(int64(port), 10)
err := engine.Run(addr)
if err != nil {
logger.LOG.Error("gin run error: %v", err)
}
}()
}
func (c *Controller) registerRouter() *gin.Engine {
engine := gin.Default()
{
// 404
engine.NoRoute(func(context *gin.Context) {
logger.LOG.Info("no route find, fallback to fuck mhy, url: %v", context.Request.RequestURI)
context.Header("Content-type", "text/html; charset=UTF-8")
context.Status(http.StatusNotFound)
_, _ = context.Writer.WriteString("FUCK MHY")
})
}
{
// 调度
// dispatchosglobal.yuanshen.com
engine.GET("/query_security_file", c.query_security_file)
engine.GET("/query_region_list", c.query_region_list)
// osusadispatch.yuanshen.com
engine.GET("/query_cur_region", c.query_cur_region)
}
{
// 登录
// hk4e-sdk-os.hoyoverse.com
// 账号登录
engine.POST("/hk4e_global/mdk/shield/api/login", c.apiLogin)
// token登录
engine.POST("/hk4e_global/mdk/shield/api/verify", c.apiVerify)
// 获取combo token
engine.POST("/hk4e_global/combo/granter/login/v2/login", c.v2Login)
}
{
// BLK文件补丁下载
// autopatchhk.yuanshen.com
engine.HEAD("/client_design_data/2.6_live/output_6988297_84eeb1c18b/client_silence/General/AssetBundles/data_versions", c.headDataVersions)
engine.GET("/client_design_data/2.6_live/output_6988297_84eeb1c18b/client_silence/General/AssetBundles/data_versions", c.getDataVersions)
engine.HEAD("/client_design_data/2.6_live/output_6988297_84eeb1c18b/client_silence/General/AssetBundles/blocks/00/29342328.blk", c.headBlk)
engine.GET("/client_design_data/2.6_live/output_6988297_84eeb1c18b/client_silence/General/AssetBundles/blocks/00/29342328.blk", c.getBlk)
}
{
// 日志
engine.POST("/sdk/dataUpload", c.sdkDataUpload)
engine.GET("/perf/config/verify", c.perfConfigVerify)
engine.POST("/perf/dataUpload", c.perfDataUpload)
engine.POST("/log", c.log8888)
engine.POST("/crash/dataUpload", c.crashDataUpload)
}
{
// 返回固定数据
// Windows
engine.GET("/hk4e_global/mdk/agreement/api/getAgreementInfos", c.getAgreementInfos)
engine.POST("/hk4e_global/combo/granter/api/compareProtocolVersion", c.postCompareProtocolVersion)
engine.POST("/account/risky/api/check", c.check)
engine.GET("/combo/box/api/config/sdk/combo", c.combo)
engine.GET("/hk4e_global/combo/granter/api/getConfig", c.getConfig)
engine.GET("/hk4e_global/mdk/shield/api/loadConfig", c.loadConfig)
engine.POST("/data_abtest_api/config/experiment/list", c.list)
engine.GET("/admin/mi18n/plat_oversea/m2020030410/m2020030410-version.json", c.version10Json)
engine.GET("/admin/mi18n/plat_oversea/m2020030410/m2020030410-zh-cn.json", c.zhCN10Json)
engine.GET("/geetestV2.html", c.geetestV2)
// Android
engine.POST("/common/h5log/log/batch", c.batch)
engine.GET("/hk4e_global/combo/granter/api/getFont", c.getFont)
engine.GET("/admin/mi18n/plat_oversea/m202003049/m202003049-version.json", c.version9Json)
engine.GET("/admin/mi18n/plat_oversea/m202003049/m202003049-zh-cn.json", c.zhCN9Json)
engine.GET("/hk4e_global/combo/granter/api/compareProtocolVersion", c.getCompareProtocolVersion)
// Android geetest
engine.GET("/gettype.php", c.gettype)
engine.GET("/get.php", c.get)
engine.POST("/ajax.php", c.ajax)
engine.GET("/ajax.php", c.ajax)
engine.GET("/static/appweb/app3-index.html", c.app3Index)
engine.GET("/static/js/slide.7.8.6.js", c.slideJs)
engine.GET("/favicon.ico", c.faviconIco)
engine.GET("/static/js/gct.e7810b5b525994e2fb1f89135f8df14a.js", c.js)
engine.GET("/static/ant/style_https.1.2.6.css", c.css)
engine.GET("/pictures/gt/a330cf996/a330cf996.webp", c.webp)
engine.GET("/pictures/gt/a330cf996/bg/86f9db021.webp", c.bgWebp)
engine.GET("/pictures/gt/a330cf996/slice/86f9db021.png", c.slicePng)
engine.GET("/static/ant/sprite2x.1.2.6.png", c.sprite2xPng)
}
return engine
}
@@ -3,19 +3,19 @@ package controller
import (
"bytes"
"encoding/base64"
"flswld.com/common/utils/endec"
"flswld.com/logger"
"gate-hk4e/entity/api"
"github.com/gin-gonic/gin"
"io/ioutil"
"hk4e/common/utils/endec"
"hk4e/dispatch/entity/api"
"hk4e/logger"
"math"
"net/http"
"os"
"regexp"
"strconv"
)
func (c *Controller) query_security_file(context *gin.Context) {
file, err := ioutil.ReadFile("static/security_file")
file, err := os.ReadFile("static/security_file")
if err != nil {
logger.LOG.Error("open security_file error")
return
@@ -1,10 +1,10 @@
package controller
import (
"flswld.com/logger"
"github.com/gin-gonic/gin"
"io/ioutil"
"hk4e/logger"
"net/http"
"os"
"strings"
)
@@ -191,7 +191,7 @@ func (c *Controller) css(context *gin.Context) {
// GET https://static.geetest.com/pictures/gt/a330cf996/a330cf996.webp HTTP/1.1
func (c *Controller) webp(context *gin.Context) {
context.Header("Content-type", "image/webp")
file, err := ioutil.ReadFile("static/a330cf996.webp")
file, err := os.ReadFile("static/a330cf996.webp")
if err != nil {
logger.LOG.Error("open a330cf996.webp error")
return
@@ -202,7 +202,7 @@ func (c *Controller) webp(context *gin.Context) {
// GET https://static.geetest.com/pictures/gt/a330cf996/bg/86f9db021.webp HTTP/1.1
func (c *Controller) bgWebp(context *gin.Context) {
context.Header("Content-type", "image/webp")
file, err := ioutil.ReadFile("static/86f9db021.webp")
file, err := os.ReadFile("static/86f9db021.webp")
if err != nil {
logger.LOG.Error("open 86f9db021.webp error")
return
@@ -213,7 +213,7 @@ func (c *Controller) bgWebp(context *gin.Context) {
// GET https://static.geetest.com/pictures/gt/a330cf996/slice/86f9db021.png HTTP/1.1
func (c *Controller) slicePng(context *gin.Context) {
context.Header("Content-type", "image/png")
file, err := ioutil.ReadFile("static/86f9db021.png")
file, err := os.ReadFile("static/86f9db021.png")
if err != nil {
logger.LOG.Error("open 86f9db021.png error")
return
@@ -224,7 +224,7 @@ func (c *Controller) slicePng(context *gin.Context) {
// GET https://static.geetest.com/static/ant/sprite2x.1.2.6.png HTTP/1.1
func (c *Controller) sprite2xPng(context *gin.Context) {
context.Header("Content-type", "image/png")
file, err := ioutil.ReadFile("static/sprite2x.1.2.6.png")
file, err := os.ReadFile("static/sprite2x.1.2.6.png")
if err != nil {
logger.LOG.Error("open sprite2x.1.2.6.png error")
return
File renamed without changes.
@@ -1,27 +1,36 @@
package controller
import (
"crypto/md5"
"encoding/base64"
"encoding/hex"
"encoding/json"
providerApiEntity "flswld.com/annie-user-api/entity"
"flswld.com/common/utils/endec"
"flswld.com/common/utils/random"
"flswld.com/logger"
"gate-hk4e/entity/api"
"gate-hk4e/entity/db"
"github.com/gin-gonic/gin"
appConfig "hk4e/common/config"
"hk4e/common/utils/endec"
"hk4e/common/utils/httpclient"
"hk4e/common/utils/random"
"hk4e/dispatch/entity/api"
"hk4e/dispatch/entity/db"
"hk4e/logger"
"net/http"
"regexp"
"strconv"
"strings"
)
func (c *Controller) getMD5(src string) string {
ctx := md5.New()
ctx.Write([]byte(src))
return hex.EncodeToString(ctx.Sum(nil))
type SdkUserLoginReq struct {
Username string `json:"username"`
Password string `json:"password"`
}
type SdkUserLoginRsp struct {
Code int32 `json:"code"`
Msg string `json:"msg"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
Data struct {
Uid int32 `json:"uid"`
Username string `json:"username"`
} `json:"data"`
}
func (c *Controller) apiLogin(context *gin.Context) {
@@ -98,24 +107,37 @@ func (c *Controller) apiLogin(context *gin.Context) {
context.JSON(http.StatusOK, responseData)
return
}
userList := make([]providerApiEntity.User, 0)
ok = c.rpcUserConsumer.CallFunction("RpcService", "RpcQueryUser", &providerApiEntity.User{Username: username}, &userList)
if !ok {
// SDK账号登陆
sdkUserLoginRsp, err := httpclient.Post[SdkUserLoginRsp](appConfig.CONF.Hk4e.LoginSdkUrl, &SdkUserLoginReq{
Username: username,
Password: password,
}, "")
// TODO 测试账号
{
sdkUserLoginRsp = &SdkUserLoginRsp{
Code: 0,
Msg: "",
AccessToken: "",
RefreshToken: "",
Data: struct {
Uid int32 `json:"uid"`
Username string `json:"username"`
}{
Uid: 267042405,
Username: "FlourishingWorld",
},
}
err = nil
}
if err != nil {
responseData.Retcode = -201
responseData.Message = "服务器内部错误:-1"
context.JSON(http.StatusOK, responseData)
return
}
if len(userList) != 1 {
if sdkUserLoginRsp.Code != 0 {
responseData.Retcode = -201
responseData.Message = "用户名不存在"
context.JSON(http.StatusOK, responseData)
return
}
user := userList[0]
if c.getMD5(password) != user.Password {
responseData.Retcode = -201
responseData.Message = "用户名或密码错误"
responseData.Message = sdkUserLoginRsp.Msg
context.JSON(http.StatusOK, responseData)
return
}
@@ -135,7 +157,7 @@ func (c *Controller) apiLogin(context *gin.Context) {
return
}
regAccount := &db.Account{
Uid: user.Uid,
Uid: uint64(sdkUserLoginRsp.Data.Uid),
Username: username,
PlayerID: playerID,
Token: base64.StdEncoding.EncodeToString(random.GetRandomByte(24)),
@@ -2,12 +2,12 @@ package dao
import (
"context"
"flswld.com/logger"
dbEntity "gate-hk4e/entity/db"
"github.com/pkg/errors"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
dbEntity "hk4e/dispatch/entity/db"
"hk4e/logger"
)
func (d *Dao) GetNextYuanShenUid() (uint64, error) {
+34
View File
@@ -0,0 +1,34 @@
package dao
import (
"context"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"hk4e/common/config"
"hk4e/logger"
)
type Dao struct {
client *mongo.Client
db *mongo.Database
}
func NewDao() (r *Dao) {
r = new(Dao)
clientOptions := options.Client().ApplyURI(config.CONF.Database.Url)
client, err := mongo.Connect(context.TODO(), clientOptions)
if err != nil {
logger.LOG.Error("mongo connect error: %v", err)
return nil
}
r.client = client
r.db = client.Database("gate_hk4e")
return r
}
func (d *Dao) CloseDao() {
err := d.client.Disconnect(context.TODO())
if err != nil {
logger.LOG.Error("mongo close error: %v", err)
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+81
View File
@@ -0,0 +1,81 @@
package service
import (
"hk4e/dispatch/dao"
"hk4e/dispatch/entity/gm"
)
type Service struct {
dao *dao.Dao
}
// 用户密码改变
func (f *Service) UserPasswordChange(uid uint32) bool {
// dispatch登录态失效
_, err := f.dao.UpdateAccountFieldByFieldName("uid", uid, "token", "")
if err != nil {
return false
}
// 游戏内登录态失效
account, err := f.dao.QueryAccountByField("uid", uid)
if err != nil {
return false
}
if account == nil {
return false
}
//convId, exist := f.getConvIdByUserId(uint32(account.PlayerID))
//if !exist {
// return true
//}
//f.kcpEventInput <- &net.KcpEvent{
// ConvId: convId,
// EventId: net.KcpConnForceClose,
// EventMessage: uint32(kcp.EnetAccountPasswordChange),
//}
return true
}
// 封号
func (f *Service) ForbidUser(info *gm.ForbidUserInfo) bool {
if info == nil {
return false
}
// 写入账号封禁信息
_, err := f.dao.UpdateAccountFieldByFieldName("uid", info.UserId, "forbid", true)
if err != nil {
return false
}
_, err = f.dao.UpdateAccountFieldByFieldName("uid", info.UserId, "forbidEndTime", info.ForbidEndTime)
if err != nil {
return false
}
// 游戏强制下线
account, err := f.dao.QueryAccountByField("uid", info.UserId)
if err != nil {
return false
}
if account == nil {
return false
}
//convId, exist := f.getConvIdByUserId(uint32(account.PlayerID))
//if !exist {
// return true
//}
//f.kcpEventInput <- &net.KcpEvent{
// ConvId: convId,
// EventId: net.KcpConnForceClose,
// EventMessage: uint32(kcp.EnetServerKillClient),
//}
return true
}
// 解封
func (s *Service) UnForbidUser(uid uint32) bool {
// 解除账号封禁
_, err := s.dao.UpdateAccountFieldByFieldName("uid", uid, "forbid", false)
if err != nil {
return false
}
return true
}
-16
View File
@@ -1,16 +0,0 @@
module gate-hk4e-api
go 1.19
require flswld.com/common v0.0.0-incompatible // indirect
replace flswld.com/common => ../common
require flswld.com/logger v0.0.0-incompatible
replace flswld.com/logger => ../logger
require github.com/BurntSushi/toml v0.3.1 // indirect
// protobuf
require google.golang.org/protobuf v1.28.0
-10
View File
@@ -1,10 +0,0 @@
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
@@ -1,289 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AISnapshotEntityData.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AISnapshotEntityData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TickTime float32 `protobuf:"fixed32,5,opt,name=tick_time,json=tickTime,proto3" json:"tick_time,omitempty"`
Tactic uint32 `protobuf:"varint,2,opt,name=tactic,proto3" json:"tactic,omitempty"`
FinishedSkillCycles []*AISnapshotEntitySkillCycle `protobuf:"bytes,9,rep,name=finished_skill_cycles,json=finishedSkillCycles,proto3" json:"finished_skill_cycles,omitempty"`
MovedDistance float32 `protobuf:"fixed32,4,opt,name=moved_distance,json=movedDistance,proto3" json:"moved_distance,omitempty"`
AiTargetId uint32 `protobuf:"varint,13,opt,name=ai_target_id,json=aiTargetId,proto3" json:"ai_target_id,omitempty"`
ThreatTargetId uint32 `protobuf:"varint,3,opt,name=threat_target_id,json=threatTargetId,proto3" json:"threat_target_id,omitempty"`
ThreatListSize uint32 `protobuf:"varint,1,opt,name=threat_list_size,json=threatListSize,proto3" json:"threat_list_size,omitempty"`
EntityId uint32 `protobuf:"varint,15,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
HittingAvatars map[uint32]uint32 `protobuf:"bytes,7,rep,name=hitting_avatars,json=hittingAvatars,proto3" json:"hitting_avatars,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
DistanceToPlayer float32 `protobuf:"fixed32,11,opt,name=distance_to_player,json=distanceToPlayer,proto3" json:"distance_to_player,omitempty"`
AttackTargetId uint32 `protobuf:"varint,10,opt,name=attack_target_id,json=attackTargetId,proto3" json:"attack_target_id,omitempty"`
RealTime float32 `protobuf:"fixed32,14,opt,name=real_time,json=realTime,proto3" json:"real_time,omitempty"`
}
func (x *AISnapshotEntityData) Reset() {
*x = AISnapshotEntityData{}
if protoimpl.UnsafeEnabled {
mi := &file_AISnapshotEntityData_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AISnapshotEntityData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AISnapshotEntityData) ProtoMessage() {}
func (x *AISnapshotEntityData) ProtoReflect() protoreflect.Message {
mi := &file_AISnapshotEntityData_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AISnapshotEntityData.ProtoReflect.Descriptor instead.
func (*AISnapshotEntityData) Descriptor() ([]byte, []int) {
return file_AISnapshotEntityData_proto_rawDescGZIP(), []int{0}
}
func (x *AISnapshotEntityData) GetTickTime() float32 {
if x != nil {
return x.TickTime
}
return 0
}
func (x *AISnapshotEntityData) GetTactic() uint32 {
if x != nil {
return x.Tactic
}
return 0
}
func (x *AISnapshotEntityData) GetFinishedSkillCycles() []*AISnapshotEntitySkillCycle {
if x != nil {
return x.FinishedSkillCycles
}
return nil
}
func (x *AISnapshotEntityData) GetMovedDistance() float32 {
if x != nil {
return x.MovedDistance
}
return 0
}
func (x *AISnapshotEntityData) GetAiTargetId() uint32 {
if x != nil {
return x.AiTargetId
}
return 0
}
func (x *AISnapshotEntityData) GetThreatTargetId() uint32 {
if x != nil {
return x.ThreatTargetId
}
return 0
}
func (x *AISnapshotEntityData) GetThreatListSize() uint32 {
if x != nil {
return x.ThreatListSize
}
return 0
}
func (x *AISnapshotEntityData) GetEntityId() uint32 {
if x != nil {
return x.EntityId
}
return 0
}
func (x *AISnapshotEntityData) GetHittingAvatars() map[uint32]uint32 {
if x != nil {
return x.HittingAvatars
}
return nil
}
func (x *AISnapshotEntityData) GetDistanceToPlayer() float32 {
if x != nil {
return x.DistanceToPlayer
}
return 0
}
func (x *AISnapshotEntityData) GetAttackTargetId() uint32 {
if x != nil {
return x.AttackTargetId
}
return 0
}
func (x *AISnapshotEntityData) GetRealTime() float32 {
if x != nil {
return x.RealTime
}
return 0
}
var File_AISnapshotEntityData_proto protoreflect.FileDescriptor
var file_AISnapshotEntityData_proto_rawDesc = []byte{
0x0a, 0x1a, 0x41, 0x49, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x45, 0x6e, 0x74, 0x69,
0x74, 0x79, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x41, 0x49,
0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x6b,
0x69, 0x6c, 0x6c, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe2,
0x04, 0x0a, 0x14, 0x41, 0x49, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x45, 0x6e, 0x74,
0x69, 0x74, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x69, 0x63, 0x6b, 0x5f,
0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x74, 0x69, 0x63, 0x6b,
0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x63, 0x74, 0x69, 0x63, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x63, 0x74, 0x69, 0x63, 0x12, 0x4f, 0x0a, 0x15,
0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x63,
0x79, 0x63, 0x6c, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x41, 0x49,
0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x6b,
0x69, 0x6c, 0x6c, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x52, 0x13, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68,
0x65, 0x64, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x73, 0x12, 0x25, 0x0a,
0x0e, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18,
0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0d, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x44, 0x69, 0x73, 0x74,
0x61, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x61, 0x69, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65,
0x74, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x61, 0x69, 0x54, 0x61,
0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x68, 0x72, 0x65, 0x61, 0x74,
0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x0e, 0x74, 0x68, 0x72, 0x65, 0x61, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64,
0x12, 0x28, 0x0a, 0x10, 0x74, 0x68, 0x72, 0x65, 0x61, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f,
0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x74, 0x68, 0x72, 0x65,
0x61, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e,
0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x65,
0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x52, 0x0a, 0x0f, 0x68, 0x69, 0x74, 0x74, 0x69,
0x6e, 0x67, 0x5f, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x29, 0x2e, 0x41, 0x49, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x45, 0x6e, 0x74,
0x69, 0x74, 0x79, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x48, 0x69, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x41,
0x76, 0x61, 0x74, 0x61, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x68, 0x69, 0x74,
0x74, 0x69, 0x6e, 0x67, 0x41, 0x76, 0x61, 0x74, 0x61, 0x72, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x64,
0x69, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x70, 0x6c, 0x61, 0x79, 0x65,
0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x02, 0x52, 0x10, 0x64, 0x69, 0x73, 0x74, 0x61, 0x6e, 0x63,
0x65, 0x54, 0x6f, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x74, 0x74,
0x61, 0x63, 0x6b, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x0e, 0x61, 0x74, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x61, 0x72, 0x67, 0x65,
0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65,
0x18, 0x0e, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65,
0x1a, 0x41, 0x0a, 0x13, 0x48, 0x69, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x41, 0x76, 0x61, 0x74, 0x61,
0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
0x02, 0x38, 0x01, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AISnapshotEntityData_proto_rawDescOnce sync.Once
file_AISnapshotEntityData_proto_rawDescData = file_AISnapshotEntityData_proto_rawDesc
)
func file_AISnapshotEntityData_proto_rawDescGZIP() []byte {
file_AISnapshotEntityData_proto_rawDescOnce.Do(func() {
file_AISnapshotEntityData_proto_rawDescData = protoimpl.X.CompressGZIP(file_AISnapshotEntityData_proto_rawDescData)
})
return file_AISnapshotEntityData_proto_rawDescData
}
var file_AISnapshotEntityData_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_AISnapshotEntityData_proto_goTypes = []interface{}{
(*AISnapshotEntityData)(nil), // 0: AISnapshotEntityData
nil, // 1: AISnapshotEntityData.HittingAvatarsEntry
(*AISnapshotEntitySkillCycle)(nil), // 2: AISnapshotEntitySkillCycle
}
var file_AISnapshotEntityData_proto_depIdxs = []int32{
2, // 0: AISnapshotEntityData.finished_skill_cycles:type_name -> AISnapshotEntitySkillCycle
1, // 1: AISnapshotEntityData.hitting_avatars:type_name -> AISnapshotEntityData.HittingAvatarsEntry
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_AISnapshotEntityData_proto_init() }
func file_AISnapshotEntityData_proto_init() {
if File_AISnapshotEntityData_proto != nil {
return
}
file_AISnapshotEntitySkillCycle_proto_init()
if !protoimpl.UnsafeEnabled {
file_AISnapshotEntityData_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AISnapshotEntityData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AISnapshotEntityData_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AISnapshotEntityData_proto_goTypes,
DependencyIndexes: file_AISnapshotEntityData_proto_depIdxs,
MessageInfos: file_AISnapshotEntityData_proto_msgTypes,
}.Build()
File_AISnapshotEntityData_proto = out.File
file_AISnapshotEntityData_proto_rawDesc = nil
file_AISnapshotEntityData_proto_goTypes = nil
file_AISnapshotEntityData_proto_depIdxs = nil
}
@@ -1,198 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AISnapshotEntitySkillCycle.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AISnapshotEntitySkillCycle struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Failed bool `protobuf:"varint,12,opt,name=failed,proto3" json:"failed,omitempty"`
Trydoskill bool `protobuf:"varint,8,opt,name=trydoskill,proto3" json:"trydoskill,omitempty"`
Success bool `protobuf:"varint,9,opt,name=success,proto3" json:"success,omitempty"`
Selected bool `protobuf:"varint,1,opt,name=selected,proto3" json:"selected,omitempty"`
SkillId uint32 `protobuf:"varint,2,opt,name=skill_id,json=skillId,proto3" json:"skill_id,omitempty"`
}
func (x *AISnapshotEntitySkillCycle) Reset() {
*x = AISnapshotEntitySkillCycle{}
if protoimpl.UnsafeEnabled {
mi := &file_AISnapshotEntitySkillCycle_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AISnapshotEntitySkillCycle) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AISnapshotEntitySkillCycle) ProtoMessage() {}
func (x *AISnapshotEntitySkillCycle) ProtoReflect() protoreflect.Message {
mi := &file_AISnapshotEntitySkillCycle_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AISnapshotEntitySkillCycle.ProtoReflect.Descriptor instead.
func (*AISnapshotEntitySkillCycle) Descriptor() ([]byte, []int) {
return file_AISnapshotEntitySkillCycle_proto_rawDescGZIP(), []int{0}
}
func (x *AISnapshotEntitySkillCycle) GetFailed() bool {
if x != nil {
return x.Failed
}
return false
}
func (x *AISnapshotEntitySkillCycle) GetTrydoskill() bool {
if x != nil {
return x.Trydoskill
}
return false
}
func (x *AISnapshotEntitySkillCycle) GetSuccess() bool {
if x != nil {
return x.Success
}
return false
}
func (x *AISnapshotEntitySkillCycle) GetSelected() bool {
if x != nil {
return x.Selected
}
return false
}
func (x *AISnapshotEntitySkillCycle) GetSkillId() uint32 {
if x != nil {
return x.SkillId
}
return 0
}
var File_AISnapshotEntitySkillCycle_proto protoreflect.FileDescriptor
var file_AISnapshotEntitySkillCycle_proto_rawDesc = []byte{
0x0a, 0x20, 0x41, 0x49, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x45, 0x6e, 0x74, 0x69,
0x74, 0x79, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x43, 0x79, 0x63, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x1a, 0x41, 0x49, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f,
0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x43, 0x79, 0x63, 0x6c,
0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28,
0x08, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x72, 0x79,
0x64, 0x6f, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x74,
0x72, 0x79, 0x64, 0x6f, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63,
0x63, 0x65, 0x73, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63,
0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12,
0x19, 0x0a, 0x08, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x64, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f,
0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AISnapshotEntitySkillCycle_proto_rawDescOnce sync.Once
file_AISnapshotEntitySkillCycle_proto_rawDescData = file_AISnapshotEntitySkillCycle_proto_rawDesc
)
func file_AISnapshotEntitySkillCycle_proto_rawDescGZIP() []byte {
file_AISnapshotEntitySkillCycle_proto_rawDescOnce.Do(func() {
file_AISnapshotEntitySkillCycle_proto_rawDescData = protoimpl.X.CompressGZIP(file_AISnapshotEntitySkillCycle_proto_rawDescData)
})
return file_AISnapshotEntitySkillCycle_proto_rawDescData
}
var file_AISnapshotEntitySkillCycle_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AISnapshotEntitySkillCycle_proto_goTypes = []interface{}{
(*AISnapshotEntitySkillCycle)(nil), // 0: AISnapshotEntitySkillCycle
}
var file_AISnapshotEntitySkillCycle_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AISnapshotEntitySkillCycle_proto_init() }
func file_AISnapshotEntitySkillCycle_proto_init() {
if File_AISnapshotEntitySkillCycle_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AISnapshotEntitySkillCycle_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AISnapshotEntitySkillCycle); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AISnapshotEntitySkillCycle_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AISnapshotEntitySkillCycle_proto_goTypes,
DependencyIndexes: file_AISnapshotEntitySkillCycle_proto_depIdxs,
MessageInfos: file_AISnapshotEntitySkillCycle_proto_msgTypes,
}.Build()
File_AISnapshotEntitySkillCycle_proto = out.File
file_AISnapshotEntitySkillCycle_proto_rawDesc = nil
file_AISnapshotEntitySkillCycle_proto_goTypes = nil
file_AISnapshotEntitySkillCycle_proto_depIdxs = nil
}
-165
View File
@@ -1,165 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AISnapshotInfo.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AISnapshotInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AiSnapshots []*AISnapshotEntityData `protobuf:"bytes,13,rep,name=ai_snapshots,json=aiSnapshots,proto3" json:"ai_snapshots,omitempty"`
}
func (x *AISnapshotInfo) Reset() {
*x = AISnapshotInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_AISnapshotInfo_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AISnapshotInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AISnapshotInfo) ProtoMessage() {}
func (x *AISnapshotInfo) ProtoReflect() protoreflect.Message {
mi := &file_AISnapshotInfo_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AISnapshotInfo.ProtoReflect.Descriptor instead.
func (*AISnapshotInfo) Descriptor() ([]byte, []int) {
return file_AISnapshotInfo_proto_rawDescGZIP(), []int{0}
}
func (x *AISnapshotInfo) GetAiSnapshots() []*AISnapshotEntityData {
if x != nil {
return x.AiSnapshots
}
return nil
}
var File_AISnapshotInfo_proto protoreflect.FileDescriptor
var file_AISnapshotInfo_proto_rawDesc = []byte{
0x0a, 0x14, 0x41, 0x49, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x49, 0x6e, 0x66, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x41, 0x49, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68,
0x6f, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x0e, 0x41, 0x49, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74,
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x38, 0x0a, 0x0c, 0x61, 0x69, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73,
0x68, 0x6f, 0x74, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x41, 0x49, 0x53,
0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x44, 0x61, 0x74,
0x61, 0x52, 0x0b, 0x61, 0x69, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x73, 0x42, 0x0a,
0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_AISnapshotInfo_proto_rawDescOnce sync.Once
file_AISnapshotInfo_proto_rawDescData = file_AISnapshotInfo_proto_rawDesc
)
func file_AISnapshotInfo_proto_rawDescGZIP() []byte {
file_AISnapshotInfo_proto_rawDescOnce.Do(func() {
file_AISnapshotInfo_proto_rawDescData = protoimpl.X.CompressGZIP(file_AISnapshotInfo_proto_rawDescData)
})
return file_AISnapshotInfo_proto_rawDescData
}
var file_AISnapshotInfo_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AISnapshotInfo_proto_goTypes = []interface{}{
(*AISnapshotInfo)(nil), // 0: AISnapshotInfo
(*AISnapshotEntityData)(nil), // 1: AISnapshotEntityData
}
var file_AISnapshotInfo_proto_depIdxs = []int32{
1, // 0: AISnapshotInfo.ai_snapshots:type_name -> AISnapshotEntityData
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_AISnapshotInfo_proto_init() }
func file_AISnapshotInfo_proto_init() {
if File_AISnapshotInfo_proto != nil {
return
}
file_AISnapshotEntityData_proto_init()
if !protoimpl.UnsafeEnabled {
file_AISnapshotInfo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AISnapshotInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AISnapshotInfo_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AISnapshotInfo_proto_goTypes,
DependencyIndexes: file_AISnapshotInfo_proto_depIdxs,
MessageInfos: file_AISnapshotInfo_proto_msgTypes,
}.Build()
File_AISnapshotInfo_proto = out.File
file_AISnapshotInfo_proto_rawDesc = nil
file_AISnapshotInfo_proto_goTypes = nil
file_AISnapshotInfo_proto_depIdxs = nil
}
@@ -1,173 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionBlink.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionBlink struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rot *Vector `protobuf:"bytes,11,opt,name=rot,proto3" json:"rot,omitempty"`
Pos *Vector `protobuf:"bytes,10,opt,name=pos,proto3" json:"pos,omitempty"`
}
func (x *AbilityActionBlink) Reset() {
*x = AbilityActionBlink{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionBlink_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionBlink) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionBlink) ProtoMessage() {}
func (x *AbilityActionBlink) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionBlink_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionBlink.ProtoReflect.Descriptor instead.
func (*AbilityActionBlink) Descriptor() ([]byte, []int) {
return file_AbilityActionBlink_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionBlink) GetRot() *Vector {
if x != nil {
return x.Rot
}
return nil
}
func (x *AbilityActionBlink) GetPos() *Vector {
if x != nil {
return x.Pos
}
return nil
}
var File_AbilityActionBlink_proto protoreflect.FileDescriptor
var file_AbilityActionBlink_proto_rawDesc = []byte{
0x0a, 0x18, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42,
0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x56, 0x65, 0x63, 0x74,
0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x12, 0x41, 0x62, 0x69, 0x6c,
0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x19,
0x0a, 0x03, 0x72, 0x6f, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65,
0x63, 0x74, 0x6f, 0x72, 0x52, 0x03, 0x72, 0x6f, 0x74, 0x12, 0x19, 0x0a, 0x03, 0x70, 0x6f, 0x73,
0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52,
0x03, 0x70, 0x6f, 0x73, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityActionBlink_proto_rawDescOnce sync.Once
file_AbilityActionBlink_proto_rawDescData = file_AbilityActionBlink_proto_rawDesc
)
func file_AbilityActionBlink_proto_rawDescGZIP() []byte {
file_AbilityActionBlink_proto_rawDescOnce.Do(func() {
file_AbilityActionBlink_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionBlink_proto_rawDescData)
})
return file_AbilityActionBlink_proto_rawDescData
}
var file_AbilityActionBlink_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionBlink_proto_goTypes = []interface{}{
(*AbilityActionBlink)(nil), // 0: AbilityActionBlink
(*Vector)(nil), // 1: Vector
}
var file_AbilityActionBlink_proto_depIdxs = []int32{
1, // 0: AbilityActionBlink.rot:type_name -> Vector
1, // 1: AbilityActionBlink.pos:type_name -> Vector
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_AbilityActionBlink_proto_init() }
func file_AbilityActionBlink_proto_init() {
if File_AbilityActionBlink_proto != nil {
return
}
file_Vector_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityActionBlink_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionBlink); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionBlink_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionBlink_proto_goTypes,
DependencyIndexes: file_AbilityActionBlink_proto_depIdxs,
MessageInfos: file_AbilityActionBlink_proto_msgTypes,
}.Build()
File_AbilityActionBlink_proto = out.File
file_AbilityActionBlink_proto_rawDesc = nil
file_AbilityActionBlink_proto_goTypes = nil
file_AbilityActionBlink_proto_depIdxs = nil
}
@@ -1,183 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionCreateGadget.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionCreateGadget struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RoomId uint32 `protobuf:"varint,3,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
Rot *Vector `protobuf:"bytes,8,opt,name=rot,proto3" json:"rot,omitempty"`
Pos *Vector `protobuf:"bytes,11,opt,name=pos,proto3" json:"pos,omitempty"`
}
func (x *AbilityActionCreateGadget) Reset() {
*x = AbilityActionCreateGadget{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionCreateGadget_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionCreateGadget) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionCreateGadget) ProtoMessage() {}
func (x *AbilityActionCreateGadget) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionCreateGadget_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionCreateGadget.ProtoReflect.Descriptor instead.
func (*AbilityActionCreateGadget) Descriptor() ([]byte, []int) {
return file_AbilityActionCreateGadget_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionCreateGadget) GetRoomId() uint32 {
if x != nil {
return x.RoomId
}
return 0
}
func (x *AbilityActionCreateGadget) GetRot() *Vector {
if x != nil {
return x.Rot
}
return nil
}
func (x *AbilityActionCreateGadget) GetPos() *Vector {
if x != nil {
return x.Pos
}
return nil
}
var File_AbilityActionCreateGadget_proto protoreflect.FileDescriptor
var file_AbilityActionCreateGadget_proto_rawDesc = []byte{
0x0a, 0x1f, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x64, 0x67, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x0c, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0x6a, 0x0a, 0x19, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x64, 0x67, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x07,
0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x72,
0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x03, 0x72, 0x6f, 0x74, 0x18, 0x08, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x03, 0x72, 0x6f, 0x74,
0x12, 0x19, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e,
0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x42, 0x0a, 0x5a, 0x08, 0x2e,
0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityActionCreateGadget_proto_rawDescOnce sync.Once
file_AbilityActionCreateGadget_proto_rawDescData = file_AbilityActionCreateGadget_proto_rawDesc
)
func file_AbilityActionCreateGadget_proto_rawDescGZIP() []byte {
file_AbilityActionCreateGadget_proto_rawDescOnce.Do(func() {
file_AbilityActionCreateGadget_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionCreateGadget_proto_rawDescData)
})
return file_AbilityActionCreateGadget_proto_rawDescData
}
var file_AbilityActionCreateGadget_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionCreateGadget_proto_goTypes = []interface{}{
(*AbilityActionCreateGadget)(nil), // 0: AbilityActionCreateGadget
(*Vector)(nil), // 1: Vector
}
var file_AbilityActionCreateGadget_proto_depIdxs = []int32{
1, // 0: AbilityActionCreateGadget.rot:type_name -> Vector
1, // 1: AbilityActionCreateGadget.pos:type_name -> Vector
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_AbilityActionCreateGadget_proto_init() }
func file_AbilityActionCreateGadget_proto_init() {
if File_AbilityActionCreateGadget_proto != nil {
return
}
file_Vector_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityActionCreateGadget_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionCreateGadget); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionCreateGadget_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionCreateGadget_proto_goTypes,
DependencyIndexes: file_AbilityActionCreateGadget_proto_depIdxs,
MessageInfos: file_AbilityActionCreateGadget_proto_msgTypes,
}.Build()
File_AbilityActionCreateGadget_proto = out.File
file_AbilityActionCreateGadget_proto_rawDesc = nil
file_AbilityActionCreateGadget_proto_goTypes = nil
file_AbilityActionCreateGadget_proto_depIdxs = nil
}
@@ -1,174 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionCreateTile.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionCreateTile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rot *Vector `protobuf:"bytes,3,opt,name=rot,proto3" json:"rot,omitempty"`
Pos *Vector `protobuf:"bytes,8,opt,name=pos,proto3" json:"pos,omitempty"`
}
func (x *AbilityActionCreateTile) Reset() {
*x = AbilityActionCreateTile{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionCreateTile_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionCreateTile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionCreateTile) ProtoMessage() {}
func (x *AbilityActionCreateTile) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionCreateTile_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionCreateTile.ProtoReflect.Descriptor instead.
func (*AbilityActionCreateTile) Descriptor() ([]byte, []int) {
return file_AbilityActionCreateTile_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionCreateTile) GetRot() *Vector {
if x != nil {
return x.Rot
}
return nil
}
func (x *AbilityActionCreateTile) GetPos() *Vector {
if x != nil {
return x.Pos
}
return nil
}
var File_AbilityActionCreateTile_proto protoreflect.FileDescriptor
var file_AbilityActionCreateTile_proto_rawDesc = []byte{
0x0a, 0x1d, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43,
0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x0c, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a,
0x17, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x03, 0x72, 0x6f, 0x74, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x03,
0x72, 0x6f, 0x74, 0x12, 0x19, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x42, 0x0a,
0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_AbilityActionCreateTile_proto_rawDescOnce sync.Once
file_AbilityActionCreateTile_proto_rawDescData = file_AbilityActionCreateTile_proto_rawDesc
)
func file_AbilityActionCreateTile_proto_rawDescGZIP() []byte {
file_AbilityActionCreateTile_proto_rawDescOnce.Do(func() {
file_AbilityActionCreateTile_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionCreateTile_proto_rawDescData)
})
return file_AbilityActionCreateTile_proto_rawDescData
}
var file_AbilityActionCreateTile_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionCreateTile_proto_goTypes = []interface{}{
(*AbilityActionCreateTile)(nil), // 0: AbilityActionCreateTile
(*Vector)(nil), // 1: Vector
}
var file_AbilityActionCreateTile_proto_depIdxs = []int32{
1, // 0: AbilityActionCreateTile.rot:type_name -> Vector
1, // 1: AbilityActionCreateTile.pos:type_name -> Vector
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_AbilityActionCreateTile_proto_init() }
func file_AbilityActionCreateTile_proto_init() {
if File_AbilityActionCreateTile_proto != nil {
return
}
file_Vector_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityActionCreateTile_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionCreateTile); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionCreateTile_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionCreateTile_proto_goTypes,
DependencyIndexes: file_AbilityActionCreateTile_proto_depIdxs,
MessageInfos: file_AbilityActionCreateTile_proto_msgTypes,
}.Build()
File_AbilityActionCreateTile_proto = out.File
file_AbilityActionCreateTile_proto_rawDesc = nil
file_AbilityActionCreateTile_proto_goTypes = nil
file_AbilityActionCreateTile_proto_depIdxs = nil
}
@@ -1,174 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionDestroyTile.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionDestroyTile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rot *Vector `protobuf:"bytes,3,opt,name=rot,proto3" json:"rot,omitempty"`
Pos *Vector `protobuf:"bytes,1,opt,name=pos,proto3" json:"pos,omitempty"`
}
func (x *AbilityActionDestroyTile) Reset() {
*x = AbilityActionDestroyTile{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionDestroyTile_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionDestroyTile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionDestroyTile) ProtoMessage() {}
func (x *AbilityActionDestroyTile) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionDestroyTile_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionDestroyTile.ProtoReflect.Descriptor instead.
func (*AbilityActionDestroyTile) Descriptor() ([]byte, []int) {
return file_AbilityActionDestroyTile_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionDestroyTile) GetRot() *Vector {
if x != nil {
return x.Rot
}
return nil
}
func (x *AbilityActionDestroyTile) GetPos() *Vector {
if x != nil {
return x.Pos
}
return nil
}
var File_AbilityActionDestroyTile_proto protoreflect.FileDescriptor
var file_AbilityActionDestroyTile_proto_rawDesc = []byte{
0x0a, 0x1e, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44,
0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x54, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x0c, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x50,
0x0a, 0x18, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44,
0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x54, 0x69, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x03, 0x72, 0x6f,
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72,
0x52, 0x03, 0x72, 0x6f, 0x74, 0x12, 0x19, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x03, 0x70, 0x6f, 0x73,
0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityActionDestroyTile_proto_rawDescOnce sync.Once
file_AbilityActionDestroyTile_proto_rawDescData = file_AbilityActionDestroyTile_proto_rawDesc
)
func file_AbilityActionDestroyTile_proto_rawDescGZIP() []byte {
file_AbilityActionDestroyTile_proto_rawDescOnce.Do(func() {
file_AbilityActionDestroyTile_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionDestroyTile_proto_rawDescData)
})
return file_AbilityActionDestroyTile_proto_rawDescData
}
var file_AbilityActionDestroyTile_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionDestroyTile_proto_goTypes = []interface{}{
(*AbilityActionDestroyTile)(nil), // 0: AbilityActionDestroyTile
(*Vector)(nil), // 1: Vector
}
var file_AbilityActionDestroyTile_proto_depIdxs = []int32{
1, // 0: AbilityActionDestroyTile.rot:type_name -> Vector
1, // 1: AbilityActionDestroyTile.pos:type_name -> Vector
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_AbilityActionDestroyTile_proto_init() }
func file_AbilityActionDestroyTile_proto_init() {
if File_AbilityActionDestroyTile_proto != nil {
return
}
file_Vector_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityActionDestroyTile_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionDestroyTile); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionDestroyTile_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionDestroyTile_proto_goTypes,
DependencyIndexes: file_AbilityActionDestroyTile_proto_depIdxs,
MessageInfos: file_AbilityActionDestroyTile_proto_msgTypes,
}.Build()
File_AbilityActionDestroyTile_proto = out.File
file_AbilityActionDestroyTile_proto_rawDesc = nil
file_AbilityActionDestroyTile_proto_goTypes = nil
file_AbilityActionDestroyTile_proto_depIdxs = nil
}
@@ -1,163 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionFireAfterImage.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionFireAfterImage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Dir *Vector `protobuf:"bytes,12,opt,name=dir,proto3" json:"dir,omitempty"`
}
func (x *AbilityActionFireAfterImage) Reset() {
*x = AbilityActionFireAfterImage{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionFireAfterImage_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionFireAfterImage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionFireAfterImage) ProtoMessage() {}
func (x *AbilityActionFireAfterImage) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionFireAfterImage_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionFireAfterImage.ProtoReflect.Descriptor instead.
func (*AbilityActionFireAfterImage) Descriptor() ([]byte, []int) {
return file_AbilityActionFireAfterImage_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionFireAfterImage) GetDir() *Vector {
if x != nil {
return x.Dir
}
return nil
}
var File_AbilityActionFireAfterImage_proto protoreflect.FileDescriptor
var file_AbilityActionFireAfterImage_proto_rawDesc = []byte{
0x0a, 0x21, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x46,
0x69, 0x72, 0x65, 0x41, 0x66, 0x74, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x38, 0x0a, 0x1b, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69,
0x6f, 0x6e, 0x46, 0x69, 0x72, 0x65, 0x41, 0x66, 0x74, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65,
0x12, 0x19, 0x0a, 0x03, 0x64, 0x69, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e,
0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x03, 0x64, 0x69, 0x72, 0x42, 0x0a, 0x5a, 0x08, 0x2e,
0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityActionFireAfterImage_proto_rawDescOnce sync.Once
file_AbilityActionFireAfterImage_proto_rawDescData = file_AbilityActionFireAfterImage_proto_rawDesc
)
func file_AbilityActionFireAfterImage_proto_rawDescGZIP() []byte {
file_AbilityActionFireAfterImage_proto_rawDescOnce.Do(func() {
file_AbilityActionFireAfterImage_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionFireAfterImage_proto_rawDescData)
})
return file_AbilityActionFireAfterImage_proto_rawDescData
}
var file_AbilityActionFireAfterImage_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionFireAfterImage_proto_goTypes = []interface{}{
(*AbilityActionFireAfterImage)(nil), // 0: AbilityActionFireAfterImage
(*Vector)(nil), // 1: Vector
}
var file_AbilityActionFireAfterImage_proto_depIdxs = []int32{
1, // 0: AbilityActionFireAfterImage.dir:type_name -> Vector
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_AbilityActionFireAfterImage_proto_init() }
func file_AbilityActionFireAfterImage_proto_init() {
if File_AbilityActionFireAfterImage_proto != nil {
return
}
file_Vector_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityActionFireAfterImage_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionFireAfterImage); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionFireAfterImage_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionFireAfterImage_proto_goTypes,
DependencyIndexes: file_AbilityActionFireAfterImage_proto_depIdxs,
MessageInfos: file_AbilityActionFireAfterImage_proto_msgTypes,
}.Build()
File_AbilityActionFireAfterImage_proto = out.File
file_AbilityActionFireAfterImage_proto_rawDesc = nil
file_AbilityActionFireAfterImage_proto_goTypes = nil
file_AbilityActionFireAfterImage_proto_depIdxs = nil
}
@@ -1,184 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionGenerateElemBall.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionGenerateElemBall struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RoomId uint32 `protobuf:"varint,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
Pos *Vector `protobuf:"bytes,7,opt,name=pos,proto3" json:"pos,omitempty"`
Rot *Vector `protobuf:"bytes,13,opt,name=rot,proto3" json:"rot,omitempty"`
}
func (x *AbilityActionGenerateElemBall) Reset() {
*x = AbilityActionGenerateElemBall{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionGenerateElemBall_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionGenerateElemBall) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionGenerateElemBall) ProtoMessage() {}
func (x *AbilityActionGenerateElemBall) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionGenerateElemBall_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionGenerateElemBall.ProtoReflect.Descriptor instead.
func (*AbilityActionGenerateElemBall) Descriptor() ([]byte, []int) {
return file_AbilityActionGenerateElemBall_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionGenerateElemBall) GetRoomId() uint32 {
if x != nil {
return x.RoomId
}
return 0
}
func (x *AbilityActionGenerateElemBall) GetPos() *Vector {
if x != nil {
return x.Pos
}
return nil
}
func (x *AbilityActionGenerateElemBall) GetRot() *Vector {
if x != nil {
return x.Rot
}
return nil
}
var File_AbilityActionGenerateElemBall_proto protoreflect.FileDescriptor
var file_AbilityActionGenerateElemBall_proto_rawDesc = []byte{
0x0a, 0x23, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x47,
0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x6c, 0x65, 0x6d, 0x42, 0x61, 0x6c, 0x6c, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x6e, 0x0a, 0x1d, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x45, 0x6c, 0x65, 0x6d,
0x42, 0x61, 0x6c, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x19, 0x0a,
0x03, 0x70, 0x6f, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63,
0x74, 0x6f, 0x72, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x12, 0x19, 0x0a, 0x03, 0x72, 0x6f, 0x74, 0x18,
0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x03,
0x72, 0x6f, 0x74, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityActionGenerateElemBall_proto_rawDescOnce sync.Once
file_AbilityActionGenerateElemBall_proto_rawDescData = file_AbilityActionGenerateElemBall_proto_rawDesc
)
func file_AbilityActionGenerateElemBall_proto_rawDescGZIP() []byte {
file_AbilityActionGenerateElemBall_proto_rawDescOnce.Do(func() {
file_AbilityActionGenerateElemBall_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionGenerateElemBall_proto_rawDescData)
})
return file_AbilityActionGenerateElemBall_proto_rawDescData
}
var file_AbilityActionGenerateElemBall_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionGenerateElemBall_proto_goTypes = []interface{}{
(*AbilityActionGenerateElemBall)(nil), // 0: AbilityActionGenerateElemBall
(*Vector)(nil), // 1: Vector
}
var file_AbilityActionGenerateElemBall_proto_depIdxs = []int32{
1, // 0: AbilityActionGenerateElemBall.pos:type_name -> Vector
1, // 1: AbilityActionGenerateElemBall.rot:type_name -> Vector
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_AbilityActionGenerateElemBall_proto_init() }
func file_AbilityActionGenerateElemBall_proto_init() {
if File_AbilityActionGenerateElemBall_proto != nil {
return
}
file_Vector_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityActionGenerateElemBall_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionGenerateElemBall); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionGenerateElemBall_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionGenerateElemBall_proto_goTypes,
DependencyIndexes: file_AbilityActionGenerateElemBall_proto_depIdxs,
MessageInfos: file_AbilityActionGenerateElemBall_proto_msgTypes,
}.Build()
File_AbilityActionGenerateElemBall_proto = out.File
file_AbilityActionGenerateElemBall_proto_rawDesc = nil
file_AbilityActionGenerateElemBall_proto_goTypes = nil
file_AbilityActionGenerateElemBall_proto_depIdxs = nil
}
@@ -1,160 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionServerMonsterLog.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionServerMonsterLog struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ParamList []int32 `protobuf:"varint,2,rep,packed,name=param_list,json=paramList,proto3" json:"param_list,omitempty"`
}
func (x *AbilityActionServerMonsterLog) Reset() {
*x = AbilityActionServerMonsterLog{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionServerMonsterLog_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionServerMonsterLog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionServerMonsterLog) ProtoMessage() {}
func (x *AbilityActionServerMonsterLog) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionServerMonsterLog_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionServerMonsterLog.ProtoReflect.Descriptor instead.
func (*AbilityActionServerMonsterLog) Descriptor() ([]byte, []int) {
return file_AbilityActionServerMonsterLog_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionServerMonsterLog) GetParamList() []int32 {
if x != nil {
return x.ParamList
}
return nil
}
var File_AbilityActionServerMonsterLog_proto protoreflect.FileDescriptor
var file_AbilityActionServerMonsterLog_proto_rawDesc = []byte{
0x0a, 0x23, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x6f, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3e, 0x0a, 0x1d, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x6f, 0x6e, 0x73,
0x74, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x5f,
0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, 0x70, 0x61, 0x72, 0x61,
0x6d, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityActionServerMonsterLog_proto_rawDescOnce sync.Once
file_AbilityActionServerMonsterLog_proto_rawDescData = file_AbilityActionServerMonsterLog_proto_rawDesc
)
func file_AbilityActionServerMonsterLog_proto_rawDescGZIP() []byte {
file_AbilityActionServerMonsterLog_proto_rawDescOnce.Do(func() {
file_AbilityActionServerMonsterLog_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionServerMonsterLog_proto_rawDescData)
})
return file_AbilityActionServerMonsterLog_proto_rawDescData
}
var file_AbilityActionServerMonsterLog_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionServerMonsterLog_proto_goTypes = []interface{}{
(*AbilityActionServerMonsterLog)(nil), // 0: AbilityActionServerMonsterLog
}
var file_AbilityActionServerMonsterLog_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AbilityActionServerMonsterLog_proto_init() }
func file_AbilityActionServerMonsterLog_proto_init() {
if File_AbilityActionServerMonsterLog_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AbilityActionServerMonsterLog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionServerMonsterLog); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionServerMonsterLog_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionServerMonsterLog_proto_goTypes,
DependencyIndexes: file_AbilityActionServerMonsterLog_proto_depIdxs,
MessageInfos: file_AbilityActionServerMonsterLog_proto_msgTypes,
}.Build()
File_AbilityActionServerMonsterLog_proto = out.File
file_AbilityActionServerMonsterLog_proto_rawDesc = nil
file_AbilityActionServerMonsterLog_proto_goTypes = nil
file_AbilityActionServerMonsterLog_proto_depIdxs = nil
}
@@ -1,173 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionSetCrashDamage.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionSetCrashDamage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
HitPos *Vector `protobuf:"bytes,2,opt,name=hit_pos,json=hitPos,proto3" json:"hit_pos,omitempty"`
Damage float32 `protobuf:"fixed32,15,opt,name=damage,proto3" json:"damage,omitempty"`
}
func (x *AbilityActionSetCrashDamage) Reset() {
*x = AbilityActionSetCrashDamage{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionSetCrashDamage_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionSetCrashDamage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionSetCrashDamage) ProtoMessage() {}
func (x *AbilityActionSetCrashDamage) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionSetCrashDamage_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionSetCrashDamage.ProtoReflect.Descriptor instead.
func (*AbilityActionSetCrashDamage) Descriptor() ([]byte, []int) {
return file_AbilityActionSetCrashDamage_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionSetCrashDamage) GetHitPos() *Vector {
if x != nil {
return x.HitPos
}
return nil
}
func (x *AbilityActionSetCrashDamage) GetDamage() float32 {
if x != nil {
return x.Damage
}
return 0
}
var File_AbilityActionSetCrashDamage_proto protoreflect.FileDescriptor
var file_AbilityActionSetCrashDamage_proto_rawDesc = []byte{
0x0a, 0x21, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x65, 0x74, 0x43, 0x72, 0x61, 0x73, 0x68, 0x44, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x57, 0x0a, 0x1b, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69,
0x6f, 0x6e, 0x53, 0x65, 0x74, 0x43, 0x72, 0x61, 0x73, 0x68, 0x44, 0x61, 0x6d, 0x61, 0x67, 0x65,
0x12, 0x20, 0x0a, 0x07, 0x68, 0x69, 0x74, 0x5f, 0x70, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x68, 0x69, 0x74, 0x50,
0x6f, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x0f, 0x20, 0x01,
0x28, 0x02, 0x52, 0x06, 0x64, 0x61, 0x6d, 0x61, 0x67, 0x65, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f,
0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityActionSetCrashDamage_proto_rawDescOnce sync.Once
file_AbilityActionSetCrashDamage_proto_rawDescData = file_AbilityActionSetCrashDamage_proto_rawDesc
)
func file_AbilityActionSetCrashDamage_proto_rawDescGZIP() []byte {
file_AbilityActionSetCrashDamage_proto_rawDescOnce.Do(func() {
file_AbilityActionSetCrashDamage_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionSetCrashDamage_proto_rawDescData)
})
return file_AbilityActionSetCrashDamage_proto_rawDescData
}
var file_AbilityActionSetCrashDamage_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionSetCrashDamage_proto_goTypes = []interface{}{
(*AbilityActionSetCrashDamage)(nil), // 0: AbilityActionSetCrashDamage
(*Vector)(nil), // 1: Vector
}
var file_AbilityActionSetCrashDamage_proto_depIdxs = []int32{
1, // 0: AbilityActionSetCrashDamage.hit_pos:type_name -> Vector
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_AbilityActionSetCrashDamage_proto_init() }
func file_AbilityActionSetCrashDamage_proto_init() {
if File_AbilityActionSetCrashDamage_proto != nil {
return
}
file_Vector_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityActionSetCrashDamage_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionSetCrashDamage); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionSetCrashDamage_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionSetCrashDamage_proto_goTypes,
DependencyIndexes: file_AbilityActionSetCrashDamage_proto_depIdxs,
MessageInfos: file_AbilityActionSetCrashDamage_proto_msgTypes,
}.Build()
File_AbilityActionSetCrashDamage_proto = out.File
file_AbilityActionSetCrashDamage_proto_rawDesc = nil
file_AbilityActionSetCrashDamage_proto_goTypes = nil
file_AbilityActionSetCrashDamage_proto_depIdxs = nil
}
@@ -1,161 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionSetRandomOverrideMapValue.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionSetRandomOverrideMapValue struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RandomValue float32 `protobuf:"fixed32,1,opt,name=random_value,json=randomValue,proto3" json:"random_value,omitempty"`
}
func (x *AbilityActionSetRandomOverrideMapValue) Reset() {
*x = AbilityActionSetRandomOverrideMapValue{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionSetRandomOverrideMapValue_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionSetRandomOverrideMapValue) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionSetRandomOverrideMapValue) ProtoMessage() {}
func (x *AbilityActionSetRandomOverrideMapValue) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionSetRandomOverrideMapValue_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionSetRandomOverrideMapValue.ProtoReflect.Descriptor instead.
func (*AbilityActionSetRandomOverrideMapValue) Descriptor() ([]byte, []int) {
return file_AbilityActionSetRandomOverrideMapValue_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionSetRandomOverrideMapValue) GetRandomValue() float32 {
if x != nil {
return x.RandomValue
}
return 0
}
var File_AbilityActionSetRandomOverrideMapValue_proto protoreflect.FileDescriptor
var file_AbilityActionSetRandomOverrideMapValue_proto_rawDesc = []byte{
0x0a, 0x2c, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x65, 0x74, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65,
0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b,
0x0a, 0x26, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x65, 0x74, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65,
0x4d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x61, 0x6e, 0x64,
0x6f, 0x6d, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0b,
0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0a, 0x5a, 0x08, 0x2e,
0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityActionSetRandomOverrideMapValue_proto_rawDescOnce sync.Once
file_AbilityActionSetRandomOverrideMapValue_proto_rawDescData = file_AbilityActionSetRandomOverrideMapValue_proto_rawDesc
)
func file_AbilityActionSetRandomOverrideMapValue_proto_rawDescGZIP() []byte {
file_AbilityActionSetRandomOverrideMapValue_proto_rawDescOnce.Do(func() {
file_AbilityActionSetRandomOverrideMapValue_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionSetRandomOverrideMapValue_proto_rawDescData)
})
return file_AbilityActionSetRandomOverrideMapValue_proto_rawDescData
}
var file_AbilityActionSetRandomOverrideMapValue_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionSetRandomOverrideMapValue_proto_goTypes = []interface{}{
(*AbilityActionSetRandomOverrideMapValue)(nil), // 0: AbilityActionSetRandomOverrideMapValue
}
var file_AbilityActionSetRandomOverrideMapValue_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AbilityActionSetRandomOverrideMapValue_proto_init() }
func file_AbilityActionSetRandomOverrideMapValue_proto_init() {
if File_AbilityActionSetRandomOverrideMapValue_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AbilityActionSetRandomOverrideMapValue_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionSetRandomOverrideMapValue); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionSetRandomOverrideMapValue_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionSetRandomOverrideMapValue_proto_goTypes,
DependencyIndexes: file_AbilityActionSetRandomOverrideMapValue_proto_depIdxs,
MessageInfos: file_AbilityActionSetRandomOverrideMapValue_proto_msgTypes,
}.Build()
File_AbilityActionSetRandomOverrideMapValue_proto = out.File
file_AbilityActionSetRandomOverrideMapValue_proto_rawDesc = nil
file_AbilityActionSetRandomOverrideMapValue_proto_goTypes = nil
file_AbilityActionSetRandomOverrideMapValue_proto_depIdxs = nil
}
@@ -1,173 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionSummon.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionSummon struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Pos *Vector `protobuf:"bytes,10,opt,name=pos,proto3" json:"pos,omitempty"`
Rot *Vector `protobuf:"bytes,1,opt,name=rot,proto3" json:"rot,omitempty"`
}
func (x *AbilityActionSummon) Reset() {
*x = AbilityActionSummon{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionSummon_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionSummon) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionSummon) ProtoMessage() {}
func (x *AbilityActionSummon) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionSummon_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionSummon.ProtoReflect.Descriptor instead.
func (*AbilityActionSummon) Descriptor() ([]byte, []int) {
return file_AbilityActionSummon_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionSummon) GetPos() *Vector {
if x != nil {
return x.Pos
}
return nil
}
func (x *AbilityActionSummon) GetRot() *Vector {
if x != nil {
return x.Rot
}
return nil
}
var File_AbilityActionSummon_proto protoreflect.FileDescriptor
var file_AbilityActionSummon_proto_rawDesc = []byte{
0x0a, 0x19, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x75, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x56, 0x65, 0x63,
0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x13, 0x41, 0x62, 0x69,
0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x6d, 0x6d, 0x6f, 0x6e,
0x12, 0x19, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e,
0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x03, 0x70, 0x6f, 0x73, 0x12, 0x19, 0x0a, 0x03, 0x72,
0x6f, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f,
0x72, 0x52, 0x03, 0x72, 0x6f, 0x74, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityActionSummon_proto_rawDescOnce sync.Once
file_AbilityActionSummon_proto_rawDescData = file_AbilityActionSummon_proto_rawDesc
)
func file_AbilityActionSummon_proto_rawDescGZIP() []byte {
file_AbilityActionSummon_proto_rawDescOnce.Do(func() {
file_AbilityActionSummon_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionSummon_proto_rawDescData)
})
return file_AbilityActionSummon_proto_rawDescData
}
var file_AbilityActionSummon_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionSummon_proto_goTypes = []interface{}{
(*AbilityActionSummon)(nil), // 0: AbilityActionSummon
(*Vector)(nil), // 1: Vector
}
var file_AbilityActionSummon_proto_depIdxs = []int32{
1, // 0: AbilityActionSummon.pos:type_name -> Vector
1, // 1: AbilityActionSummon.rot:type_name -> Vector
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_AbilityActionSummon_proto_init() }
func file_AbilityActionSummon_proto_init() {
if File_AbilityActionSummon_proto != nil {
return
}
file_Vector_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityActionSummon_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionSummon); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionSummon_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionSummon_proto_goTypes,
DependencyIndexes: file_AbilityActionSummon_proto_depIdxs,
MessageInfos: file_AbilityActionSummon_proto_msgTypes,
}.Build()
File_AbilityActionSummon_proto = out.File
file_AbilityActionSummon_proto_rawDesc = nil
file_AbilityActionSummon_proto_goTypes = nil
file_AbilityActionSummon_proto_depIdxs = nil
}
@@ -1,160 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityActionTriggerAbility.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityActionTriggerAbility struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
OtherId uint32 `protobuf:"varint,14,opt,name=other_id,json=otherId,proto3" json:"other_id,omitempty"`
}
func (x *AbilityActionTriggerAbility) Reset() {
*x = AbilityActionTriggerAbility{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityActionTriggerAbility_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityActionTriggerAbility) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityActionTriggerAbility) ProtoMessage() {}
func (x *AbilityActionTriggerAbility) ProtoReflect() protoreflect.Message {
mi := &file_AbilityActionTriggerAbility_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityActionTriggerAbility.ProtoReflect.Descriptor instead.
func (*AbilityActionTriggerAbility) Descriptor() ([]byte, []int) {
return file_AbilityActionTriggerAbility_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityActionTriggerAbility) GetOtherId() uint32 {
if x != nil {
return x.OtherId
}
return 0
}
var File_AbilityActionTriggerAbility_proto protoreflect.FileDescriptor
var file_AbilityActionTriggerAbility_proto_rawDesc = []byte{
0x0a, 0x21, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54,
0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x22, 0x38, 0x0a, 0x1b, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x41, 0x62, 0x69, 0x6c, 0x69,
0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x0e,
0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x49, 0x64, 0x42, 0x0a, 0x5a,
0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_AbilityActionTriggerAbility_proto_rawDescOnce sync.Once
file_AbilityActionTriggerAbility_proto_rawDescData = file_AbilityActionTriggerAbility_proto_rawDesc
)
func file_AbilityActionTriggerAbility_proto_rawDescGZIP() []byte {
file_AbilityActionTriggerAbility_proto_rawDescOnce.Do(func() {
file_AbilityActionTriggerAbility_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityActionTriggerAbility_proto_rawDescData)
})
return file_AbilityActionTriggerAbility_proto_rawDescData
}
var file_AbilityActionTriggerAbility_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityActionTriggerAbility_proto_goTypes = []interface{}{
(*AbilityActionTriggerAbility)(nil), // 0: AbilityActionTriggerAbility
}
var file_AbilityActionTriggerAbility_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AbilityActionTriggerAbility_proto_init() }
func file_AbilityActionTriggerAbility_proto_init() {
if File_AbilityActionTriggerAbility_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AbilityActionTriggerAbility_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityActionTriggerAbility); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityActionTriggerAbility_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityActionTriggerAbility_proto_goTypes,
DependencyIndexes: file_AbilityActionTriggerAbility_proto_depIdxs,
MessageInfos: file_AbilityActionTriggerAbility_proto_msgTypes,
}.Build()
File_AbilityActionTriggerAbility_proto = out.File
file_AbilityActionTriggerAbility_proto_rawDesc = nil
file_AbilityActionTriggerAbility_proto_goTypes = nil
file_AbilityActionTriggerAbility_proto_depIdxs = nil
}
@@ -1,205 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityAppliedAbility.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityAppliedAbility struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AbilityName *AbilityString `protobuf:"bytes,1,opt,name=ability_name,json=abilityName,proto3" json:"ability_name,omitempty"`
AbilityOverride *AbilityString `protobuf:"bytes,2,opt,name=ability_override,json=abilityOverride,proto3" json:"ability_override,omitempty"`
OverrideMap []*AbilityScalarValueEntry `protobuf:"bytes,3,rep,name=override_map,json=overrideMap,proto3" json:"override_map,omitempty"`
InstancedAbilityId uint32 `protobuf:"varint,4,opt,name=instanced_ability_id,json=instancedAbilityId,proto3" json:"instanced_ability_id,omitempty"`
}
func (x *AbilityAppliedAbility) Reset() {
*x = AbilityAppliedAbility{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityAppliedAbility_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityAppliedAbility) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityAppliedAbility) ProtoMessage() {}
func (x *AbilityAppliedAbility) ProtoReflect() protoreflect.Message {
mi := &file_AbilityAppliedAbility_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityAppliedAbility.ProtoReflect.Descriptor instead.
func (*AbilityAppliedAbility) Descriptor() ([]byte, []int) {
return file_AbilityAppliedAbility_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityAppliedAbility) GetAbilityName() *AbilityString {
if x != nil {
return x.AbilityName
}
return nil
}
func (x *AbilityAppliedAbility) GetAbilityOverride() *AbilityString {
if x != nil {
return x.AbilityOverride
}
return nil
}
func (x *AbilityAppliedAbility) GetOverrideMap() []*AbilityScalarValueEntry {
if x != nil {
return x.OverrideMap
}
return nil
}
func (x *AbilityAppliedAbility) GetInstancedAbilityId() uint32 {
if x != nil {
return x.InstancedAbilityId
}
return 0
}
var File_AbilityAppliedAbility_proto protoreflect.FileDescriptor
var file_AbilityAppliedAbility_proto_rawDesc = []byte{
0x0a, 0x1b, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64,
0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x41,
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x41, 0x62,
0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0xf4, 0x01, 0x0a, 0x15, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x70, 0x70,
0x6c, 0x69, 0x65, 0x64, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x31, 0x0a, 0x0c, 0x61,
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x0e, 0x2e, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e,
0x67, 0x52, 0x0b, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39,
0x0a, 0x10, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69,
0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x41, 0x62, 0x69, 0x6c, 0x69,
0x74, 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x0f, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
0x79, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x6f, 0x76, 0x65,
0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x18, 0x2e, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x6f, 0x76, 0x65, 0x72, 0x72,
0x69, 0x64, 0x65, 0x4d, 0x61, 0x70, 0x12, 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
0x63, 0x65, 0x64, 0x5f, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04,
0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x41,
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x49, 0x64, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityAppliedAbility_proto_rawDescOnce sync.Once
file_AbilityAppliedAbility_proto_rawDescData = file_AbilityAppliedAbility_proto_rawDesc
)
func file_AbilityAppliedAbility_proto_rawDescGZIP() []byte {
file_AbilityAppliedAbility_proto_rawDescOnce.Do(func() {
file_AbilityAppliedAbility_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityAppliedAbility_proto_rawDescData)
})
return file_AbilityAppliedAbility_proto_rawDescData
}
var file_AbilityAppliedAbility_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityAppliedAbility_proto_goTypes = []interface{}{
(*AbilityAppliedAbility)(nil), // 0: AbilityAppliedAbility
(*AbilityString)(nil), // 1: AbilityString
(*AbilityScalarValueEntry)(nil), // 2: AbilityScalarValueEntry
}
var file_AbilityAppliedAbility_proto_depIdxs = []int32{
1, // 0: AbilityAppliedAbility.ability_name:type_name -> AbilityString
1, // 1: AbilityAppliedAbility.ability_override:type_name -> AbilityString
2, // 2: AbilityAppliedAbility.override_map:type_name -> AbilityScalarValueEntry
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_AbilityAppliedAbility_proto_init() }
func file_AbilityAppliedAbility_proto_init() {
if File_AbilityAppliedAbility_proto != nil {
return
}
file_AbilityScalarValueEntry_proto_init()
file_AbilityString_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityAppliedAbility_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityAppliedAbility); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityAppliedAbility_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityAppliedAbility_proto_goTypes,
DependencyIndexes: file_AbilityAppliedAbility_proto_depIdxs,
MessageInfos: file_AbilityAppliedAbility_proto_msgTypes,
}.Build()
File_AbilityAppliedAbility_proto = out.File
file_AbilityAppliedAbility_proto_rawDesc = nil
file_AbilityAppliedAbility_proto_goTypes = nil
file_AbilityAppliedAbility_proto_depIdxs = nil
}
@@ -1,313 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityAppliedModifier.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityAppliedModifier struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ModifierLocalId int32 `protobuf:"varint,1,opt,name=modifier_local_id,json=modifierLocalId,proto3" json:"modifier_local_id,omitempty"`
ParentAbilityEntityId uint32 `protobuf:"varint,2,opt,name=parent_ability_entity_id,json=parentAbilityEntityId,proto3" json:"parent_ability_entity_id,omitempty"`
ParentAbilityName *AbilityString `protobuf:"bytes,3,opt,name=parent_ability_name,json=parentAbilityName,proto3" json:"parent_ability_name,omitempty"`
ParentAbilityOverride *AbilityString `protobuf:"bytes,4,opt,name=parent_ability_override,json=parentAbilityOverride,proto3" json:"parent_ability_override,omitempty"`
InstancedAbilityId uint32 `protobuf:"varint,5,opt,name=instanced_ability_id,json=instancedAbilityId,proto3" json:"instanced_ability_id,omitempty"`
InstancedModifierId uint32 `protobuf:"varint,6,opt,name=instanced_modifier_id,json=instancedModifierId,proto3" json:"instanced_modifier_id,omitempty"`
ExistDuration float32 `protobuf:"fixed32,7,opt,name=exist_duration,json=existDuration,proto3" json:"exist_duration,omitempty"`
AttachedInstancedModifier *AbilityAttachedModifier `protobuf:"bytes,8,opt,name=attached_instanced_modifier,json=attachedInstancedModifier,proto3" json:"attached_instanced_modifier,omitempty"`
ApplyEntityId uint32 `protobuf:"varint,9,opt,name=apply_entity_id,json=applyEntityId,proto3" json:"apply_entity_id,omitempty"`
IsAttachedParentAbility bool `protobuf:"varint,10,opt,name=is_attached_parent_ability,json=isAttachedParentAbility,proto3" json:"is_attached_parent_ability,omitempty"`
ModifierDurability *ModifierDurability `protobuf:"bytes,11,opt,name=modifier_durability,json=modifierDurability,proto3" json:"modifier_durability,omitempty"`
SbuffUid uint32 `protobuf:"varint,12,opt,name=sbuff_uid,json=sbuffUid,proto3" json:"sbuff_uid,omitempty"`
IsServerbuffModifier bool `protobuf:"varint,13,opt,name=is_serverbuff_modifier,json=isServerbuffModifier,proto3" json:"is_serverbuff_modifier,omitempty"`
}
func (x *AbilityAppliedModifier) Reset() {
*x = AbilityAppliedModifier{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityAppliedModifier_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityAppliedModifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityAppliedModifier) ProtoMessage() {}
func (x *AbilityAppliedModifier) ProtoReflect() protoreflect.Message {
mi := &file_AbilityAppliedModifier_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityAppliedModifier.ProtoReflect.Descriptor instead.
func (*AbilityAppliedModifier) Descriptor() ([]byte, []int) {
return file_AbilityAppliedModifier_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityAppliedModifier) GetModifierLocalId() int32 {
if x != nil {
return x.ModifierLocalId
}
return 0
}
func (x *AbilityAppliedModifier) GetParentAbilityEntityId() uint32 {
if x != nil {
return x.ParentAbilityEntityId
}
return 0
}
func (x *AbilityAppliedModifier) GetParentAbilityName() *AbilityString {
if x != nil {
return x.ParentAbilityName
}
return nil
}
func (x *AbilityAppliedModifier) GetParentAbilityOverride() *AbilityString {
if x != nil {
return x.ParentAbilityOverride
}
return nil
}
func (x *AbilityAppliedModifier) GetInstancedAbilityId() uint32 {
if x != nil {
return x.InstancedAbilityId
}
return 0
}
func (x *AbilityAppliedModifier) GetInstancedModifierId() uint32 {
if x != nil {
return x.InstancedModifierId
}
return 0
}
func (x *AbilityAppliedModifier) GetExistDuration() float32 {
if x != nil {
return x.ExistDuration
}
return 0
}
func (x *AbilityAppliedModifier) GetAttachedInstancedModifier() *AbilityAttachedModifier {
if x != nil {
return x.AttachedInstancedModifier
}
return nil
}
func (x *AbilityAppliedModifier) GetApplyEntityId() uint32 {
if x != nil {
return x.ApplyEntityId
}
return 0
}
func (x *AbilityAppliedModifier) GetIsAttachedParentAbility() bool {
if x != nil {
return x.IsAttachedParentAbility
}
return false
}
func (x *AbilityAppliedModifier) GetModifierDurability() *ModifierDurability {
if x != nil {
return x.ModifierDurability
}
return nil
}
func (x *AbilityAppliedModifier) GetSbuffUid() uint32 {
if x != nil {
return x.SbuffUid
}
return 0
}
func (x *AbilityAppliedModifier) GetIsServerbuffModifier() bool {
if x != nil {
return x.IsServerbuffModifier
}
return false
}
var File_AbilityAppliedModifier_proto protoreflect.FileDescriptor
var file_AbilityAppliedModifier_proto_rawDesc = []byte{
0x0a, 0x1c, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64,
0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d,
0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x4d,
0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x41,
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x18, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x44, 0x75, 0x72, 0x61,
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xea, 0x05, 0x0a,
0x16, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x4d,
0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x6f, 0x64, 0x69, 0x66,
0x69, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x05, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x61,
0x6c, 0x49, 0x64, 0x12, 0x37, 0x0a, 0x18, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x62,
0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x15, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x41, 0x62, 0x69,
0x6c, 0x69, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x13,
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x41, 0x62, 0x69, 0x6c,
0x69, 0x74, 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x11, 0x70, 0x61, 0x72, 0x65, 0x6e,
0x74, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x17,
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6f,
0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e,
0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x15, 0x70,
0x61, 0x72, 0x65, 0x6e, 0x74, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x76, 0x65, 0x72,
0x72, 0x69, 0x64, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
0x64, 0x5f, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01,
0x28, 0x0d, 0x52, 0x12, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x41, 0x62, 0x69,
0x6c, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
0x63, 0x65, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x64,
0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x78,
0x69, 0x73, 0x74, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01,
0x28, 0x02, 0x52, 0x0d, 0x65, 0x78, 0x69, 0x73, 0x74, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x12, 0x58, 0x0a, 0x1b, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x69, 0x6e,
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72,
0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72,
0x52, 0x19, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
0x63, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x0f, 0x61,
0x70, 0x70, 0x6c, 0x79, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x09,
0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x45, 0x6e, 0x74, 0x69, 0x74,
0x79, 0x49, 0x64, 0x12, 0x3b, 0x0a, 0x1a, 0x69, 0x73, 0x5f, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68,
0x65, 0x64, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x69, 0x73, 0x41, 0x74, 0x74, 0x61, 0x63,
0x68, 0x65, 0x64, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
0x12, 0x44, 0x0a, 0x13, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x64, 0x75, 0x72,
0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e,
0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x44, 0x75, 0x72, 0x61, 0x62, 0x69, 0x6c, 0x69,
0x74, 0x79, 0x52, 0x12, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x44, 0x75, 0x72, 0x61,
0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x62, 0x75, 0x66, 0x66, 0x5f,
0x75, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x62, 0x75, 0x66, 0x66,
0x55, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x69, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
0x62, 0x75, 0x66, 0x66, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x0d, 0x20,
0x01, 0x28, 0x08, 0x52, 0x14, 0x69, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x62, 0x75, 0x66,
0x66, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityAppliedModifier_proto_rawDescOnce sync.Once
file_AbilityAppliedModifier_proto_rawDescData = file_AbilityAppliedModifier_proto_rawDesc
)
func file_AbilityAppliedModifier_proto_rawDescGZIP() []byte {
file_AbilityAppliedModifier_proto_rawDescOnce.Do(func() {
file_AbilityAppliedModifier_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityAppliedModifier_proto_rawDescData)
})
return file_AbilityAppliedModifier_proto_rawDescData
}
var file_AbilityAppliedModifier_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityAppliedModifier_proto_goTypes = []interface{}{
(*AbilityAppliedModifier)(nil), // 0: AbilityAppliedModifier
(*AbilityString)(nil), // 1: AbilityString
(*AbilityAttachedModifier)(nil), // 2: AbilityAttachedModifier
(*ModifierDurability)(nil), // 3: ModifierDurability
}
var file_AbilityAppliedModifier_proto_depIdxs = []int32{
1, // 0: AbilityAppliedModifier.parent_ability_name:type_name -> AbilityString
1, // 1: AbilityAppliedModifier.parent_ability_override:type_name -> AbilityString
2, // 2: AbilityAppliedModifier.attached_instanced_modifier:type_name -> AbilityAttachedModifier
3, // 3: AbilityAppliedModifier.modifier_durability:type_name -> ModifierDurability
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_AbilityAppliedModifier_proto_init() }
func file_AbilityAppliedModifier_proto_init() {
if File_AbilityAppliedModifier_proto != nil {
return
}
file_AbilityAttachedModifier_proto_init()
file_AbilityString_proto_init()
file_ModifierDurability_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityAppliedModifier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityAppliedModifier); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityAppliedModifier_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityAppliedModifier_proto_goTypes,
DependencyIndexes: file_AbilityAppliedModifier_proto_depIdxs,
MessageInfos: file_AbilityAppliedModifier_proto_msgTypes,
}.Build()
File_AbilityAppliedModifier_proto = out.File
file_AbilityAppliedModifier_proto_rawDesc = nil
file_AbilityAppliedModifier_proto_goTypes = nil
file_AbilityAppliedModifier_proto_depIdxs = nil
}
@@ -1,160 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityApplyLevelModifier.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityApplyLevelModifier struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ApplyEntityId uint32 `protobuf:"varint,6,opt,name=apply_entity_id,json=applyEntityId,proto3" json:"apply_entity_id,omitempty"`
}
func (x *AbilityApplyLevelModifier) Reset() {
*x = AbilityApplyLevelModifier{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityApplyLevelModifier_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityApplyLevelModifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityApplyLevelModifier) ProtoMessage() {}
func (x *AbilityApplyLevelModifier) ProtoReflect() protoreflect.Message {
mi := &file_AbilityApplyLevelModifier_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityApplyLevelModifier.ProtoReflect.Descriptor instead.
func (*AbilityApplyLevelModifier) Descriptor() ([]byte, []int) {
return file_AbilityApplyLevelModifier_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityApplyLevelModifier) GetApplyEntityId() uint32 {
if x != nil {
return x.ApplyEntityId
}
return 0
}
var File_AbilityApplyLevelModifier_proto protoreflect.FileDescriptor
var file_AbilityApplyLevelModifier_proto_rawDesc = []byte{
0x0a, 0x1f, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x4c, 0x65,
0x76, 0x65, 0x6c, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x43, 0x0a, 0x19, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x70, 0x70, 0x6c,
0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x26,
0x0a, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69,
0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x45, 0x6e,
0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityApplyLevelModifier_proto_rawDescOnce sync.Once
file_AbilityApplyLevelModifier_proto_rawDescData = file_AbilityApplyLevelModifier_proto_rawDesc
)
func file_AbilityApplyLevelModifier_proto_rawDescGZIP() []byte {
file_AbilityApplyLevelModifier_proto_rawDescOnce.Do(func() {
file_AbilityApplyLevelModifier_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityApplyLevelModifier_proto_rawDescData)
})
return file_AbilityApplyLevelModifier_proto_rawDescData
}
var file_AbilityApplyLevelModifier_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityApplyLevelModifier_proto_goTypes = []interface{}{
(*AbilityApplyLevelModifier)(nil), // 0: AbilityApplyLevelModifier
}
var file_AbilityApplyLevelModifier_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AbilityApplyLevelModifier_proto_init() }
func file_AbilityApplyLevelModifier_proto_init() {
if File_AbilityApplyLevelModifier_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AbilityApplyLevelModifier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityApplyLevelModifier); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityApplyLevelModifier_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityApplyLevelModifier_proto_goTypes,
DependencyIndexes: file_AbilityApplyLevelModifier_proto_depIdxs,
MessageInfos: file_AbilityApplyLevelModifier_proto_msgTypes,
}.Build()
File_AbilityApplyLevelModifier_proto = out.File
file_AbilityApplyLevelModifier_proto_rawDesc = nil
file_AbilityApplyLevelModifier_proto_goTypes = nil
file_AbilityApplyLevelModifier_proto_depIdxs = nil
}
-214
View File
@@ -1,214 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityArgument.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityArgument struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Arg:
// *AbilityArgument_IntArg
// *AbilityArgument_FloatArg
// *AbilityArgument_StrArg
Arg isAbilityArgument_Arg `protobuf_oneof:"arg"`
}
func (x *AbilityArgument) Reset() {
*x = AbilityArgument{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityArgument_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityArgument) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityArgument) ProtoMessage() {}
func (x *AbilityArgument) ProtoReflect() protoreflect.Message {
mi := &file_AbilityArgument_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityArgument.ProtoReflect.Descriptor instead.
func (*AbilityArgument) Descriptor() ([]byte, []int) {
return file_AbilityArgument_proto_rawDescGZIP(), []int{0}
}
func (m *AbilityArgument) GetArg() isAbilityArgument_Arg {
if m != nil {
return m.Arg
}
return nil
}
func (x *AbilityArgument) GetIntArg() uint32 {
if x, ok := x.GetArg().(*AbilityArgument_IntArg); ok {
return x.IntArg
}
return 0
}
func (x *AbilityArgument) GetFloatArg() float32 {
if x, ok := x.GetArg().(*AbilityArgument_FloatArg); ok {
return x.FloatArg
}
return 0
}
func (x *AbilityArgument) GetStrArg() string {
if x, ok := x.GetArg().(*AbilityArgument_StrArg); ok {
return x.StrArg
}
return ""
}
type isAbilityArgument_Arg interface {
isAbilityArgument_Arg()
}
type AbilityArgument_IntArg struct {
IntArg uint32 `protobuf:"varint,5,opt,name=int_arg,json=intArg,proto3,oneof"`
}
type AbilityArgument_FloatArg struct {
FloatArg float32 `protobuf:"fixed32,15,opt,name=float_arg,json=floatArg,proto3,oneof"`
}
type AbilityArgument_StrArg struct {
StrArg string `protobuf:"bytes,11,opt,name=str_arg,json=strArg,proto3,oneof"`
}
func (*AbilityArgument_IntArg) isAbilityArgument_Arg() {}
func (*AbilityArgument_FloatArg) isAbilityArgument_Arg() {}
func (*AbilityArgument_StrArg) isAbilityArgument_Arg() {}
var File_AbilityArgument_proto protoreflect.FileDescriptor
var file_AbilityArgument_proto_rawDesc = []byte{
0x0a, 0x15, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e,
0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6d, 0x0a, 0x0f, 0x41, 0x62, 0x69, 0x6c, 0x69,
0x74, 0x79, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x07, 0x69, 0x6e,
0x74, 0x5f, 0x61, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x06, 0x69,
0x6e, 0x74, 0x41, 0x72, 0x67, 0x12, 0x1d, 0x0a, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x61,
0x72, 0x67, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x08, 0x66, 0x6c, 0x6f, 0x61,
0x74, 0x41, 0x72, 0x67, 0x12, 0x19, 0x0a, 0x07, 0x73, 0x74, 0x72, 0x5f, 0x61, 0x72, 0x67, 0x18,
0x0b, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x72, 0x41, 0x72, 0x67, 0x42,
0x05, 0x0a, 0x03, 0x61, 0x72, 0x67, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityArgument_proto_rawDescOnce sync.Once
file_AbilityArgument_proto_rawDescData = file_AbilityArgument_proto_rawDesc
)
func file_AbilityArgument_proto_rawDescGZIP() []byte {
file_AbilityArgument_proto_rawDescOnce.Do(func() {
file_AbilityArgument_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityArgument_proto_rawDescData)
})
return file_AbilityArgument_proto_rawDescData
}
var file_AbilityArgument_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityArgument_proto_goTypes = []interface{}{
(*AbilityArgument)(nil), // 0: AbilityArgument
}
var file_AbilityArgument_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AbilityArgument_proto_init() }
func file_AbilityArgument_proto_init() {
if File_AbilityArgument_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AbilityArgument_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityArgument); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_AbilityArgument_proto_msgTypes[0].OneofWrappers = []interface{}{
(*AbilityArgument_IntArg)(nil),
(*AbilityArgument_FloatArg)(nil),
(*AbilityArgument_StrArg)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityArgument_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityArgument_proto_goTypes,
DependencyIndexes: file_AbilityArgument_proto_depIdxs,
MessageInfos: file_AbilityArgument_proto_msgTypes,
}.Build()
File_AbilityArgument_proto = out.File
file_AbilityArgument_proto_rawDesc = nil
file_AbilityArgument_proto_goTypes = nil
file_AbilityArgument_proto_depIdxs = nil
}
@@ -1,203 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityAttachedModifier.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityAttachedModifier struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IsInvalid bool `protobuf:"varint,1,opt,name=is_invalid,json=isInvalid,proto3" json:"is_invalid,omitempty"`
OwnerEntityId uint32 `protobuf:"varint,2,opt,name=owner_entity_id,json=ownerEntityId,proto3" json:"owner_entity_id,omitempty"`
InstancedModifierId uint32 `protobuf:"varint,3,opt,name=instanced_modifier_id,json=instancedModifierId,proto3" json:"instanced_modifier_id,omitempty"`
IsServerbuffModifier bool `protobuf:"varint,4,opt,name=is_serverbuff_modifier,json=isServerbuffModifier,proto3" json:"is_serverbuff_modifier,omitempty"`
AttachNameHash int32 `protobuf:"varint,5,opt,name=attach_name_hash,json=attachNameHash,proto3" json:"attach_name_hash,omitempty"`
}
func (x *AbilityAttachedModifier) Reset() {
*x = AbilityAttachedModifier{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityAttachedModifier_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityAttachedModifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityAttachedModifier) ProtoMessage() {}
func (x *AbilityAttachedModifier) ProtoReflect() protoreflect.Message {
mi := &file_AbilityAttachedModifier_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityAttachedModifier.ProtoReflect.Descriptor instead.
func (*AbilityAttachedModifier) Descriptor() ([]byte, []int) {
return file_AbilityAttachedModifier_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityAttachedModifier) GetIsInvalid() bool {
if x != nil {
return x.IsInvalid
}
return false
}
func (x *AbilityAttachedModifier) GetOwnerEntityId() uint32 {
if x != nil {
return x.OwnerEntityId
}
return 0
}
func (x *AbilityAttachedModifier) GetInstancedModifierId() uint32 {
if x != nil {
return x.InstancedModifierId
}
return 0
}
func (x *AbilityAttachedModifier) GetIsServerbuffModifier() bool {
if x != nil {
return x.IsServerbuffModifier
}
return false
}
func (x *AbilityAttachedModifier) GetAttachNameHash() int32 {
if x != nil {
return x.AttachNameHash
}
return 0
}
var File_AbilityAttachedModifier_proto protoreflect.FileDescriptor
var file_AbilityAttachedModifier_proto_rawDesc = []byte{
0x0a, 0x1d, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65,
0x64, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0xf4, 0x01, 0x0a, 0x17, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x41, 0x74, 0x74, 0x61, 0x63,
0x68, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x69,
0x73, 0x5f, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
0x09, 0x69, 0x73, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x6f, 0x77,
0x6e, 0x65, 0x72, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x0d, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79,
0x49, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x5f,
0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x69,
0x66, 0x69, 0x65, 0x72, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x16, 0x69, 0x73, 0x5f, 0x73, 0x65, 0x72,
0x76, 0x65, 0x72, 0x62, 0x75, 0x66, 0x66, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72,
0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x69, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
0x62, 0x75, 0x66, 0x66, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x10,
0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68,
0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x4e, 0x61,
0x6d, 0x65, 0x48, 0x61, 0x73, 0x68, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityAttachedModifier_proto_rawDescOnce sync.Once
file_AbilityAttachedModifier_proto_rawDescData = file_AbilityAttachedModifier_proto_rawDesc
)
func file_AbilityAttachedModifier_proto_rawDescGZIP() []byte {
file_AbilityAttachedModifier_proto_rawDescOnce.Do(func() {
file_AbilityAttachedModifier_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityAttachedModifier_proto_rawDescData)
})
return file_AbilityAttachedModifier_proto_rawDescData
}
var file_AbilityAttachedModifier_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityAttachedModifier_proto_goTypes = []interface{}{
(*AbilityAttachedModifier)(nil), // 0: AbilityAttachedModifier
}
var file_AbilityAttachedModifier_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AbilityAttachedModifier_proto_init() }
func file_AbilityAttachedModifier_proto_init() {
if File_AbilityAttachedModifier_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AbilityAttachedModifier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityAttachedModifier); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityAttachedModifier_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityAttachedModifier_proto_goTypes,
DependencyIndexes: file_AbilityAttachedModifier_proto_depIdxs,
MessageInfos: file_AbilityAttachedModifier_proto_msgTypes,
}.Build()
File_AbilityAttachedModifier_proto = out.File
file_AbilityAttachedModifier_proto_rawDesc = nil
file_AbilityAttachedModifier_proto_goTypes = nil
file_AbilityAttachedModifier_proto_depIdxs = nil
}
-184
View File
@@ -1,184 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityBornType.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityBornType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rot *Vector `protobuf:"bytes,2,opt,name=rot,proto3" json:"rot,omitempty"`
MoveDir *Vector `protobuf:"bytes,14,opt,name=move_dir,json=moveDir,proto3" json:"move_dir,omitempty"`
Pos *Vector `protobuf:"bytes,5,opt,name=pos,proto3" json:"pos,omitempty"`
}
func (x *AbilityBornType) Reset() {
*x = AbilityBornType{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityBornType_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityBornType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityBornType) ProtoMessage() {}
func (x *AbilityBornType) ProtoReflect() protoreflect.Message {
mi := &file_AbilityBornType_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityBornType.ProtoReflect.Descriptor instead.
func (*AbilityBornType) Descriptor() ([]byte, []int) {
return file_AbilityBornType_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityBornType) GetRot() *Vector {
if x != nil {
return x.Rot
}
return nil
}
func (x *AbilityBornType) GetMoveDir() *Vector {
if x != nil {
return x.MoveDir
}
return nil
}
func (x *AbilityBornType) GetPos() *Vector {
if x != nil {
return x.Pos
}
return nil
}
var File_AbilityBornType_proto protoreflect.FileDescriptor
var file_AbilityBornType_proto_rawDesc = []byte{
0x0a, 0x15, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x42, 0x6f, 0x72, 0x6e, 0x54, 0x79, 0x70,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6b, 0x0a, 0x0f, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
0x42, 0x6f, 0x72, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x03, 0x72, 0x6f, 0x74, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x03,
0x72, 0x6f, 0x74, 0x12, 0x22, 0x0a, 0x08, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x18,
0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x07,
0x6d, 0x6f, 0x76, 0x65, 0x44, 0x69, 0x72, 0x12, 0x19, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x05,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x03, 0x70,
0x6f, 0x73, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityBornType_proto_rawDescOnce sync.Once
file_AbilityBornType_proto_rawDescData = file_AbilityBornType_proto_rawDesc
)
func file_AbilityBornType_proto_rawDescGZIP() []byte {
file_AbilityBornType_proto_rawDescOnce.Do(func() {
file_AbilityBornType_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityBornType_proto_rawDescData)
})
return file_AbilityBornType_proto_rawDescData
}
var file_AbilityBornType_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityBornType_proto_goTypes = []interface{}{
(*AbilityBornType)(nil), // 0: AbilityBornType
(*Vector)(nil), // 1: Vector
}
var file_AbilityBornType_proto_depIdxs = []int32{
1, // 0: AbilityBornType.rot:type_name -> Vector
1, // 1: AbilityBornType.move_dir:type_name -> Vector
1, // 2: AbilityBornType.pos:type_name -> Vector
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_AbilityBornType_proto_init() }
func file_AbilityBornType_proto_init() {
if File_AbilityBornType_proto != nil {
return
}
file_Vector_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityBornType_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityBornType); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityBornType_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityBornType_proto_goTypes,
DependencyIndexes: file_AbilityBornType_proto_depIdxs,
MessageInfos: file_AbilityBornType_proto_msgTypes,
}.Build()
File_AbilityBornType_proto = out.File
file_AbilityBornType_proto_rawDesc = nil
file_AbilityBornType_proto_goTypes = nil
file_AbilityBornType_proto_depIdxs = nil
}
@@ -1,179 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityChangeNotify.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// CmdId: 1131
// EnetChannelId: 0
// EnetIsReliable: true
type AbilityChangeNotify struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
EntityId uint32 `protobuf:"varint,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
AbilityControlBlock *AbilityControlBlock `protobuf:"bytes,15,opt,name=ability_control_block,json=abilityControlBlock,proto3" json:"ability_control_block,omitempty"`
}
func (x *AbilityChangeNotify) Reset() {
*x = AbilityChangeNotify{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityChangeNotify_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityChangeNotify) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityChangeNotify) ProtoMessage() {}
func (x *AbilityChangeNotify) ProtoReflect() protoreflect.Message {
mi := &file_AbilityChangeNotify_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityChangeNotify.ProtoReflect.Descriptor instead.
func (*AbilityChangeNotify) Descriptor() ([]byte, []int) {
return file_AbilityChangeNotify_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityChangeNotify) GetEntityId() uint32 {
if x != nil {
return x.EntityId
}
return 0
}
func (x *AbilityChangeNotify) GetAbilityControlBlock() *AbilityControlBlock {
if x != nil {
return x.AbilityControlBlock
}
return nil
}
var File_AbilityChangeNotify_proto protoreflect.FileDescriptor
var file_AbilityChangeNotify_proto_rawDesc = []byte{
0x0a, 0x19, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e,
0x6f, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x41, 0x62, 0x69,
0x6c, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7c, 0x0a, 0x13, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74,
0x79, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x12, 0x1b, 0x0a,
0x09, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x15, 0x61, 0x62,
0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x62, 0x6c,
0x6f, 0x63, 0x6b, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x41, 0x62, 0x69, 0x6c,
0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52,
0x13, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x42,
0x6c, 0x6f, 0x63, 0x6b, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityChangeNotify_proto_rawDescOnce sync.Once
file_AbilityChangeNotify_proto_rawDescData = file_AbilityChangeNotify_proto_rawDesc
)
func file_AbilityChangeNotify_proto_rawDescGZIP() []byte {
file_AbilityChangeNotify_proto_rawDescOnce.Do(func() {
file_AbilityChangeNotify_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityChangeNotify_proto_rawDescData)
})
return file_AbilityChangeNotify_proto_rawDescData
}
var file_AbilityChangeNotify_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityChangeNotify_proto_goTypes = []interface{}{
(*AbilityChangeNotify)(nil), // 0: AbilityChangeNotify
(*AbilityControlBlock)(nil), // 1: AbilityControlBlock
}
var file_AbilityChangeNotify_proto_depIdxs = []int32{
1, // 0: AbilityChangeNotify.ability_control_block:type_name -> AbilityControlBlock
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_AbilityChangeNotify_proto_init() }
func file_AbilityChangeNotify_proto_init() {
if File_AbilityChangeNotify_proto != nil {
return
}
file_AbilityControlBlock_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityChangeNotify_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityChangeNotify); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityChangeNotify_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityChangeNotify_proto_goTypes,
DependencyIndexes: file_AbilityChangeNotify_proto_depIdxs,
MessageInfos: file_AbilityChangeNotify_proto_msgTypes,
}.Build()
File_AbilityChangeNotify_proto = out.File
file_AbilityChangeNotify_proto_rawDesc = nil
file_AbilityChangeNotify_proto_goTypes = nil
file_AbilityChangeNotify_proto_depIdxs = nil
}
@@ -1,165 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityControlBlock.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityControlBlock struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AbilityEmbryoList []*AbilityEmbryo `protobuf:"bytes,1,rep,name=ability_embryo_list,json=abilityEmbryoList,proto3" json:"ability_embryo_list,omitempty"`
}
func (x *AbilityControlBlock) Reset() {
*x = AbilityControlBlock{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityControlBlock_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityControlBlock) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityControlBlock) ProtoMessage() {}
func (x *AbilityControlBlock) ProtoReflect() protoreflect.Message {
mi := &file_AbilityControlBlock_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityControlBlock.ProtoReflect.Descriptor instead.
func (*AbilityControlBlock) Descriptor() ([]byte, []int) {
return file_AbilityControlBlock_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityControlBlock) GetAbilityEmbryoList() []*AbilityEmbryo {
if x != nil {
return x.AbilityEmbryoList
}
return nil
}
var File_AbilityControlBlock_proto protoreflect.FileDescriptor
var file_AbilityControlBlock_proto_rawDesc = []byte{
0x0a, 0x19, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x41, 0x62, 0x69,
0x6c, 0x69, 0x74, 0x79, 0x45, 0x6d, 0x62, 0x72, 0x79, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x55, 0x0a, 0x13, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x72,
0x6f, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3e, 0x0a, 0x13, 0x61, 0x62, 0x69, 0x6c, 0x69,
0x74, 0x79, 0x5f, 0x65, 0x6d, 0x62, 0x72, 0x79, 0x6f, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x45, 0x6d,
0x62, 0x72, 0x79, 0x6f, 0x52, 0x11, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x45, 0x6d, 0x62,
0x72, 0x79, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityControlBlock_proto_rawDescOnce sync.Once
file_AbilityControlBlock_proto_rawDescData = file_AbilityControlBlock_proto_rawDesc
)
func file_AbilityControlBlock_proto_rawDescGZIP() []byte {
file_AbilityControlBlock_proto_rawDescOnce.Do(func() {
file_AbilityControlBlock_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityControlBlock_proto_rawDescData)
})
return file_AbilityControlBlock_proto_rawDescData
}
var file_AbilityControlBlock_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityControlBlock_proto_goTypes = []interface{}{
(*AbilityControlBlock)(nil), // 0: AbilityControlBlock
(*AbilityEmbryo)(nil), // 1: AbilityEmbryo
}
var file_AbilityControlBlock_proto_depIdxs = []int32{
1, // 0: AbilityControlBlock.ability_embryo_list:type_name -> AbilityEmbryo
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_AbilityControlBlock_proto_init() }
func file_AbilityControlBlock_proto_init() {
if File_AbilityControlBlock_proto != nil {
return
}
file_AbilityEmbryo_proto_init()
if !protoimpl.UnsafeEnabled {
file_AbilityControlBlock_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityControlBlock); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityControlBlock_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityControlBlock_proto_goTypes,
DependencyIndexes: file_AbilityControlBlock_proto_depIdxs,
MessageInfos: file_AbilityControlBlock_proto_msgTypes,
}.Build()
File_AbilityControlBlock_proto = out.File
file_AbilityControlBlock_proto_rawDesc = nil
file_AbilityControlBlock_proto_goTypes = nil
file_AbilityControlBlock_proto_depIdxs = nil
}
-181
View File
@@ -1,181 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityEmbryo.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityEmbryo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
AbilityId uint32 `protobuf:"varint,1,opt,name=ability_id,json=abilityId,proto3" json:"ability_id,omitempty"`
AbilityNameHash uint32 `protobuf:"fixed32,2,opt,name=ability_name_hash,json=abilityNameHash,proto3" json:"ability_name_hash,omitempty"`
AbilityOverrideNameHash uint32 `protobuf:"fixed32,3,opt,name=ability_override_name_hash,json=abilityOverrideNameHash,proto3" json:"ability_override_name_hash,omitempty"`
}
func (x *AbilityEmbryo) Reset() {
*x = AbilityEmbryo{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityEmbryo_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityEmbryo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityEmbryo) ProtoMessage() {}
func (x *AbilityEmbryo) ProtoReflect() protoreflect.Message {
mi := &file_AbilityEmbryo_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityEmbryo.ProtoReflect.Descriptor instead.
func (*AbilityEmbryo) Descriptor() ([]byte, []int) {
return file_AbilityEmbryo_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityEmbryo) GetAbilityId() uint32 {
if x != nil {
return x.AbilityId
}
return 0
}
func (x *AbilityEmbryo) GetAbilityNameHash() uint32 {
if x != nil {
return x.AbilityNameHash
}
return 0
}
func (x *AbilityEmbryo) GetAbilityOverrideNameHash() uint32 {
if x != nil {
return x.AbilityOverrideNameHash
}
return 0
}
var File_AbilityEmbryo_proto protoreflect.FileDescriptor
var file_AbilityEmbryo_proto_rawDesc = []byte{
0x0a, 0x13, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x45, 0x6d, 0x62, 0x72, 0x79, 0x6f, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x0d, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74,
0x79, 0x45, 0x6d, 0x62, 0x72, 0x79, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x62, 0x69, 0x6c, 0x69,
0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x61, 0x62, 0x69,
0x6c, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74,
0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28,
0x07, 0x52, 0x0f, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x48, 0x61,
0x73, 0x68, 0x12, 0x3b, 0x0a, 0x1a, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x76,
0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68,
0x18, 0x03, 0x20, 0x01, 0x28, 0x07, 0x52, 0x17, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x4f,
0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x48, 0x61, 0x73, 0x68, 0x42,
0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
file_AbilityEmbryo_proto_rawDescOnce sync.Once
file_AbilityEmbryo_proto_rawDescData = file_AbilityEmbryo_proto_rawDesc
)
func file_AbilityEmbryo_proto_rawDescGZIP() []byte {
file_AbilityEmbryo_proto_rawDescOnce.Do(func() {
file_AbilityEmbryo_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityEmbryo_proto_rawDescData)
})
return file_AbilityEmbryo_proto_rawDescData
}
var file_AbilityEmbryo_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityEmbryo_proto_goTypes = []interface{}{
(*AbilityEmbryo)(nil), // 0: AbilityEmbryo
}
var file_AbilityEmbryo_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AbilityEmbryo_proto_init() }
func file_AbilityEmbryo_proto_init() {
if File_AbilityEmbryo_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AbilityEmbryo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityEmbryo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityEmbryo_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityEmbryo_proto_goTypes,
DependencyIndexes: file_AbilityEmbryo_proto_depIdxs,
MessageInfos: file_AbilityEmbryo_proto_msgTypes,
}.Build()
File_AbilityEmbryo_proto = out.File
file_AbilityEmbryo_proto_rawDesc = nil
file_AbilityEmbryo_proto_goTypes = nil
file_AbilityEmbryo_proto_depIdxs = nil
}
-158
View File
@@ -1,158 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityFloatValue.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityFloatValue struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *AbilityFloatValue) Reset() {
*x = AbilityFloatValue{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityFloatValue_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityFloatValue) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityFloatValue) ProtoMessage() {}
func (x *AbilityFloatValue) ProtoReflect() protoreflect.Message {
mi := &file_AbilityFloatValue_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityFloatValue.ProtoReflect.Descriptor instead.
func (*AbilityFloatValue) Descriptor() ([]byte, []int) {
return file_AbilityFloatValue_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityFloatValue) GetValue() float32 {
if x != nil {
return x.Value
}
return 0
}
var File_AbilityFloatValue_proto protoreflect.FileDescriptor
var file_AbilityFloatValue_proto_rawDesc = []byte{
0x0a, 0x17, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x29, 0x0a, 0x11, 0x41, 0x62, 0x69,
0x6c, 0x69, 0x74, 0x79, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityFloatValue_proto_rawDescOnce sync.Once
file_AbilityFloatValue_proto_rawDescData = file_AbilityFloatValue_proto_rawDesc
)
func file_AbilityFloatValue_proto_rawDescGZIP() []byte {
file_AbilityFloatValue_proto_rawDescOnce.Do(func() {
file_AbilityFloatValue_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityFloatValue_proto_rawDescData)
})
return file_AbilityFloatValue_proto_rawDescData
}
var file_AbilityFloatValue_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityFloatValue_proto_goTypes = []interface{}{
(*AbilityFloatValue)(nil), // 0: AbilityFloatValue
}
var file_AbilityFloatValue_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AbilityFloatValue_proto_init() }
func file_AbilityFloatValue_proto_init() {
if File_AbilityFloatValue_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AbilityFloatValue_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityFloatValue); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityFloatValue_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityFloatValue_proto_goTypes,
DependencyIndexes: file_AbilityFloatValue_proto_depIdxs,
MessageInfos: file_AbilityFloatValue_proto_msgTypes,
}.Build()
File_AbilityFloatValue_proto = out.File
file_AbilityFloatValue_proto_rawDesc = nil
file_AbilityFloatValue_proto_goTypes = nil
file_AbilityFloatValue_proto_depIdxs = nil
}
-179
View File
@@ -1,179 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityGadgetInfo.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityGadgetInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
CampId uint32 `protobuf:"varint,1,opt,name=camp_id,json=campId,proto3" json:"camp_id,omitempty"`
CampTargetType uint32 `protobuf:"varint,2,opt,name=camp_target_type,json=campTargetType,proto3" json:"camp_target_type,omitempty"`
TargetEntityId uint32 `protobuf:"varint,3,opt,name=target_entity_id,json=targetEntityId,proto3" json:"target_entity_id,omitempty"`
}
func (x *AbilityGadgetInfo) Reset() {
*x = AbilityGadgetInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityGadgetInfo_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityGadgetInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityGadgetInfo) ProtoMessage() {}
func (x *AbilityGadgetInfo) ProtoReflect() protoreflect.Message {
mi := &file_AbilityGadgetInfo_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityGadgetInfo.ProtoReflect.Descriptor instead.
func (*AbilityGadgetInfo) Descriptor() ([]byte, []int) {
return file_AbilityGadgetInfo_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityGadgetInfo) GetCampId() uint32 {
if x != nil {
return x.CampId
}
return 0
}
func (x *AbilityGadgetInfo) GetCampTargetType() uint32 {
if x != nil {
return x.CampTargetType
}
return 0
}
func (x *AbilityGadgetInfo) GetTargetEntityId() uint32 {
if x != nil {
return x.TargetEntityId
}
return 0
}
var File_AbilityGadgetInfo_proto protoreflect.FileDescriptor
var file_AbilityGadgetInfo_proto_rawDesc = []byte{
0x0a, 0x17, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x47, 0x61, 0x64, 0x67, 0x65, 0x74, 0x49,
0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a, 0x11, 0x41, 0x62,
0x69, 0x6c, 0x69, 0x74, 0x79, 0x47, 0x61, 0x64, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12,
0x17, 0x0a, 0x07, 0x63, 0x61, 0x6d, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x06, 0x63, 0x61, 0x6d, 0x70, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x63, 0x61, 0x6d, 0x70,
0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0d, 0x52, 0x0e, 0x63, 0x61, 0x6d, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79,
0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x74,
0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x74, 0x61,
0x72, 0x67, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x42, 0x0a, 0x5a, 0x08,
0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_AbilityGadgetInfo_proto_rawDescOnce sync.Once
file_AbilityGadgetInfo_proto_rawDescData = file_AbilityGadgetInfo_proto_rawDesc
)
func file_AbilityGadgetInfo_proto_rawDescGZIP() []byte {
file_AbilityGadgetInfo_proto_rawDescOnce.Do(func() {
file_AbilityGadgetInfo_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityGadgetInfo_proto_rawDescData)
})
return file_AbilityGadgetInfo_proto_rawDescData
}
var file_AbilityGadgetInfo_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityGadgetInfo_proto_goTypes = []interface{}{
(*AbilityGadgetInfo)(nil), // 0: AbilityGadgetInfo
}
var file_AbilityGadgetInfo_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AbilityGadgetInfo_proto_init() }
func file_AbilityGadgetInfo_proto_init() {
if File_AbilityGadgetInfo_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AbilityGadgetInfo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityGadgetInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityGadgetInfo_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityGadgetInfo_proto_goTypes,
DependencyIndexes: file_AbilityGadgetInfo_proto_depIdxs,
MessageInfos: file_AbilityGadgetInfo_proto_msgTypes,
}.Build()
File_AbilityGadgetInfo_proto = out.File
file_AbilityGadgetInfo_proto_rawDesc = nil
file_AbilityGadgetInfo_proto_goTypes = nil
file_AbilityGadgetInfo_proto_depIdxs = nil
}
-214
View File
@@ -1,214 +0,0 @@
// Sorapointa - A server software re-implementation for a certain anime game, and avoid sorapointa.
// Copyright (C) 2022 Sorapointa Team
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.7.0
// source: AbilityIdentifier.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AbilityIdentifier struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ModifierOwnerId uint32 `protobuf:"varint,2,opt,name=modifier_owner_id,json=modifierOwnerId,proto3" json:"modifier_owner_id,omitempty"`
InstancedModifierId uint32 `protobuf:"varint,9,opt,name=instanced_modifier_id,json=instancedModifierId,proto3" json:"instanced_modifier_id,omitempty"`
InstancedAbilityId uint32 `protobuf:"varint,10,opt,name=instanced_ability_id,json=instancedAbilityId,proto3" json:"instanced_ability_id,omitempty"`
IsServerbuffModifier bool `protobuf:"varint,6,opt,name=is_serverbuff_modifier,json=isServerbuffModifier,proto3" json:"is_serverbuff_modifier,omitempty"`
AbilityCasterId uint32 `protobuf:"varint,15,opt,name=ability_caster_id,json=abilityCasterId,proto3" json:"ability_caster_id,omitempty"`
LocalId int32 `protobuf:"varint,3,opt,name=local_id,json=localId,proto3" json:"local_id,omitempty"`
}
func (x *AbilityIdentifier) Reset() {
*x = AbilityIdentifier{}
if protoimpl.UnsafeEnabled {
mi := &file_AbilityIdentifier_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AbilityIdentifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AbilityIdentifier) ProtoMessage() {}
func (x *AbilityIdentifier) ProtoReflect() protoreflect.Message {
mi := &file_AbilityIdentifier_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AbilityIdentifier.ProtoReflect.Descriptor instead.
func (*AbilityIdentifier) Descriptor() ([]byte, []int) {
return file_AbilityIdentifier_proto_rawDescGZIP(), []int{0}
}
func (x *AbilityIdentifier) GetModifierOwnerId() uint32 {
if x != nil {
return x.ModifierOwnerId
}
return 0
}
func (x *AbilityIdentifier) GetInstancedModifierId() uint32 {
if x != nil {
return x.InstancedModifierId
}
return 0
}
func (x *AbilityIdentifier) GetInstancedAbilityId() uint32 {
if x != nil {
return x.InstancedAbilityId
}
return 0
}
func (x *AbilityIdentifier) GetIsServerbuffModifier() bool {
if x != nil {
return x.IsServerbuffModifier
}
return false
}
func (x *AbilityIdentifier) GetAbilityCasterId() uint32 {
if x != nil {
return x.AbilityCasterId
}
return 0
}
func (x *AbilityIdentifier) GetLocalId() int32 {
if x != nil {
return x.LocalId
}
return 0
}
var File_AbilityIdentifier_proto protoreflect.FileDescriptor
var file_AbilityIdentifier_proto_rawDesc = []byte{
0x0a, 0x17, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66,
0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa2, 0x02, 0x0a, 0x11, 0x41, 0x62,
0x69, 0x6c, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12,
0x2a, 0x0a, 0x11, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6f, 0x77, 0x6e, 0x65,
0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x6d, 0x6f, 0x64, 0x69,
0x66, 0x69, 0x65, 0x72, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x69,
0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65,
0x72, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x13, 0x69, 0x6e, 0x73, 0x74,
0x61, 0x6e, 0x63, 0x65, 0x64, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x49, 0x64, 0x12,
0x30, 0x0a, 0x14, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x61, 0x62, 0x69,
0x6c, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12, 0x69,
0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x41, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x49,
0x64, 0x12, 0x34, 0x0a, 0x16, 0x69, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x62, 0x75,
0x66, 0x66, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28,
0x08, 0x52, 0x14, 0x69, 0x73, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x62, 0x75, 0x66, 0x66, 0x4d,
0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x62, 0x69, 0x6c, 0x69,
0x74, 0x79, 0x5f, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x0f, 0x20, 0x01,
0x28, 0x0d, 0x52, 0x0f, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x43, 0x61, 0x73, 0x74, 0x65,
0x72, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18,
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x49, 0x64, 0x42, 0x0a,
0x5a, 0x08, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_AbilityIdentifier_proto_rawDescOnce sync.Once
file_AbilityIdentifier_proto_rawDescData = file_AbilityIdentifier_proto_rawDesc
)
func file_AbilityIdentifier_proto_rawDescGZIP() []byte {
file_AbilityIdentifier_proto_rawDescOnce.Do(func() {
file_AbilityIdentifier_proto_rawDescData = protoimpl.X.CompressGZIP(file_AbilityIdentifier_proto_rawDescData)
})
return file_AbilityIdentifier_proto_rawDescData
}
var file_AbilityIdentifier_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_AbilityIdentifier_proto_goTypes = []interface{}{
(*AbilityIdentifier)(nil), // 0: AbilityIdentifier
}
var file_AbilityIdentifier_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_AbilityIdentifier_proto_init() }
func file_AbilityIdentifier_proto_init() {
if File_AbilityIdentifier_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_AbilityIdentifier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*AbilityIdentifier); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_AbilityIdentifier_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_AbilityIdentifier_proto_goTypes,
DependencyIndexes: file_AbilityIdentifier_proto_depIdxs,
MessageInfos: file_AbilityIdentifier_proto_msgTypes,
}.Build()
File_AbilityIdentifier_proto = out.File
file_AbilityIdentifier_proto_rawDesc = nil
file_AbilityIdentifier_proto_goTypes = nil
file_AbilityIdentifier_proto_depIdxs = nil
}
Loaded 100 of 6760 files, more files were not shown because too many files have changed in this diff. Show more