提交proto
This commit is contained in:
parent
dec94497d2
commit
e22bf2398a
@ -1,3 +1,10 @@
|
|||||||
# gameClient
|
# gameClient
|
||||||
|
|
||||||
cocos creator游戏客户端
|
1. 基础框架搭建
|
||||||
|
|
||||||
|
1. 编写 ws client。(已完成)
|
||||||
|
2. 安装 npm install -g protobufjs protoc-gen-js。生成 pb 文件。(已完成)
|
||||||
|
3. 编写 mvc。(已完成)
|
||||||
|
|
||||||
|
2. 登陆界面
|
||||||
|
1. 连接网关并实现登陆功能。
|
||||||
|
@ -22,7 +22,9 @@
|
|||||||
],
|
],
|
||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [],
|
"_components": [],
|
||||||
"_prefab": null,
|
"_prefab": {
|
||||||
|
"__id__": 20
|
||||||
|
},
|
||||||
"_lpos": {
|
"_lpos": {
|
||||||
"__type__": "cc.Vec3",
|
"__type__": "cc.Vec3",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
@ -52,7 +54,7 @@
|
|||||||
},
|
},
|
||||||
"autoReleaseAssets": false,
|
"autoReleaseAssets": false,
|
||||||
"_globals": {
|
"_globals": {
|
||||||
"__id__": 11
|
"__id__": 21
|
||||||
},
|
},
|
||||||
"_id": "b4d997b6-dfae-4f49-bd9a-7758657287ae"
|
"_id": "b4d997b6-dfae-4f49-bd9a-7758657287ae"
|
||||||
},
|
},
|
||||||
@ -70,18 +72,21 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 5
|
"__id__": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 9
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_active": true,
|
"_active": true,
|
||||||
"_components": [
|
"_components": [
|
||||||
{
|
{
|
||||||
"__id__": 8
|
"__id__": 17
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 9
|
"__id__": 18
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 10
|
"__id__": 19
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": null,
|
"_prefab": null,
|
||||||
@ -173,7 +178,7 @@
|
|||||||
"_priority": 0,
|
"_priority": 0,
|
||||||
"_fov": 45,
|
"_fov": 45,
|
||||||
"_fovAxis": 0,
|
"_fovAxis": 0,
|
||||||
"_orthoHeight": 414.53807106598987,
|
"_orthoHeight": 414.11764705882354,
|
||||||
"_near": 0,
|
"_near": 0,
|
||||||
"_far": 2000,
|
"_far": 2000,
|
||||||
"_color": {
|
"_color": {
|
||||||
@ -207,7 +212,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.Node",
|
"__type__": "cc.Node",
|
||||||
"_name": "LoginPanel",
|
"_name": "Main",
|
||||||
"_objFlags": 0,
|
"_objFlags": 0,
|
||||||
"__editorExtras__": {},
|
"__editorExtras__": {},
|
||||||
"_parent": {
|
"_parent": {
|
||||||
@ -221,6 +226,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__id__": 7
|
"__id__": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 8
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_prefab": null,
|
"_prefab": null,
|
||||||
@ -305,6 +313,129 @@
|
|||||||
"_lockFlags": 0,
|
"_lockFlags": 0,
|
||||||
"_id": "58VGFS6qRA0oDNxuq2ABP2"
|
"_id": "58VGFS6qRA0oDNxuq2ABP2"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"__type__": "02ed1mmDNZJCrAihoIx1Jj0",
|
||||||
|
"_name": "",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {},
|
||||||
|
"node": {
|
||||||
|
"__id__": 5
|
||||||
|
},
|
||||||
|
"_enabled": true,
|
||||||
|
"__prefab": null,
|
||||||
|
"_id": "8d9sONKzhJ6bdtIIJExUg4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.Node",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"_parent": {
|
||||||
|
"__id__": 2
|
||||||
|
},
|
||||||
|
"_prefab": {
|
||||||
|
"__id__": 10
|
||||||
|
},
|
||||||
|
"__editorExtras__": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.PrefabInfo",
|
||||||
|
"root": {
|
||||||
|
"__id__": 9
|
||||||
|
},
|
||||||
|
"asset": {
|
||||||
|
"__uuid__": "417a8e17-5fd9-4110-83f0-a9cec338a488",
|
||||||
|
"__expectedType__": "cc.Prefab"
|
||||||
|
},
|
||||||
|
"fileId": "66x4Ed7QFL34F7BxBDRZWj",
|
||||||
|
"instance": {
|
||||||
|
"__id__": 11
|
||||||
|
},
|
||||||
|
"targetOverrides": null,
|
||||||
|
"nestedPrefabInstanceRoots": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.PrefabInstance",
|
||||||
|
"fileId": "428UDAffxLUanF2DBHHdRL",
|
||||||
|
"prefabRootNode": null,
|
||||||
|
"mountedChildren": [],
|
||||||
|
"mountedComponents": [],
|
||||||
|
"propertyOverrides": [
|
||||||
|
{
|
||||||
|
"__id__": 12
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 14
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 15
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 16
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"removedComponents": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 13
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_name"
|
||||||
|
],
|
||||||
|
"value": "LoginPanel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.TargetInfo",
|
||||||
|
"localID": [
|
||||||
|
"66x4Ed7QFL34F7BxBDRZWj"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 13
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_lpos"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 13
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_lrot"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Quat",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0,
|
||||||
|
"w": 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "CCPropertyOverrideInfo",
|
||||||
|
"targetInfo": {
|
||||||
|
"__id__": 13
|
||||||
|
},
|
||||||
|
"propertyPath": [
|
||||||
|
"_euler"
|
||||||
|
],
|
||||||
|
"value": {
|
||||||
|
"__type__": "cc.Vec3",
|
||||||
|
"x": 0,
|
||||||
|
"y": 0,
|
||||||
|
"z": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.UITransform",
|
"__type__": "cc.UITransform",
|
||||||
"_name": "",
|
"_name": "",
|
||||||
@ -373,31 +504,44 @@
|
|||||||
"_lockFlags": 0,
|
"_lockFlags": 0,
|
||||||
"_id": "c5V1EV8IpMtrIvY1OE9t2u"
|
"_id": "c5V1EV8IpMtrIvY1OE9t2u"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.PrefabInfo",
|
||||||
|
"root": null,
|
||||||
|
"asset": null,
|
||||||
|
"fileId": "b4d997b6-dfae-4f49-bd9a-7758657287ae",
|
||||||
|
"instance": null,
|
||||||
|
"targetOverrides": null,
|
||||||
|
"nestedPrefabInstanceRoots": [
|
||||||
|
{
|
||||||
|
"__id__": 9
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"__type__": "cc.SceneGlobals",
|
"__type__": "cc.SceneGlobals",
|
||||||
"ambient": {
|
"ambient": {
|
||||||
"__id__": 12
|
"__id__": 22
|
||||||
},
|
},
|
||||||
"shadows": {
|
"shadows": {
|
||||||
"__id__": 13
|
"__id__": 23
|
||||||
},
|
},
|
||||||
"_skybox": {
|
"_skybox": {
|
||||||
"__id__": 14
|
"__id__": 24
|
||||||
},
|
},
|
||||||
"fog": {
|
"fog": {
|
||||||
"__id__": 15
|
"__id__": 25
|
||||||
},
|
},
|
||||||
"octree": {
|
"octree": {
|
||||||
"__id__": 16
|
"__id__": 26
|
||||||
},
|
},
|
||||||
"skin": {
|
"skin": {
|
||||||
"__id__": 17
|
"__id__": 27
|
||||||
},
|
},
|
||||||
"lightProbeInfo": {
|
"lightProbeInfo": {
|
||||||
"__id__": 18
|
"__id__": 28
|
||||||
},
|
},
|
||||||
"postSettings": {
|
"postSettings": {
|
||||||
"__id__": 19
|
"__id__": 29
|
||||||
},
|
},
|
||||||
"bakedWithStationaryMainLight": false,
|
"bakedWithStationaryMainLight": false,
|
||||||
"bakedWithHighpLightmap": false
|
"bakedWithHighpLightmap": false
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { _decorator, Button, Component, EditBox, Label } from 'cc'
|
import { _decorator, Button, Component, EditBox, Label } from 'cc'
|
||||||
import { WsClient } from './wsclient'
|
import { WsClient } from './network/wsclient'
|
||||||
const { ccclass, property } = _decorator
|
const { ccclass, property } = _decorator
|
||||||
|
|
||||||
@ccclass('gamePanel')
|
@ccclass('gamePanel')
|
||||||
@ -39,11 +39,7 @@ export class gamePanel extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
this.sendButton.node.on(
|
this.sendButton.node.on(Button.EventType.CLICK, this.onSendButtonClick, this)
|
||||||
Button.EventType.CLICK,
|
|
||||||
this.onSendButtonClick,
|
|
||||||
this
|
|
||||||
)
|
|
||||||
window.addEventListener(`ws-message`, this.onMessage.bind(this))
|
window.addEventListener(`ws-message`, this.onMessage.bind(this))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { _decorator, Button, Component, EditBox, Label, Node } from 'cc'
|
import { _decorator, Button, Component, EditBox, Label, Node } from 'cc'
|
||||||
import { WsClient } from './wsclient'
|
import { WsClient } from '../network/wsclient'
|
||||||
const { ccclass, property } = _decorator
|
const { ccclass, property } = _decorator
|
||||||
|
|
||||||
@ccclass('loginPanel')
|
@ccclass('loginPanel')
|
||||||
@ -13,11 +13,7 @@ export class loginPanel extends Component {
|
|||||||
|
|
||||||
// 组件初始化完成后调用
|
// 组件初始化完成后调用
|
||||||
start() {
|
start() {
|
||||||
this.loginButton.node.on(
|
this.loginButton.node.on(Button.EventType.CLICK, this.onLoginButtonClick, this)
|
||||||
Button.EventType.CLICK,
|
|
||||||
this.onLoginButtonClick,
|
|
||||||
this
|
|
||||||
)
|
|
||||||
// 监听websocket消息事件
|
// 监听websocket消息事件
|
||||||
window.addEventListener('ws-message', this.onMessage.bind(this))
|
window.addEventListener('ws-message', this.onMessage.bind(this))
|
||||||
}
|
}
|
10
assets/scripts/network/gene_proto.sh
Normal file
10
assets/scripts/network/gene_proto.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
protoc \
|
||||||
|
--proto_path=C:/workspace/go/game/common/pb/ \
|
||||||
|
--js_out=import_style=commonjs,binary:./pb \
|
||||||
|
C:/workspace/go/game/common/pb/*.proto
|
||||||
|
|
||||||
|
echo "success"
|
353
assets/scripts/network/pb/chat_pb.js
Normal file
353
assets/scripts/network/pb/chat_pb.js
Normal file
@ -0,0 +1,353 @@
|
|||||||
|
// source: chat.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require('google-protobuf');
|
||||||
|
var goog = jspb;
|
||||||
|
var global =
|
||||||
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
||||||
|
(typeof window !== 'undefined' && window) ||
|
||||||
|
(typeof global !== 'undefined' && global) ||
|
||||||
|
(typeof self !== 'undefined' && self) ||
|
||||||
|
(function () { return this; }).call(null) ||
|
||||||
|
Function('return this')();
|
||||||
|
|
||||||
|
var user_pb = require('./user_pb.js');
|
||||||
|
goog.object.extend(proto, user_pb);
|
||||||
|
var service_pb = require('./service_pb.js');
|
||||||
|
goog.object.extend(proto, service_pb);
|
||||||
|
goog.exportSymbol('proto.pb.ChatType', null, global);
|
||||||
|
goog.exportSymbol('proto.pb.ReqChat', null, global);
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.ReqChat, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.displayName = 'proto.pb.ReqChat';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.ReqChat.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.ReqChat} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
srcuser: (f = msg.getSrcuser()) && user_pb.ChatUser.toObject(includeInstance, f),
|
||||||
|
dstuser: (f = msg.getDstuser()) && user_pb.ChatUser.toObject(includeInstance, f),
|
||||||
|
type: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
||||||
|
gameid: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||||
|
content: jspb.Message.getFieldWithDefault(msg, 5, "")
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.ReqChat}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.ReqChat;
|
||||||
|
return proto.pb.ReqChat.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.ReqChat} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.ReqChat}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = new user_pb.ChatUser;
|
||||||
|
reader.readMessage(value,user_pb.ChatUser.deserializeBinaryFromReader);
|
||||||
|
msg.setSrcuser(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = new user_pb.ChatUser;
|
||||||
|
reader.readMessage(value,user_pb.ChatUser.deserializeBinaryFromReader);
|
||||||
|
msg.setDstuser(value);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {!proto.pb.ChatType} */ (reader.readEnum());
|
||||||
|
msg.setType(value);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = /** @type {!proto.pb.ServiceTypeId} */ (reader.readEnum());
|
||||||
|
msg.setGameid(value);
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setContent(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.ReqChat.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.ReqChat} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getSrcuser();
|
||||||
|
if (f != null) {
|
||||||
|
writer.writeMessage(
|
||||||
|
1,
|
||||||
|
f,
|
||||||
|
user_pb.ChatUser.serializeBinaryToWriter
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getDstuser();
|
||||||
|
if (f != null) {
|
||||||
|
writer.writeMessage(
|
||||||
|
2,
|
||||||
|
f,
|
||||||
|
user_pb.ChatUser.serializeBinaryToWriter
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getType();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(
|
||||||
|
3,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getGameid();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(
|
||||||
|
4,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getContent();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
5,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ChatUser srcUser = 1;
|
||||||
|
* @return {?proto.pb.ChatUser}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.getSrcuser = function() {
|
||||||
|
return /** @type{?proto.pb.ChatUser} */ (
|
||||||
|
jspb.Message.getWrapperField(this, user_pb.ChatUser, 1));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {?proto.pb.ChatUser|undefined} value
|
||||||
|
* @return {!proto.pb.ReqChat} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.setSrcuser = function(value) {
|
||||||
|
return jspb.Message.setWrapperField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the message field making it undefined.
|
||||||
|
* @return {!proto.pb.ReqChat} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.clearSrcuser = function() {
|
||||||
|
return this.setSrcuser(undefined);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this field is set.
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.hasSrcuser = function() {
|
||||||
|
return jspb.Message.getField(this, 1) != null;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ChatUser dstUser = 2;
|
||||||
|
* @return {?proto.pb.ChatUser}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.getDstuser = function() {
|
||||||
|
return /** @type{?proto.pb.ChatUser} */ (
|
||||||
|
jspb.Message.getWrapperField(this, user_pb.ChatUser, 2));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {?proto.pb.ChatUser|undefined} value
|
||||||
|
* @return {!proto.pb.ReqChat} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.setDstuser = function(value) {
|
||||||
|
return jspb.Message.setWrapperField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the message field making it undefined.
|
||||||
|
* @return {!proto.pb.ReqChat} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.clearDstuser = function() {
|
||||||
|
return this.setDstuser(undefined);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this field is set.
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.hasDstuser = function() {
|
||||||
|
return jspb.Message.getField(this, 2) != null;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ChatType type = 3;
|
||||||
|
* @return {!proto.pb.ChatType}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.getType = function() {
|
||||||
|
return /** @type {!proto.pb.ChatType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.ChatType} value
|
||||||
|
* @return {!proto.pb.ReqChat} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.setType = function(value) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ServiceTypeId gameId = 4;
|
||||||
|
* @return {!proto.pb.ServiceTypeId}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.getGameid = function() {
|
||||||
|
return /** @type {!proto.pb.ServiceTypeId} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.ServiceTypeId} value
|
||||||
|
* @return {!proto.pb.ReqChat} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.setGameid = function(value) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string content = 5;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.getContent = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.pb.ReqChat} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ReqChat.prototype.setContent = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 5, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @enum {number}
|
||||||
|
*/
|
||||||
|
proto.pb.ChatType = {
|
||||||
|
CT_UNKNOWN: 0,
|
||||||
|
CT_PRIVATE: 1,
|
||||||
|
CT_WORLD: 2,
|
||||||
|
CT_MARQUEE: 3
|
||||||
|
};
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.pb);
|
322
assets/scripts/network/pb/client_pb.js
Normal file
322
assets/scripts/network/pb/client_pb.js
Normal file
@ -0,0 +1,322 @@
|
|||||||
|
// source: client.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require('google-protobuf');
|
||||||
|
var goog = jspb;
|
||||||
|
var global =
|
||||||
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
||||||
|
(typeof window !== 'undefined' && window) ||
|
||||||
|
(typeof global !== 'undefined' && global) ||
|
||||||
|
(typeof self !== 'undefined' && self) ||
|
||||||
|
(function () { return this; }).call(null) ||
|
||||||
|
Function('return this')();
|
||||||
|
|
||||||
|
var service_pb = require('./service_pb.js');
|
||||||
|
goog.object.extend(proto, service_pb);
|
||||||
|
goog.exportSymbol('proto.pb.ClientMsg', null, global);
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.ClientMsg, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.displayName = 'proto.pb.ClientMsg';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.ClientMsg.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.ClientMsg} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
serviceTid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
||||||
|
serviceName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
|
userId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
||||||
|
msgId: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
||||||
|
data: msg.getData_asB64()
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.ClientMsg}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.ClientMsg;
|
||||||
|
return proto.pb.ClientMsg.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.ClientMsg} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.ClientMsg}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {!proto.pb.ServiceTypeId} */ (reader.readEnum());
|
||||||
|
msg.setServiceTid(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setServiceName(value);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {number} */ (reader.readInt64());
|
||||||
|
msg.setUserId(value);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = /** @type {number} */ (reader.readInt32());
|
||||||
|
msg.setMsgId(value);
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
||||||
|
msg.setData(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.ClientMsg.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.ClientMsg} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getServiceTid();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(
|
||||||
|
1,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getServiceName();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
2,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getUserId();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt64(
|
||||||
|
3,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getMsgId();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt32(
|
||||||
|
4,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getData_asU8();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeBytes(
|
||||||
|
5,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ServiceTypeId service_tid = 1;
|
||||||
|
* @return {!proto.pb.ServiceTypeId}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.getServiceTid = function() {
|
||||||
|
return /** @type {!proto.pb.ServiceTypeId} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.ServiceTypeId} value
|
||||||
|
* @return {!proto.pb.ClientMsg} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.setServiceTid = function(value) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string service_name = 2;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.getServiceName = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.pb.ClientMsg} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.setServiceName = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int64 user_id = 3;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.getUserId = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.ClientMsg} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.setUserId = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int32 msg_id = 4;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.getMsgId = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.ClientMsg} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.setMsgId = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional bytes data = 5;
|
||||||
|
* @return {!(string|Uint8Array)}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.getData = function() {
|
||||||
|
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional bytes data = 5;
|
||||||
|
* This is a type-conversion wrapper around `getData()`
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.getData_asB64 = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
||||||
|
this.getData()));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional bytes data = 5;
|
||||||
|
* Note that Uint8Array is not supported on all browsers.
|
||||||
|
* @see http://caniuse.com/Uint8Array
|
||||||
|
* This is a type-conversion wrapper around `getData()`
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.getData_asU8 = function() {
|
||||||
|
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
||||||
|
this.getData()));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!(string|Uint8Array)} value
|
||||||
|
* @return {!proto.pb.ClientMsg} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ClientMsg.prototype.setData = function(value) {
|
||||||
|
return jspb.Message.setProto3BytesField(this, 5, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.pb);
|
46
assets/scripts/network/pb/code_pb.js
Normal file
46
assets/scripts/network/pb/code_pb.js
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
// source: code.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require('google-protobuf');
|
||||||
|
var goog = jspb;
|
||||||
|
var global =
|
||||||
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
||||||
|
(typeof window !== 'undefined' && window) ||
|
||||||
|
(typeof global !== 'undefined' && global) ||
|
||||||
|
(typeof self !== 'undefined' && self) ||
|
||||||
|
(function () { return this; }).call(null) ||
|
||||||
|
Function('return this')();
|
||||||
|
|
||||||
|
goog.exportSymbol('proto.pb.ErrCode', null, global);
|
||||||
|
/**
|
||||||
|
* @enum {number}
|
||||||
|
*/
|
||||||
|
proto.pb.ErrCode = {
|
||||||
|
OK: 0,
|
||||||
|
SYSTEMERR: 1,
|
||||||
|
PARAMERR: 2,
|
||||||
|
LOGINDIFFLOC: 100,
|
||||||
|
LOGINUSERORPWDERR: 102,
|
||||||
|
ACCOUNTFROZEN: 103,
|
||||||
|
ACCOUNTBANNED: 104,
|
||||||
|
REGISTERUSEREXIST: 110,
|
||||||
|
VERSIONTOOLOW: 115,
|
||||||
|
MAINTAIN: 120,
|
||||||
|
GOLDNOTENOUGH: 125,
|
||||||
|
NOTBETCOUNT: 126,
|
||||||
|
NOTLEAVEROOM: 127,
|
||||||
|
TOTALBETEXCEEDSLIMIT: 500,
|
||||||
|
AREABETEXCEEDSLIMIT: 505
|
||||||
|
};
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.pb);
|
6099
assets/scripts/network/pb/colorgame_pb.js
Normal file
6099
assets/scripts/network/pb/colorgame_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
940
assets/scripts/network/pb/common_pb.js
Normal file
940
assets/scripts/network/pb/common_pb.js
Normal file
@ -0,0 +1,940 @@
|
|||||||
|
// source: common.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require('google-protobuf');
|
||||||
|
var goog = jspb;
|
||||||
|
var global =
|
||||||
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
||||||
|
(typeof window !== 'undefined' && window) ||
|
||||||
|
(typeof global !== 'undefined' && global) ||
|
||||||
|
(typeof self !== 'undefined' && self) ||
|
||||||
|
(function () { return this; }).call(null) ||
|
||||||
|
Function('return this')();
|
||||||
|
|
||||||
|
var code_pb = require('./code_pb.js');
|
||||||
|
goog.object.extend(proto, code_pb);
|
||||||
|
goog.exportSymbol('proto.pb.NtfKickOutUser', null, global);
|
||||||
|
goog.exportSymbol('proto.pb.NtfPayoutFail', null, global);
|
||||||
|
goog.exportSymbol('proto.pb.ReqEnterRoom', null, global);
|
||||||
|
goog.exportSymbol('proto.pb.ReqLeaveRoom', null, global);
|
||||||
|
goog.exportSymbol('proto.pb.RspEnterRoom', null, global);
|
||||||
|
goog.exportSymbol('proto.pb.RspLeaveRoom', null, global);
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.NtfKickOutUser = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.NtfKickOutUser, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.NtfKickOutUser.displayName = 'proto.pb.NtfKickOutUser';
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.ReqEnterRoom = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.ReqEnterRoom, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.ReqEnterRoom.displayName = 'proto.pb.ReqEnterRoom';
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.RspEnterRoom, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.displayName = 'proto.pb.RspEnterRoom';
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.ReqLeaveRoom = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.ReqLeaveRoom, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.ReqLeaveRoom.displayName = 'proto.pb.ReqLeaveRoom';
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.RspLeaveRoom = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.RspLeaveRoom, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.RspLeaveRoom.displayName = 'proto.pb.RspLeaveRoom';
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.NtfPayoutFail = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.NtfPayoutFail, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.NtfPayoutFail.displayName = 'proto.pb.NtfPayoutFail';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.NtfKickOutUser.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.NtfKickOutUser.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.NtfKickOutUser} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.NtfKickOutUser.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
code: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.NtfKickOutUser}
|
||||||
|
*/
|
||||||
|
proto.pb.NtfKickOutUser.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.NtfKickOutUser;
|
||||||
|
return proto.pb.NtfKickOutUser.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.NtfKickOutUser} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.NtfKickOutUser}
|
||||||
|
*/
|
||||||
|
proto.pb.NtfKickOutUser.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {!proto.pb.ErrCode} */ (reader.readEnum());
|
||||||
|
msg.setCode(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.NtfKickOutUser.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.NtfKickOutUser.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.NtfKickOutUser} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.NtfKickOutUser.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getCode();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(
|
||||||
|
1,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ErrCode code = 1;
|
||||||
|
* @return {!proto.pb.ErrCode}
|
||||||
|
*/
|
||||||
|
proto.pb.NtfKickOutUser.prototype.getCode = function() {
|
||||||
|
return /** @type {!proto.pb.ErrCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.ErrCode} value
|
||||||
|
* @return {!proto.pb.NtfKickOutUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.NtfKickOutUser.prototype.setCode = function(value) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqEnterRoom.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.ReqEnterRoom.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.ReqEnterRoom} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ReqEnterRoom.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.ReqEnterRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqEnterRoom.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.ReqEnterRoom;
|
||||||
|
return proto.pb.ReqEnterRoom.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.ReqEnterRoom} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.ReqEnterRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqEnterRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqEnterRoom.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.ReqEnterRoom.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.ReqEnterRoom} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ReqEnterRoom.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.RspEnterRoom.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.RspEnterRoom} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
||||||
|
gameid: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||||||
|
roomtype: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.RspEnterRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.RspEnterRoom;
|
||||||
|
return proto.pb.RspEnterRoom.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.RspEnterRoom} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.RspEnterRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {!proto.pb.ErrCode} */ (reader.readEnum());
|
||||||
|
msg.setCode(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = /** @type {number} */ (reader.readInt32());
|
||||||
|
msg.setGameid(value);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {number} */ (reader.readInt32());
|
||||||
|
msg.setRoomtype(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.RspEnterRoom.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.RspEnterRoom} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getCode();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(
|
||||||
|
1,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getGameid();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt32(
|
||||||
|
2,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getRoomtype();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt32(
|
||||||
|
3,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ErrCode code = 1;
|
||||||
|
* @return {!proto.pb.ErrCode}
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.prototype.getCode = function() {
|
||||||
|
return /** @type {!proto.pb.ErrCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.ErrCode} value
|
||||||
|
* @return {!proto.pb.RspEnterRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.prototype.setCode = function(value) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int32 gameId = 2;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.prototype.getGameid = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.RspEnterRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.prototype.setGameid = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int32 roomType = 3;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.prototype.getRoomtype = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.RspEnterRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspEnterRoom.prototype.setRoomtype = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqLeaveRoom.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.ReqLeaveRoom.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.ReqLeaveRoom} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ReqLeaveRoom.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.ReqLeaveRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqLeaveRoom.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.ReqLeaveRoom;
|
||||||
|
return proto.pb.ReqLeaveRoom.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.ReqLeaveRoom} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.ReqLeaveRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqLeaveRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqLeaveRoom.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.ReqLeaveRoom.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.ReqLeaveRoom} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ReqLeaveRoom.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.RspLeaveRoom.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.RspLeaveRoom.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.RspLeaveRoom} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.RspLeaveRoom.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
code: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.RspLeaveRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.RspLeaveRoom.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.RspLeaveRoom;
|
||||||
|
return proto.pb.RspLeaveRoom.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.RspLeaveRoom} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.RspLeaveRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.RspLeaveRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {!proto.pb.ErrCode} */ (reader.readEnum());
|
||||||
|
msg.setCode(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.RspLeaveRoom.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.RspLeaveRoom.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.RspLeaveRoom} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.RspLeaveRoom.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getCode();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(
|
||||||
|
1,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ErrCode code = 1;
|
||||||
|
* @return {!proto.pb.ErrCode}
|
||||||
|
*/
|
||||||
|
proto.pb.RspLeaveRoom.prototype.getCode = function() {
|
||||||
|
return /** @type {!proto.pb.ErrCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.ErrCode} value
|
||||||
|
* @return {!proto.pb.RspLeaveRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspLeaveRoom.prototype.setCode = function(value) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.NtfPayoutFail.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.NtfPayoutFail.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.NtfPayoutFail} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.NtfPayoutFail.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
code: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.NtfPayoutFail}
|
||||||
|
*/
|
||||||
|
proto.pb.NtfPayoutFail.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.NtfPayoutFail;
|
||||||
|
return proto.pb.NtfPayoutFail.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.NtfPayoutFail} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.NtfPayoutFail}
|
||||||
|
*/
|
||||||
|
proto.pb.NtfPayoutFail.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {!proto.pb.ErrCode} */ (reader.readEnum());
|
||||||
|
msg.setCode(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.NtfPayoutFail.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.NtfPayoutFail.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.NtfPayoutFail} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.NtfPayoutFail.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getCode();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(
|
||||||
|
1,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ErrCode code = 1;
|
||||||
|
* @return {!proto.pb.ErrCode}
|
||||||
|
*/
|
||||||
|
proto.pb.NtfPayoutFail.prototype.getCode = function() {
|
||||||
|
return /** @type {!proto.pb.ErrCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.ErrCode} value
|
||||||
|
* @return {!proto.pb.NtfPayoutFail} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.NtfPayoutFail.prototype.setCode = function(value) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.pb);
|
1267
assets/scripts/network/pb/login_pb.js
Normal file
1267
assets/scripts/network/pb/login_pb.js
Normal file
File diff suppressed because it is too large
Load Diff
831
assets/scripts/network/pb/match_pb.js
Normal file
831
assets/scripts/network/pb/match_pb.js
Normal file
@ -0,0 +1,831 @@
|
|||||||
|
// source: match.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require('google-protobuf');
|
||||||
|
var goog = jspb;
|
||||||
|
var global =
|
||||||
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
||||||
|
(typeof window !== 'undefined' && window) ||
|
||||||
|
(typeof global !== 'undefined' && global) ||
|
||||||
|
(typeof self !== 'undefined' && self) ||
|
||||||
|
(function () { return this; }).call(null) ||
|
||||||
|
Function('return this')();
|
||||||
|
|
||||||
|
var code_pb = require('./code_pb.js');
|
||||||
|
goog.object.extend(proto, code_pb);
|
||||||
|
var user_pb = require('./user_pb.js');
|
||||||
|
goog.object.extend(proto, user_pb);
|
||||||
|
var service_pb = require('./service_pb.js');
|
||||||
|
goog.object.extend(proto, service_pb);
|
||||||
|
goog.exportSymbol('proto.pb.NotifyUserEnterRoom', null, global);
|
||||||
|
goog.exportSymbol('proto.pb.ReqMatchRoom', null, global);
|
||||||
|
goog.exportSymbol('proto.pb.RspMatchRoom', null, global);
|
||||||
|
goog.exportSymbol('proto.pb.RspMatchRoom.ColorInfo', null, global);
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.ReqMatchRoom, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.displayName = 'proto.pb.ReqMatchRoom';
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.RspMatchRoom, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.displayName = 'proto.pb.RspMatchRoom';
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.ColorInfo = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.RspMatchRoom.ColorInfo, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.ColorInfo.displayName = 'proto.pb.RspMatchRoom.ColorInfo';
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.pb.NotifyUserEnterRoom.repeatedFields_, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.NotifyUserEnterRoom, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.displayName = 'proto.pb.NotifyUserEnterRoom';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.ReqMatchRoom.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.ReqMatchRoom} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
gameid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
||||||
|
roomtype: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.ReqMatchRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.ReqMatchRoom;
|
||||||
|
return proto.pb.ReqMatchRoom.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.ReqMatchRoom} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.ReqMatchRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {!proto.pb.ServiceTypeId} */ (reader.readEnum());
|
||||||
|
msg.setGameid(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = /** @type {number} */ (reader.readInt32());
|
||||||
|
msg.setRoomtype(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.ReqMatchRoom.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.ReqMatchRoom} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getGameid();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(
|
||||||
|
1,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getRoomtype();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt32(
|
||||||
|
2,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ServiceTypeId gameId = 1;
|
||||||
|
* @return {!proto.pb.ServiceTypeId}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.prototype.getGameid = function() {
|
||||||
|
return /** @type {!proto.pb.ServiceTypeId} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.ServiceTypeId} value
|
||||||
|
* @return {!proto.pb.ReqMatchRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.prototype.setGameid = function(value) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int32 roomType = 2;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.prototype.getRoomtype = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.ReqMatchRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ReqMatchRoom.prototype.setRoomtype = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.RspMatchRoom.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.RspMatchRoom} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
||||||
|
gameid: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
||||||
|
roomtype: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
||||||
|
user: (f = msg.getUser()) && user_pb.GameUser.toObject(includeInstance, f),
|
||||||
|
colorinfo: (f = msg.getColorinfo()) && proto.pb.RspMatchRoom.ColorInfo.toObject(includeInstance, f)
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.RspMatchRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.RspMatchRoom;
|
||||||
|
return proto.pb.RspMatchRoom.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.RspMatchRoom} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.RspMatchRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {!proto.pb.ErrCode} */ (reader.readEnum());
|
||||||
|
msg.setCode(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = /** @type {!proto.pb.ServiceTypeId} */ (reader.readEnum());
|
||||||
|
msg.setGameid(value);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {number} */ (reader.readInt32());
|
||||||
|
msg.setRoomtype(value);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = new user_pb.GameUser;
|
||||||
|
reader.readMessage(value,user_pb.GameUser.deserializeBinaryFromReader);
|
||||||
|
msg.setUser(value);
|
||||||
|
break;
|
||||||
|
case 20:
|
||||||
|
var value = new proto.pb.RspMatchRoom.ColorInfo;
|
||||||
|
reader.readMessage(value,proto.pb.RspMatchRoom.ColorInfo.deserializeBinaryFromReader);
|
||||||
|
msg.setColorinfo(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.RspMatchRoom.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.RspMatchRoom} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getCode();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(
|
||||||
|
1,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getGameid();
|
||||||
|
if (f !== 0.0) {
|
||||||
|
writer.writeEnum(
|
||||||
|
2,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getRoomtype();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt32(
|
||||||
|
3,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getUser();
|
||||||
|
if (f != null) {
|
||||||
|
writer.writeMessage(
|
||||||
|
4,
|
||||||
|
f,
|
||||||
|
user_pb.GameUser.serializeBinaryToWriter
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getColorinfo();
|
||||||
|
if (f != null) {
|
||||||
|
writer.writeMessage(
|
||||||
|
20,
|
||||||
|
f,
|
||||||
|
proto.pb.RspMatchRoom.ColorInfo.serializeBinaryToWriter
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.ColorInfo.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.RspMatchRoom.ColorInfo.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.RspMatchRoom.ColorInfo} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.ColorInfo.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.RspMatchRoom.ColorInfo}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.ColorInfo.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.RspMatchRoom.ColorInfo;
|
||||||
|
return proto.pb.RspMatchRoom.ColorInfo.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.RspMatchRoom.ColorInfo} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.RspMatchRoom.ColorInfo}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.ColorInfo.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.ColorInfo.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.RspMatchRoom.ColorInfo.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.RspMatchRoom.ColorInfo} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.ColorInfo.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ErrCode code = 1;
|
||||||
|
* @return {!proto.pb.ErrCode}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.getCode = function() {
|
||||||
|
return /** @type {!proto.pb.ErrCode} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.ErrCode} value
|
||||||
|
* @return {!proto.pb.RspMatchRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.setCode = function(value) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ServiceTypeId gameId = 2;
|
||||||
|
* @return {!proto.pb.ServiceTypeId}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.getGameid = function() {
|
||||||
|
return /** @type {!proto.pb.ServiceTypeId} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.ServiceTypeId} value
|
||||||
|
* @return {!proto.pb.RspMatchRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.setGameid = function(value) {
|
||||||
|
return jspb.Message.setProto3EnumField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int32 roomType = 3;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.getRoomtype = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.RspMatchRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.setRoomtype = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional GameUser User = 4;
|
||||||
|
* @return {?proto.pb.GameUser}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.getUser = function() {
|
||||||
|
return /** @type{?proto.pb.GameUser} */ (
|
||||||
|
jspb.Message.getWrapperField(this, user_pb.GameUser, 4));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {?proto.pb.GameUser|undefined} value
|
||||||
|
* @return {!proto.pb.RspMatchRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.setUser = function(value) {
|
||||||
|
return jspb.Message.setWrapperField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the message field making it undefined.
|
||||||
|
* @return {!proto.pb.RspMatchRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.clearUser = function() {
|
||||||
|
return this.setUser(undefined);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this field is set.
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.hasUser = function() {
|
||||||
|
return jspb.Message.getField(this, 4) != null;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional ColorInfo colorInfo = 20;
|
||||||
|
* @return {?proto.pb.RspMatchRoom.ColorInfo}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.getColorinfo = function() {
|
||||||
|
return /** @type{?proto.pb.RspMatchRoom.ColorInfo} */ (
|
||||||
|
jspb.Message.getWrapperField(this, proto.pb.RspMatchRoom.ColorInfo, 20));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {?proto.pb.RspMatchRoom.ColorInfo|undefined} value
|
||||||
|
* @return {!proto.pb.RspMatchRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.setColorinfo = function(value) {
|
||||||
|
return jspb.Message.setWrapperField(this, 20, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the message field making it undefined.
|
||||||
|
* @return {!proto.pb.RspMatchRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.clearColorinfo = function() {
|
||||||
|
return this.setColorinfo(undefined);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this field is set.
|
||||||
|
* @return {boolean}
|
||||||
|
*/
|
||||||
|
proto.pb.RspMatchRoom.prototype.hasColorinfo = function() {
|
||||||
|
return jspb.Message.getField(this, 20) != null;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of repeated fields within this message type.
|
||||||
|
* @private {!Array<number>}
|
||||||
|
* @const
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.repeatedFields_ = [1];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.NotifyUserEnterRoom.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.NotifyUserEnterRoom} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
userList: jspb.Message.toObjectList(msg.getUserList(),
|
||||||
|
user_pb.GameUser.toObject, includeInstance)
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.NotifyUserEnterRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.NotifyUserEnterRoom;
|
||||||
|
return proto.pb.NotifyUserEnterRoom.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.NotifyUserEnterRoom} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.NotifyUserEnterRoom}
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = new user_pb.GameUser;
|
||||||
|
reader.readMessage(value,user_pb.GameUser.deserializeBinaryFromReader);
|
||||||
|
msg.addUser(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.NotifyUserEnterRoom.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.NotifyUserEnterRoom} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getUserList();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeRepeatedMessage(
|
||||||
|
1,
|
||||||
|
f,
|
||||||
|
user_pb.GameUser.serializeBinaryToWriter
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* repeated GameUser User = 1;
|
||||||
|
* @return {!Array<!proto.pb.GameUser>}
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.prototype.getUserList = function() {
|
||||||
|
return /** @type{!Array<!proto.pb.GameUser>} */ (
|
||||||
|
jspb.Message.getRepeatedWrapperField(this, user_pb.GameUser, 1));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!Array<!proto.pb.GameUser>} value
|
||||||
|
* @return {!proto.pb.NotifyUserEnterRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.prototype.setUserList = function(value) {
|
||||||
|
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {!proto.pb.GameUser=} opt_value
|
||||||
|
* @param {number=} opt_index
|
||||||
|
* @return {!proto.pb.GameUser}
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.prototype.addUser = function(opt_value, opt_index) {
|
||||||
|
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.pb.GameUser, opt_index);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the list making it empty but non-null.
|
||||||
|
* @return {!proto.pb.NotifyUserEnterRoom} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.NotifyUserEnterRoom.prototype.clearUserList = function() {
|
||||||
|
return this.setUserList([]);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.pb);
|
62
assets/scripts/network/pb/msgId_pb.js
Normal file
62
assets/scripts/network/pb/msgId_pb.js
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
// source: msgId.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require('google-protobuf');
|
||||||
|
var goog = jspb;
|
||||||
|
var global =
|
||||||
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
||||||
|
(typeof window !== 'undefined' && window) ||
|
||||||
|
(typeof global !== 'undefined' && global) ||
|
||||||
|
(typeof self !== 'undefined' && self) ||
|
||||||
|
(function () { return this; }).call(null) ||
|
||||||
|
Function('return this')();
|
||||||
|
|
||||||
|
goog.exportSymbol('proto.pb.MsgId', null, global);
|
||||||
|
/**
|
||||||
|
* @enum {number}
|
||||||
|
*/
|
||||||
|
proto.pb.MsgId = {
|
||||||
|
MI_UNKNOWN: 0,
|
||||||
|
NTFMAINTAINID: 1000,
|
||||||
|
NTFKICKOUTUSERID: 1001,
|
||||||
|
REQENTERROOMID: 1002,
|
||||||
|
RSPENTERROOMID: 1003,
|
||||||
|
REQLEAVEROOMID: 1004,
|
||||||
|
RSPLEAVEROOMID: 1005,
|
||||||
|
NTFPAYOUTFAILID: 1010,
|
||||||
|
REQCHATID: 2000,
|
||||||
|
RSPCHATID: 2001,
|
||||||
|
REQUSERLOGINID: 2100,
|
||||||
|
RSPUSERLOGINID: 2101,
|
||||||
|
NTFUSERONLINEID: 2102,
|
||||||
|
NTFUSERINSERVICEID: 2103,
|
||||||
|
REQUSERLOGOUTID: 2104,
|
||||||
|
RSPUSERLOGOUTID: 2105,
|
||||||
|
NTFUSEROFFLINEID: 2106,
|
||||||
|
REQMATCHROOMID: 2200,
|
||||||
|
RSPMATCHROOMID: 2201,
|
||||||
|
NTFUSERENTERROOMID: 2202,
|
||||||
|
NTFCOLORROOMINFOID: 2300,
|
||||||
|
NTFCOLORGAMESTARTID: 2305,
|
||||||
|
NTFCOLORBETTINGID: 2310,
|
||||||
|
REQCOLORBETTINGID: 2315,
|
||||||
|
RSPCOLORBETTINGID: 2320,
|
||||||
|
NTFCOLORBETAREAINFOID: 2325,
|
||||||
|
NTFCOLORENDBETTINGID: 2330,
|
||||||
|
NTFCOLOROPENTHREEDICEID: 2335,
|
||||||
|
NTFCOLORSETTLEID: 2340,
|
||||||
|
NTFCOLORBIGUSERID: 2345,
|
||||||
|
NTFCOLORTRENDID: 2350
|
||||||
|
};
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.pb);
|
40
assets/scripts/network/pb/service_pb.js
Normal file
40
assets/scripts/network/pb/service_pb.js
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
// source: service.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require('google-protobuf');
|
||||||
|
var goog = jspb;
|
||||||
|
var global =
|
||||||
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
||||||
|
(typeof window !== 'undefined' && window) ||
|
||||||
|
(typeof global !== 'undefined' && global) ||
|
||||||
|
(typeof self !== 'undefined' && self) ||
|
||||||
|
(function () { return this; }).call(null) ||
|
||||||
|
Function('return this')();
|
||||||
|
|
||||||
|
goog.exportSymbol('proto.pb.ServiceTypeId', null, global);
|
||||||
|
/**
|
||||||
|
* @enum {number}
|
||||||
|
*/
|
||||||
|
proto.pb.ServiceTypeId = {
|
||||||
|
STI_UNKNOWN: 0,
|
||||||
|
STI_LOGIN: 10000,
|
||||||
|
STI_CHAT: 10005,
|
||||||
|
STI_MATCH: 10010,
|
||||||
|
STI_LOBBY: 10015,
|
||||||
|
STI_ADMIN: 10020,
|
||||||
|
STI_GATE: 20000,
|
||||||
|
STI_COLORGAME: 20005,
|
||||||
|
STI_DB: 30000
|
||||||
|
};
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.pb);
|
658
assets/scripts/network/pb/user_pb.js
Normal file
658
assets/scripts/network/pb/user_pb.js
Normal file
@ -0,0 +1,658 @@
|
|||||||
|
// source: user.proto
|
||||||
|
/**
|
||||||
|
* @fileoverview
|
||||||
|
* @enhanceable
|
||||||
|
* @suppress {missingRequire} reports error on implicit type usages.
|
||||||
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
||||||
|
* field starts with 'MSG_' and isn't a translatable message.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
// GENERATED CODE -- DO NOT EDIT!
|
||||||
|
/* eslint-disable */
|
||||||
|
// @ts-nocheck
|
||||||
|
|
||||||
|
var jspb = require('google-protobuf');
|
||||||
|
var goog = jspb;
|
||||||
|
var global =
|
||||||
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
||||||
|
(typeof window !== 'undefined' && window) ||
|
||||||
|
(typeof global !== 'undefined' && global) ||
|
||||||
|
(typeof self !== 'undefined' && self) ||
|
||||||
|
(function () { return this; }).call(null) ||
|
||||||
|
Function('return this')();
|
||||||
|
|
||||||
|
goog.exportSymbol('proto.pb.ChatUser', null, global);
|
||||||
|
goog.exportSymbol('proto.pb.GameUser', null, global);
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.ChatUser, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.displayName = 'proto.pb.ChatUser';
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Generated by JsPbCodeGenerator.
|
||||||
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
||||||
|
* server response, or constructed directly in Javascript. The array is used
|
||||||
|
* in place and becomes part of the constructed object. It is not cloned.
|
||||||
|
* If no data is provided, the constructed object will be empty, but still
|
||||||
|
* valid.
|
||||||
|
* @extends {jspb.Message}
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser = function(opt_data) {
|
||||||
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
||||||
|
};
|
||||||
|
goog.inherits(proto.pb.GameUser, jspb.Message);
|
||||||
|
if (goog.DEBUG && !COMPILED) {
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
* @override
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.displayName = 'proto.pb.GameUser';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.ChatUser.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.ChatUser} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
||||||
|
nickname: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
|
avatar: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||||
|
avatarframe: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||||
|
viplevel: jspb.Message.getFieldWithDefault(msg, 5, "")
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.ChatUser}
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.ChatUser;
|
||||||
|
return proto.pb.ChatUser.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.ChatUser} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.ChatUser}
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {number} */ (reader.readInt64());
|
||||||
|
msg.setUserid(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setNickname(value);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setAvatar(value);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setAvatarframe(value);
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setViplevel(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.ChatUser.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.ChatUser} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getUserid();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt64(
|
||||||
|
1,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getNickname();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
2,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getAvatar();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
3,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getAvatarframe();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
4,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getViplevel();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
5,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int64 userId = 1;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.getUserid = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.ChatUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.setUserid = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string nickname = 2;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.getNickname = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.pb.ChatUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.setNickname = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string avatar = 3;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.getAvatar = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.pb.ChatUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.setAvatar = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string avatarFrame = 4;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.getAvatarframe = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.pb.ChatUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.setAvatarframe = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string vipLevel = 5;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.getViplevel = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.pb.ChatUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.ChatUser.prototype.setViplevel = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 5, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
||||||
|
/**
|
||||||
|
* Creates an object representation of this proto.
|
||||||
|
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
||||||
|
* Optional fields that are not set will be set to undefined.
|
||||||
|
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
||||||
|
* For the list of reserved names please see:
|
||||||
|
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
||||||
|
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
||||||
|
* JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @return {!Object}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.toObject = function(opt_includeInstance) {
|
||||||
|
return proto.pb.GameUser.toObject(opt_includeInstance, this);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static version of the {@see toObject} method.
|
||||||
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
||||||
|
* the JSPB instance for transitional soy proto support:
|
||||||
|
* http://goto/soy-param-migration
|
||||||
|
* @param {!proto.pb.GameUser} msg The msg instance to transform.
|
||||||
|
* @return {!Object}
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.toObject = function(includeInstance, msg) {
|
||||||
|
var f, obj = {
|
||||||
|
userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
||||||
|
nickname: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||||
|
avatar: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||||
|
avatarframe: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||||
|
viplevel: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
||||||
|
vipexp: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||||
|
seat: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
||||||
|
gold: jspb.Message.getFieldWithDefault(msg, 25, 0)
|
||||||
|
};
|
||||||
|
|
||||||
|
if (includeInstance) {
|
||||||
|
obj.$jspbMessageInstance = msg;
|
||||||
|
}
|
||||||
|
return obj;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format).
|
||||||
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
||||||
|
* @return {!proto.pb.GameUser}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.deserializeBinary = function(bytes) {
|
||||||
|
var reader = new jspb.BinaryReader(bytes);
|
||||||
|
var msg = new proto.pb.GameUser;
|
||||||
|
return proto.pb.GameUser.deserializeBinaryFromReader(msg, reader);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deserializes binary data (in protobuf wire format) from the
|
||||||
|
* given reader into the given message object.
|
||||||
|
* @param {!proto.pb.GameUser} msg The message object to deserialize into.
|
||||||
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
||||||
|
* @return {!proto.pb.GameUser}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.deserializeBinaryFromReader = function(msg, reader) {
|
||||||
|
while (reader.nextField()) {
|
||||||
|
if (reader.isEndGroup()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
var field = reader.getFieldNumber();
|
||||||
|
switch (field) {
|
||||||
|
case 1:
|
||||||
|
var value = /** @type {number} */ (reader.readInt64());
|
||||||
|
msg.setUserid(value);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setNickname(value);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setAvatar(value);
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var value = /** @type {string} */ (reader.readString());
|
||||||
|
msg.setAvatarframe(value);
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
var value = /** @type {number} */ (reader.readInt32());
|
||||||
|
msg.setViplevel(value);
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
var value = /** @type {number} */ (reader.readInt32());
|
||||||
|
msg.setVipexp(value);
|
||||||
|
break;
|
||||||
|
case 20:
|
||||||
|
var value = /** @type {number} */ (reader.readInt64());
|
||||||
|
msg.setSeat(value);
|
||||||
|
break;
|
||||||
|
case 25:
|
||||||
|
var value = /** @type {number} */ (reader.readInt64());
|
||||||
|
msg.setGold(value);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
reader.skipField();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return msg;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the message to binary data (in protobuf wire format).
|
||||||
|
* @return {!Uint8Array}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.serializeBinary = function() {
|
||||||
|
var writer = new jspb.BinaryWriter();
|
||||||
|
proto.pb.GameUser.serializeBinaryToWriter(this, writer);
|
||||||
|
return writer.getResultBuffer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serializes the given message to binary data (in protobuf wire
|
||||||
|
* format), writing to the given BinaryWriter.
|
||||||
|
* @param {!proto.pb.GameUser} message
|
||||||
|
* @param {!jspb.BinaryWriter} writer
|
||||||
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.serializeBinaryToWriter = function(message, writer) {
|
||||||
|
var f = undefined;
|
||||||
|
f = message.getUserid();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt64(
|
||||||
|
1,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getNickname();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
2,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getAvatar();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
3,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getAvatarframe();
|
||||||
|
if (f.length > 0) {
|
||||||
|
writer.writeString(
|
||||||
|
4,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getViplevel();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt32(
|
||||||
|
5,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getVipexp();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt32(
|
||||||
|
6,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getSeat();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt64(
|
||||||
|
20,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
f = message.getGold();
|
||||||
|
if (f !== 0) {
|
||||||
|
writer.writeInt64(
|
||||||
|
25,
|
||||||
|
f
|
||||||
|
);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int64 userId = 1;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.getUserid = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.GameUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.setUserid = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 1, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string nickname = 2;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.getNickname = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.pb.GameUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.setNickname = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 2, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string avatar = 3;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.getAvatar = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.pb.GameUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.setAvatar = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 3, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional string avatarFrame = 4;
|
||||||
|
* @return {string}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.getAvatarframe = function() {
|
||||||
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string} value
|
||||||
|
* @return {!proto.pb.GameUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.setAvatarframe = function(value) {
|
||||||
|
return jspb.Message.setProto3StringField(this, 4, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int32 vipLevel = 5;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.getViplevel = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.GameUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.setViplevel = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 5, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int32 vipExp = 6;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.getVipexp = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.GameUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.setVipexp = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 6, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int64 seat = 20;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.getSeat = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.GameUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.setSeat = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 20, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* optional int64 gold = 25;
|
||||||
|
* @return {number}
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.getGold = function() {
|
||||||
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0));
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {number} value
|
||||||
|
* @return {!proto.pb.GameUser} returns this
|
||||||
|
*/
|
||||||
|
proto.pb.GameUser.prototype.setGold = function(value) {
|
||||||
|
return jspb.Message.setProto3IntField(this, 25, value);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
goog.object.extend(exports, proto.pb);
|
Loading…
x
Reference in New Issue
Block a user