tenebrous-sheets/src/frontend/_proto/cofd_pb.js

2874 lines
84 KiB
JavaScript
Raw Normal View History

// source: cofd.proto
/**
* @fileoverview
* @enhanceable
* @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 = Function('return this')();
goog.exportSymbol('proto.models.proto.cofd.ChangelingFields', null, global);
goog.exportSymbol('proto.models.proto.cofd.CofdSheet', null, global);
goog.exportSymbol('proto.models.proto.cofd.CofdSheet.Attack', null, global);
goog.exportSymbol('proto.models.proto.cofd.CofdSheet.Condition', null, global);
goog.exportSymbol('proto.models.proto.cofd.CofdSheet.Item', null, global);
goog.exportSymbol('proto.models.proto.cofd.CofdSheet.Merit', null, global);
goog.exportSymbol('proto.models.proto.cofd.CofdSheet.Skill', null, global);
goog.exportSymbol('proto.models.proto.cofd.CofdSheet.SystemFieldsCase', null, global);
goog.exportSymbol('proto.models.proto.cofd.CoreFields', null, global);
goog.exportSymbol('proto.models.proto.cofd.MageFields', 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.models.proto.cofd.CoreFields = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.models.proto.cofd.CoreFields, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.models.proto.cofd.CoreFields.displayName = 'proto.models.proto.cofd.CoreFields';
}
/**
* 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.models.proto.cofd.MageFields = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.models.proto.cofd.MageFields, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.models.proto.cofd.MageFields.displayName = 'proto.models.proto.cofd.MageFields';
}
/**
* 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.models.proto.cofd.ChangelingFields = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.models.proto.cofd.ChangelingFields, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.models.proto.cofd.ChangelingFields.displayName = 'proto.models.proto.cofd.ChangelingFields';
}
/**
* 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.models.proto.cofd.CofdSheet = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.models.proto.cofd.CofdSheet.repeatedFields_, proto.models.proto.cofd.CofdSheet.oneofGroups_);
};
goog.inherits(proto.models.proto.cofd.CofdSheet, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.models.proto.cofd.CofdSheet.displayName = 'proto.models.proto.cofd.CofdSheet';
}
/**
* 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.models.proto.cofd.CofdSheet.Merit = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.models.proto.cofd.CofdSheet.Merit, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.models.proto.cofd.CofdSheet.Merit.displayName = 'proto.models.proto.cofd.CofdSheet.Merit';
}
/**
* 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.models.proto.cofd.CofdSheet.Condition = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.models.proto.cofd.CofdSheet.Condition, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.models.proto.cofd.CofdSheet.Condition.displayName = 'proto.models.proto.cofd.CofdSheet.Condition';
}
/**
* 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.models.proto.cofd.CofdSheet.Skill = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.models.proto.cofd.CofdSheet.Skill.repeatedFields_, null);
};
goog.inherits(proto.models.proto.cofd.CofdSheet.Skill, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.models.proto.cofd.CofdSheet.Skill.displayName = 'proto.models.proto.cofd.CofdSheet.Skill';
}
/**
* 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.models.proto.cofd.CofdSheet.Item = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.models.proto.cofd.CofdSheet.Item, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.models.proto.cofd.CofdSheet.Item.displayName = 'proto.models.proto.cofd.CofdSheet.Item';
}
/**
* 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.models.proto.cofd.CofdSheet.Attack = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.models.proto.cofd.CofdSheet.Attack, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.models.proto.cofd.CofdSheet.Attack.displayName = 'proto.models.proto.cofd.CofdSheet.Attack';
}
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.models.proto.cofd.CoreFields.prototype.toObject = function(opt_includeInstance) {
return proto.models.proto.cofd.CoreFields.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.models.proto.cofd.CoreFields} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CoreFields.toObject = function(includeInstance, msg) {
var f, obj = {
integrity: 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.models.proto.cofd.CoreFields}
*/
proto.models.proto.cofd.CoreFields.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.models.proto.cofd.CoreFields;
return proto.models.proto.cofd.CoreFields.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.models.proto.cofd.CoreFields} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.models.proto.cofd.CoreFields}
*/
proto.models.proto.cofd.CoreFields.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntegrity(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.models.proto.cofd.CoreFields.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.models.proto.cofd.CoreFields.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.models.proto.cofd.CoreFields} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CoreFields.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getIntegrity();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
};
/**
* optional int32 integrity = 1;
* @return {number}
*/
proto.models.proto.cofd.CoreFields.prototype.getIntegrity = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CoreFields} returns this
*/
proto.models.proto.cofd.CoreFields.prototype.setIntegrity = function(value) {
return jspb.Message.setProto3IntField(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.models.proto.cofd.MageFields.prototype.toObject = function(opt_includeInstance) {
return proto.models.proto.cofd.MageFields.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.models.proto.cofd.MageFields} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.MageFields.toObject = function(includeInstance, msg) {
var f, obj = {
widsom: 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.models.proto.cofd.MageFields}
*/
proto.models.proto.cofd.MageFields.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.models.proto.cofd.MageFields;
return proto.models.proto.cofd.MageFields.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.models.proto.cofd.MageFields} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.models.proto.cofd.MageFields}
*/
proto.models.proto.cofd.MageFields.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setWidsom(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.models.proto.cofd.MageFields.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.models.proto.cofd.MageFields.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.models.proto.cofd.MageFields} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.MageFields.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getWidsom();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
};
/**
* optional int32 widsom = 1;
* @return {number}
*/
proto.models.proto.cofd.MageFields.prototype.getWidsom = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.MageFields} returns this
*/
proto.models.proto.cofd.MageFields.prototype.setWidsom = function(value) {
return jspb.Message.setProto3IntField(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.models.proto.cofd.ChangelingFields.prototype.toObject = function(opt_includeInstance) {
return proto.models.proto.cofd.ChangelingFields.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.models.proto.cofd.ChangelingFields} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.ChangelingFields.toObject = function(includeInstance, msg) {
var f, obj = {
clarity: 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.models.proto.cofd.ChangelingFields}
*/
proto.models.proto.cofd.ChangelingFields.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.models.proto.cofd.ChangelingFields;
return proto.models.proto.cofd.ChangelingFields.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.models.proto.cofd.ChangelingFields} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.models.proto.cofd.ChangelingFields}
*/
proto.models.proto.cofd.ChangelingFields.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setClarity(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.models.proto.cofd.ChangelingFields.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.models.proto.cofd.ChangelingFields.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.models.proto.cofd.ChangelingFields} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.ChangelingFields.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getClarity();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
};
/**
* optional int32 clarity = 1;
* @return {number}
*/
proto.models.proto.cofd.ChangelingFields.prototype.getClarity = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.ChangelingFields} returns this
*/
proto.models.proto.cofd.ChangelingFields.prototype.setClarity = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.models.proto.cofd.CofdSheet.repeatedFields_ = [20,21,27,28];
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.models.proto.cofd.CofdSheet.oneofGroups_ = [[30,31,32]];
/**
* @enum {number}
*/
proto.models.proto.cofd.CofdSheet.SystemFieldsCase = {
SYSTEM_FIELDS_NOT_SET: 0,
CORE: 30,
MAGE: 31,
CHANGELING: 32
};
/**
* @return {proto.models.proto.cofd.CofdSheet.SystemFieldsCase}
*/
proto.models.proto.cofd.CofdSheet.prototype.getSystemFieldsCase = function() {
return /** @type {proto.models.proto.cofd.CofdSheet.SystemFieldsCase} */(jspb.Message.computeOneofCase(this, proto.models.proto.cofd.CofdSheet.oneofGroups_[0]));
};
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.models.proto.cofd.CofdSheet.prototype.toObject = function(opt_includeInstance) {
return proto.models.proto.cofd.CofdSheet.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.models.proto.cofd.CofdSheet} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
gender: jspb.Message.getFieldWithDefault(msg, 2, ""),
concept: jspb.Message.getFieldWithDefault(msg, 3, ""),
age: jspb.Message.getFieldWithDefault(msg, 4, 0),
player: jspb.Message.getFieldWithDefault(msg, 5, ""),
chronicle: jspb.Message.getFieldWithDefault(msg, 6, ""),
description: jspb.Message.getFieldWithDefault(msg, 7, ""),
strength: jspb.Message.getFieldWithDefault(msg, 8, 0),
dexterity: jspb.Message.getFieldWithDefault(msg, 9, 0),
stamina: jspb.Message.getFieldWithDefault(msg, 10, 0),
intelligence: jspb.Message.getFieldWithDefault(msg, 11, 0),
wits: jspb.Message.getFieldWithDefault(msg, 12, 0),
resolve: jspb.Message.getFieldWithDefault(msg, 13, 0),
presence: jspb.Message.getFieldWithDefault(msg, 14, 0),
manipulation: jspb.Message.getFieldWithDefault(msg, 15, 0),
composure: jspb.Message.getFieldWithDefault(msg, 16, 0),
physicalSkillsMap: (f = msg.getPhysicalSkillsMap()) ? f.toObject(includeInstance, proto.models.proto.cofd.CofdSheet.Skill.toObject) : [],
mentalSkillsMap: (f = msg.getMentalSkillsMap()) ? f.toObject(includeInstance, proto.models.proto.cofd.CofdSheet.Skill.toObject) : [],
socialSkillsMap: (f = msg.getSocialSkillsMap()) ? f.toObject(includeInstance, proto.models.proto.cofd.CofdSheet.Skill.toObject) : [],
meritsList: jspb.Message.toObjectList(msg.getMeritsList(),
proto.models.proto.cofd.CofdSheet.Merit.toObject, includeInstance),
conditionsList: jspb.Message.toObjectList(msg.getConditionsList(),
proto.models.proto.cofd.CofdSheet.Condition.toObject, includeInstance),
size: jspb.Message.getFieldWithDefault(msg, 22, 0),
health: jspb.Message.getFieldWithDefault(msg, 23, 0),
willpower: jspb.Message.getFieldWithDefault(msg, 24, 0),
experiencePoints: jspb.Message.getFieldWithDefault(msg, 25, 0),
beats: jspb.Message.getFieldWithDefault(msg, 26, 0),
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
proto.models.proto.cofd.CofdSheet.Item.toObject, includeInstance),
attacksList: jspb.Message.toObjectList(msg.getAttacksList(),
proto.models.proto.cofd.CofdSheet.Attack.toObject, includeInstance),
otherDataMap: (f = msg.getOtherDataMap()) ? f.toObject(includeInstance, undefined) : [],
core: (f = msg.getCore()) && proto.models.proto.cofd.CoreFields.toObject(includeInstance, f),
mage: (f = msg.getMage()) && proto.models.proto.cofd.MageFields.toObject(includeInstance, f),
changeling: (f = msg.getChangeling()) && proto.models.proto.cofd.ChangelingFields.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.models.proto.cofd.CofdSheet}
*/
proto.models.proto.cofd.CofdSheet.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.models.proto.cofd.CofdSheet;
return proto.models.proto.cofd.CofdSheet.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.models.proto.cofd.CofdSheet} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.models.proto.cofd.CofdSheet}
*/
proto.models.proto.cofd.CofdSheet.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setGender(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setConcept(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt32());
msg.setAge(value);
break;
case 5:
var value = /** @type {string} */ (reader.readString());
msg.setPlayer(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setChronicle(value);
break;
case 7:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
case 8:
var value = /** @type {number} */ (reader.readInt32());
msg.setStrength(value);
break;
case 9:
var value = /** @type {number} */ (reader.readInt32());
msg.setDexterity(value);
break;
case 10:
var value = /** @type {number} */ (reader.readInt32());
msg.setStamina(value);
break;
case 11:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntelligence(value);
break;
case 12:
var value = /** @type {number} */ (reader.readInt32());
msg.setWits(value);
break;
case 13:
var value = /** @type {number} */ (reader.readInt32());
msg.setResolve(value);
break;
case 14:
var value = /** @type {number} */ (reader.readInt32());
msg.setPresence(value);
break;
case 15:
var value = /** @type {number} */ (reader.readInt32());
msg.setManipulation(value);
break;
case 16:
var value = /** @type {number} */ (reader.readInt32());
msg.setComposure(value);
break;
case 17:
var value = msg.getPhysicalSkillsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.models.proto.cofd.CofdSheet.Skill.deserializeBinaryFromReader, "", new proto.models.proto.cofd.CofdSheet.Skill());
});
break;
case 18:
var value = msg.getMentalSkillsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.models.proto.cofd.CofdSheet.Skill.deserializeBinaryFromReader, "", new proto.models.proto.cofd.CofdSheet.Skill());
});
break;
case 19:
var value = msg.getSocialSkillsMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.models.proto.cofd.CofdSheet.Skill.deserializeBinaryFromReader, "", new proto.models.proto.cofd.CofdSheet.Skill());
});
break;
case 20:
var value = new proto.models.proto.cofd.CofdSheet.Merit;
reader.readMessage(value,proto.models.proto.cofd.CofdSheet.Merit.deserializeBinaryFromReader);
msg.addMerits(value);
break;
case 21:
var value = new proto.models.proto.cofd.CofdSheet.Condition;
reader.readMessage(value,proto.models.proto.cofd.CofdSheet.Condition.deserializeBinaryFromReader);
msg.addConditions(value);
break;
case 22:
var value = /** @type {number} */ (reader.readInt32());
msg.setSize(value);
break;
case 23:
var value = /** @type {number} */ (reader.readInt32());
msg.setHealth(value);
break;
case 24:
var value = /** @type {number} */ (reader.readInt32());
msg.setWillpower(value);
break;
case 25:
var value = /** @type {number} */ (reader.readInt32());
msg.setExperiencePoints(value);
break;
case 26:
var value = /** @type {number} */ (reader.readInt32());
msg.setBeats(value);
break;
case 27:
var value = new proto.models.proto.cofd.CofdSheet.Item;
reader.readMessage(value,proto.models.proto.cofd.CofdSheet.Item.deserializeBinaryFromReader);
msg.addItems(value);
break;
case 28:
var value = new proto.models.proto.cofd.CofdSheet.Attack;
reader.readMessage(value,proto.models.proto.cofd.CofdSheet.Attack.deserializeBinaryFromReader);
msg.addAttacks(value);
break;
case 29:
var value = msg.getOtherDataMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
});
break;
case 30:
var value = new proto.models.proto.cofd.CoreFields;
reader.readMessage(value,proto.models.proto.cofd.CoreFields.deserializeBinaryFromReader);
msg.setCore(value);
break;
case 31:
var value = new proto.models.proto.cofd.MageFields;
reader.readMessage(value,proto.models.proto.cofd.MageFields.deserializeBinaryFromReader);
msg.setMage(value);
break;
case 32:
var value = new proto.models.proto.cofd.ChangelingFields;
reader.readMessage(value,proto.models.proto.cofd.ChangelingFields.deserializeBinaryFromReader);
msg.setChangeling(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.models.proto.cofd.CofdSheet.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.models.proto.cofd.CofdSheet.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.models.proto.cofd.CofdSheet} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getGender();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getConcept();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
f = message.getAge();
if (f !== 0) {
writer.writeInt32(
4,
f
);
}
f = message.getPlayer();
if (f.length > 0) {
writer.writeString(
5,
f
);
}
f = message.getChronicle();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
7,
f
);
}
f = message.getStrength();
if (f !== 0) {
writer.writeInt32(
8,
f
);
}
f = message.getDexterity();
if (f !== 0) {
writer.writeInt32(
9,
f
);
}
f = message.getStamina();
if (f !== 0) {
writer.writeInt32(
10,
f
);
}
f = message.getIntelligence();
if (f !== 0) {
writer.writeInt32(
11,
f
);
}
f = message.getWits();
if (f !== 0) {
writer.writeInt32(
12,
f
);
}
f = message.getResolve();
if (f !== 0) {
writer.writeInt32(
13,
f
);
}
f = message.getPresence();
if (f !== 0) {
writer.writeInt32(
14,
f
);
}
f = message.getManipulation();
if (f !== 0) {
writer.writeInt32(
15,
f
);
}
f = message.getComposure();
if (f !== 0) {
writer.writeInt32(
16,
f
);
}
f = message.getPhysicalSkillsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(17, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.models.proto.cofd.CofdSheet.Skill.serializeBinaryToWriter);
}
f = message.getMentalSkillsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(18, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.models.proto.cofd.CofdSheet.Skill.serializeBinaryToWriter);
}
f = message.getSocialSkillsMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(19, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.models.proto.cofd.CofdSheet.Skill.serializeBinaryToWriter);
}
f = message.getMeritsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
20,
f,
proto.models.proto.cofd.CofdSheet.Merit.serializeBinaryToWriter
);
}
f = message.getConditionsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
21,
f,
proto.models.proto.cofd.CofdSheet.Condition.serializeBinaryToWriter
);
}
f = message.getSize();
if (f !== 0) {
writer.writeInt32(
22,
f
);
}
f = message.getHealth();
if (f !== 0) {
writer.writeInt32(
23,
f
);
}
f = message.getWillpower();
if (f !== 0) {
writer.writeInt32(
24,
f
);
}
f = message.getExperiencePoints();
if (f !== 0) {
writer.writeInt32(
25,
f
);
}
f = message.getBeats();
if (f !== 0) {
writer.writeInt32(
26,
f
);
}
f = message.getItemsList();
if (f.length > 0) {
writer.writeRepeatedMessage(
27,
f,
proto.models.proto.cofd.CofdSheet.Item.serializeBinaryToWriter
);
}
f = message.getAttacksList();
if (f.length > 0) {
writer.writeRepeatedMessage(
28,
f,
proto.models.proto.cofd.CofdSheet.Attack.serializeBinaryToWriter
);
}
f = message.getOtherDataMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(29, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
}
f = message.getCore();
if (f != null) {
writer.writeMessage(
30,
f,
proto.models.proto.cofd.CoreFields.serializeBinaryToWriter
);
}
f = message.getMage();
if (f != null) {
writer.writeMessage(
31,
f,
proto.models.proto.cofd.MageFields.serializeBinaryToWriter
);
}
f = message.getChangeling();
if (f != null) {
writer.writeMessage(
32,
f,
proto.models.proto.cofd.ChangelingFields.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.models.proto.cofd.CofdSheet.Merit.prototype.toObject = function(opt_includeInstance) {
return proto.models.proto.cofd.CofdSheet.Merit.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.models.proto.cofd.CofdSheet.Merit} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.Merit.toObject = function(includeInstance, msg) {
var f, obj = {
dots: jspb.Message.getFieldWithDefault(msg, 1, 0),
name: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.models.proto.cofd.CofdSheet.Merit}
*/
proto.models.proto.cofd.CofdSheet.Merit.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.models.proto.cofd.CofdSheet.Merit;
return proto.models.proto.cofd.CofdSheet.Merit.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.models.proto.cofd.CofdSheet.Merit} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.models.proto.cofd.CofdSheet.Merit}
*/
proto.models.proto.cofd.CofdSheet.Merit.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setDots(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.models.proto.cofd.CofdSheet.Merit.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.models.proto.cofd.CofdSheet.Merit.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.models.proto.cofd.CofdSheet.Merit} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.Merit.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDots();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional int32 dots = 1;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.Merit.prototype.getDots = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet.Merit} returns this
*/
proto.models.proto.cofd.CofdSheet.Merit.prototype.setDots = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string name = 2;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.Merit.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet.Merit} returns this
*/
proto.models.proto.cofd.CofdSheet.Merit.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(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.models.proto.cofd.CofdSheet.Condition.prototype.toObject = function(opt_includeInstance) {
return proto.models.proto.cofd.CofdSheet.Condition.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.models.proto.cofd.CofdSheet.Condition} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.Condition.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.models.proto.cofd.CofdSheet.Condition}
*/
proto.models.proto.cofd.CofdSheet.Condition.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.models.proto.cofd.CofdSheet.Condition;
return proto.models.proto.cofd.CofdSheet.Condition.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.models.proto.cofd.CofdSheet.Condition} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.models.proto.cofd.CofdSheet.Condition}
*/
proto.models.proto.cofd.CofdSheet.Condition.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.models.proto.cofd.CofdSheet.Condition.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.models.proto.cofd.CofdSheet.Condition.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.models.proto.cofd.CofdSheet.Condition} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.Condition.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.Condition.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet.Condition} returns this
*/
proto.models.proto.cofd.CofdSheet.Condition.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.models.proto.cofd.CofdSheet.Skill.repeatedFields_ = [4];
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.models.proto.cofd.CofdSheet.Skill.prototype.toObject = function(opt_includeInstance) {
return proto.models.proto.cofd.CofdSheet.Skill.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.models.proto.cofd.CofdSheet.Skill} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.Skill.toObject = function(includeInstance, msg) {
var f, obj = {
dots: jspb.Message.getFieldWithDefault(msg, 1, 0),
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
untrainedPenalty: jspb.Message.getFieldWithDefault(msg, 3, 0),
specializationsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : 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.models.proto.cofd.CofdSheet.Skill}
*/
proto.models.proto.cofd.CofdSheet.Skill.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.models.proto.cofd.CofdSheet.Skill;
return proto.models.proto.cofd.CofdSheet.Skill.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.models.proto.cofd.CofdSheet.Skill} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.models.proto.cofd.CofdSheet.Skill}
*/
proto.models.proto.cofd.CofdSheet.Skill.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setDots(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 3:
var value = /** @type {number} */ (reader.readSint32());
msg.setUntrainedPenalty(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.addSpecializations(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.models.proto.cofd.CofdSheet.Skill.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.models.proto.cofd.CofdSheet.Skill} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.Skill.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDots();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getName();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getUntrainedPenalty();
if (f !== 0) {
writer.writeSint32(
3,
f
);
}
f = message.getSpecializationsList();
if (f.length > 0) {
writer.writeRepeatedString(
4,
f
);
}
};
/**
* optional int32 dots = 1;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.getDots = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet.Skill} returns this
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.setDots = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string name = 2;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet.Skill} returns this
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional sint32 untrained_penalty = 3;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.getUntrainedPenalty = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet.Skill} returns this
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.setUntrainedPenalty = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* repeated string specializations = 4;
* @return {!Array<string>}
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.getSpecializationsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
};
/**
* @param {!Array<string>} value
* @return {!proto.models.proto.cofd.CofdSheet.Skill} returns this
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.setSpecializationsList = function(value) {
return jspb.Message.setField(this, 4, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.models.proto.cofd.CofdSheet.Skill} returns this
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.addSpecializations = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.models.proto.cofd.CofdSheet.Skill} returns this
*/
proto.models.proto.cofd.CofdSheet.Skill.prototype.clearSpecializationsList = function() {
return this.setSpecializationsList([]);
};
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.models.proto.cofd.CofdSheet.Item.prototype.toObject = function(opt_includeInstance) {
return proto.models.proto.cofd.CofdSheet.Item.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.models.proto.cofd.CofdSheet.Item} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.Item.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
rules: jspb.Message.getFieldWithDefault(msg, 3, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.models.proto.cofd.CofdSheet.Item}
*/
proto.models.proto.cofd.CofdSheet.Item.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.models.proto.cofd.CofdSheet.Item;
return proto.models.proto.cofd.CofdSheet.Item.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.models.proto.cofd.CofdSheet.Item} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.models.proto.cofd.CofdSheet.Item}
*/
proto.models.proto.cofd.CofdSheet.Item.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setDescription(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setRules(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.models.proto.cofd.CofdSheet.Item.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.models.proto.cofd.CofdSheet.Item.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.models.proto.cofd.CofdSheet.Item} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.Item.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getDescription();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getRules();
if (f.length > 0) {
writer.writeString(
3,
f
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.Item.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet.Item} returns this
*/
proto.models.proto.cofd.CofdSheet.Item.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string description = 2;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.Item.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet.Item} returns this
*/
proto.models.proto.cofd.CofdSheet.Item.prototype.setDescription = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string rules = 3;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.Item.prototype.getRules = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet.Item} returns this
*/
proto.models.proto.cofd.CofdSheet.Item.prototype.setRules = function(value) {
return jspb.Message.setProto3StringField(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.models.proto.cofd.CofdSheet.Attack.prototype.toObject = function(opt_includeInstance) {
return proto.models.proto.cofd.CofdSheet.Attack.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.models.proto.cofd.CofdSheet.Attack} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.Attack.toObject = function(includeInstance, msg) {
var f, obj = {
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
dicePool: jspb.Message.getFieldWithDefault(msg, 2, 0),
damage: jspb.Message.getFieldWithDefault(msg, 3, 0),
range: jspb.Message.getFieldWithDefault(msg, 4, 0),
initiativeModifier: jspb.Message.getFieldWithDefault(msg, 5, 0),
size: jspb.Message.getFieldWithDefault(msg, 6, 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.models.proto.cofd.CofdSheet.Attack}
*/
proto.models.proto.cofd.CofdSheet.Attack.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.models.proto.cofd.CofdSheet.Attack;
return proto.models.proto.cofd.CofdSheet.Attack.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.models.proto.cofd.CofdSheet.Attack} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.models.proto.cofd.CofdSheet.Attack}
*/
proto.models.proto.cofd.CofdSheet.Attack.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setName(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setDicePool(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt32());
msg.setDamage(value);
break;
case 4:
var value = /** @type {number} */ (reader.readInt32());
msg.setRange(value);
break;
case 5:
var value = /** @type {number} */ (reader.readSint32());
msg.setInitiativeModifier(value);
break;
case 6:
var value = /** @type {number} */ (reader.readInt32());
msg.setSize(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.models.proto.cofd.CofdSheet.Attack.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.models.proto.cofd.CofdSheet.Attack} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.models.proto.cofd.CofdSheet.Attack.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getName();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getDicePool();
if (f !== 0) {
writer.writeInt32(
2,
f
);
}
f = message.getDamage();
if (f !== 0) {
writer.writeInt32(
3,
f
);
}
f = message.getRange();
if (f !== 0) {
writer.writeInt32(
4,
f
);
}
f = message.getInitiativeModifier();
if (f !== 0) {
writer.writeSint32(
5,
f
);
}
f = message.getSize();
if (f !== 0) {
writer.writeInt32(
6,
f
);
}
};
/**
* optional string name = 1;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet.Attack} returns this
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional int32 dice_pool = 2;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.getDicePool = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet.Attack} returns this
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.setDicePool = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional int32 damage = 3;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.getDamage = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet.Attack} returns this
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.setDamage = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional int32 range = 4;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.getRange = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet.Attack} returns this
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.setRange = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional sint32 initiative_modifier = 5;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.getInitiativeModifier = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet.Attack} returns this
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.setInitiativeModifier = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional int32 size = 6;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.getSize = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet.Attack} returns this
*/
proto.models.proto.cofd.CofdSheet.Attack.prototype.setSize = function(value) {
return jspb.Message.setProto3IntField(this, 6, value);
};
/**
* optional string name = 1;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.prototype.getName = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setName = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string gender = 2;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.prototype.getGender = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setGender = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional string concept = 3;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.prototype.getConcept = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setConcept = function(value) {
return jspb.Message.setProto3StringField(this, 3, value);
};
/**
* optional int32 age = 4;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getAge = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setAge = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional string player = 5;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.prototype.getPlayer = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setPlayer = function(value) {
return jspb.Message.setProto3StringField(this, 5, value);
};
/**
* optional string chronicle = 6;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.prototype.getChronicle = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setChronicle = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* optional string description = 7;
* @return {string}
*/
proto.models.proto.cofd.CofdSheet.prototype.getDescription = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
};
/**
* @param {string} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setDescription = function(value) {
return jspb.Message.setProto3StringField(this, 7, value);
};
/**
* optional int32 strength = 8;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getStrength = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setStrength = function(value) {
return jspb.Message.setProto3IntField(this, 8, value);
};
/**
* optional int32 dexterity = 9;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getDexterity = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setDexterity = function(value) {
return jspb.Message.setProto3IntField(this, 9, value);
};
/**
* optional int32 stamina = 10;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getStamina = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setStamina = function(value) {
return jspb.Message.setProto3IntField(this, 10, value);
};
/**
* optional int32 intelligence = 11;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getIntelligence = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setIntelligence = function(value) {
return jspb.Message.setProto3IntField(this, 11, value);
};
/**
* optional int32 wits = 12;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getWits = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setWits = function(value) {
return jspb.Message.setProto3IntField(this, 12, value);
};
/**
* optional int32 resolve = 13;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getResolve = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setResolve = function(value) {
return jspb.Message.setProto3IntField(this, 13, value);
};
/**
* optional int32 presence = 14;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getPresence = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setPresence = function(value) {
return jspb.Message.setProto3IntField(this, 14, value);
};
/**
* optional int32 manipulation = 15;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getManipulation = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setManipulation = function(value) {
return jspb.Message.setProto3IntField(this, 15, value);
};
/**
* optional int32 composure = 16;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getComposure = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setComposure = function(value) {
return jspb.Message.setProto3IntField(this, 16, value);
};
/**
* map<string, Skill> physical_skills = 17;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.models.proto.cofd.CofdSheet.Skill>}
*/
proto.models.proto.cofd.CofdSheet.prototype.getPhysicalSkillsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.models.proto.cofd.CofdSheet.Skill>} */ (
jspb.Message.getMapField(this, 17, opt_noLazyCreate,
proto.models.proto.cofd.CofdSheet.Skill));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearPhysicalSkillsMap = function() {
this.getPhysicalSkillsMap().clear();
return this;};
/**
* map<string, Skill> mental_skills = 18;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.models.proto.cofd.CofdSheet.Skill>}
*/
proto.models.proto.cofd.CofdSheet.prototype.getMentalSkillsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.models.proto.cofd.CofdSheet.Skill>} */ (
jspb.Message.getMapField(this, 18, opt_noLazyCreate,
proto.models.proto.cofd.CofdSheet.Skill));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearMentalSkillsMap = function() {
this.getMentalSkillsMap().clear();
return this;};
/**
* map<string, Skill> social_skills = 19;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,!proto.models.proto.cofd.CofdSheet.Skill>}
*/
proto.models.proto.cofd.CofdSheet.prototype.getSocialSkillsMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,!proto.models.proto.cofd.CofdSheet.Skill>} */ (
jspb.Message.getMapField(this, 19, opt_noLazyCreate,
proto.models.proto.cofd.CofdSheet.Skill));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearSocialSkillsMap = function() {
this.getSocialSkillsMap().clear();
return this;};
/**
* repeated Merit merits = 20;
* @return {!Array<!proto.models.proto.cofd.CofdSheet.Merit>}
*/
proto.models.proto.cofd.CofdSheet.prototype.getMeritsList = function() {
return /** @type{!Array<!proto.models.proto.cofd.CofdSheet.Merit>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.models.proto.cofd.CofdSheet.Merit, 20));
};
/**
* @param {!Array<!proto.models.proto.cofd.CofdSheet.Merit>} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setMeritsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 20, value);
};
/**
* @param {!proto.models.proto.cofd.CofdSheet.Merit=} opt_value
* @param {number=} opt_index
* @return {!proto.models.proto.cofd.CofdSheet.Merit}
*/
proto.models.proto.cofd.CofdSheet.prototype.addMerits = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.models.proto.cofd.CofdSheet.Merit, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearMeritsList = function() {
return this.setMeritsList([]);
};
/**
* repeated Condition conditions = 21;
* @return {!Array<!proto.models.proto.cofd.CofdSheet.Condition>}
*/
proto.models.proto.cofd.CofdSheet.prototype.getConditionsList = function() {
return /** @type{!Array<!proto.models.proto.cofd.CofdSheet.Condition>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.models.proto.cofd.CofdSheet.Condition, 21));
};
/**
* @param {!Array<!proto.models.proto.cofd.CofdSheet.Condition>} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setConditionsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 21, value);
};
/**
* @param {!proto.models.proto.cofd.CofdSheet.Condition=} opt_value
* @param {number=} opt_index
* @return {!proto.models.proto.cofd.CofdSheet.Condition}
*/
proto.models.proto.cofd.CofdSheet.prototype.addConditions = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 21, opt_value, proto.models.proto.cofd.CofdSheet.Condition, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearConditionsList = function() {
return this.setConditionsList([]);
};
/**
* optional int32 size = 22;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getSize = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setSize = function(value) {
return jspb.Message.setProto3IntField(this, 22, value);
};
/**
* optional int32 health = 23;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getHealth = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setHealth = function(value) {
return jspb.Message.setProto3IntField(this, 23, value);
};
/**
* optional int32 willpower = 24;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getWillpower = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setWillpower = function(value) {
return jspb.Message.setProto3IntField(this, 24, value);
};
/**
* optional int32 experience_points = 25;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getExperiencePoints = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setExperiencePoints = function(value) {
return jspb.Message.setProto3IntField(this, 25, value);
};
/**
* optional int32 beats = 26;
* @return {number}
*/
proto.models.proto.cofd.CofdSheet.prototype.getBeats = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0));
};
/**
* @param {number} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setBeats = function(value) {
return jspb.Message.setProto3IntField(this, 26, value);
};
/**
* repeated Item items = 27;
* @return {!Array<!proto.models.proto.cofd.CofdSheet.Item>}
*/
proto.models.proto.cofd.CofdSheet.prototype.getItemsList = function() {
return /** @type{!Array<!proto.models.proto.cofd.CofdSheet.Item>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.models.proto.cofd.CofdSheet.Item, 27));
};
/**
* @param {!Array<!proto.models.proto.cofd.CofdSheet.Item>} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setItemsList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 27, value);
};
/**
* @param {!proto.models.proto.cofd.CofdSheet.Item=} opt_value
* @param {number=} opt_index
* @return {!proto.models.proto.cofd.CofdSheet.Item}
*/
proto.models.proto.cofd.CofdSheet.prototype.addItems = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 27, opt_value, proto.models.proto.cofd.CofdSheet.Item, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearItemsList = function() {
return this.setItemsList([]);
};
/**
* repeated Attack attacks = 28;
* @return {!Array<!proto.models.proto.cofd.CofdSheet.Attack>}
*/
proto.models.proto.cofd.CofdSheet.prototype.getAttacksList = function() {
return /** @type{!Array<!proto.models.proto.cofd.CofdSheet.Attack>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.models.proto.cofd.CofdSheet.Attack, 28));
};
/**
* @param {!Array<!proto.models.proto.cofd.CofdSheet.Attack>} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setAttacksList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 28, value);
};
/**
* @param {!proto.models.proto.cofd.CofdSheet.Attack=} opt_value
* @param {number=} opt_index
* @return {!proto.models.proto.cofd.CofdSheet.Attack}
*/
proto.models.proto.cofd.CofdSheet.prototype.addAttacks = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 28, opt_value, proto.models.proto.cofd.CofdSheet.Attack, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearAttacksList = function() {
return this.setAttacksList([]);
};
/**
* map<string, string> other_data = 29;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<string,string>}
*/
proto.models.proto.cofd.CofdSheet.prototype.getOtherDataMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<string,string>} */ (
jspb.Message.getMapField(this, 29, opt_noLazyCreate,
null));
};
/**
* Clears values from the map. The map will be non-null.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearOtherDataMap = function() {
this.getOtherDataMap().clear();
return this;};
/**
* optional CoreFields core = 30;
* @return {?proto.models.proto.cofd.CoreFields}
*/
proto.models.proto.cofd.CofdSheet.prototype.getCore = function() {
return /** @type{?proto.models.proto.cofd.CoreFields} */ (
jspb.Message.getWrapperField(this, proto.models.proto.cofd.CoreFields, 30));
};
/**
* @param {?proto.models.proto.cofd.CoreFields|undefined} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setCore = function(value) {
return jspb.Message.setOneofWrapperField(this, 30, proto.models.proto.cofd.CofdSheet.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearCore = function() {
return this.setCore(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.models.proto.cofd.CofdSheet.prototype.hasCore = function() {
return jspb.Message.getField(this, 30) != null;
};
/**
* optional MageFields mage = 31;
* @return {?proto.models.proto.cofd.MageFields}
*/
proto.models.proto.cofd.CofdSheet.prototype.getMage = function() {
return /** @type{?proto.models.proto.cofd.MageFields} */ (
jspb.Message.getWrapperField(this, proto.models.proto.cofd.MageFields, 31));
};
/**
* @param {?proto.models.proto.cofd.MageFields|undefined} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setMage = function(value) {
return jspb.Message.setOneofWrapperField(this, 31, proto.models.proto.cofd.CofdSheet.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearMage = function() {
return this.setMage(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.models.proto.cofd.CofdSheet.prototype.hasMage = function() {
return jspb.Message.getField(this, 31) != null;
};
/**
* optional ChangelingFields changeling = 32;
* @return {?proto.models.proto.cofd.ChangelingFields}
*/
proto.models.proto.cofd.CofdSheet.prototype.getChangeling = function() {
return /** @type{?proto.models.proto.cofd.ChangelingFields} */ (
jspb.Message.getWrapperField(this, proto.models.proto.cofd.ChangelingFields, 32));
};
/**
* @param {?proto.models.proto.cofd.ChangelingFields|undefined} value
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.setChangeling = function(value) {
return jspb.Message.setOneofWrapperField(this, 32, proto.models.proto.cofd.CofdSheet.oneofGroups_[0], value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.models.proto.cofd.CofdSheet} returns this
*/
proto.models.proto.cofd.CofdSheet.prototype.clearChangeling = function() {
return this.setChangeling(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.models.proto.cofd.CofdSheet.prototype.hasChangeling = function() {
return jspb.Message.getField(this, 32) != null;
};
goog.object.extend(exports, proto.models.proto.cofd);