diff --git a/.gitignore b/.gitignore index c80d1cf..abce8b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ .idea .vscode + .exe -.exe~ \ No newline at end of file +.exe~ + +**/.DS_Store \ No newline at end of file diff --git a/bin/protoc-3.19.4-win64/bin/protoc.exe b/bin/protoc-3.19.4-win64/bin/protoc.exe deleted file mode 100644 index c392590..0000000 Binary files a/bin/protoc-3.19.4-win64/bin/protoc.exe and /dev/null differ diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/any.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/any.proto deleted file mode 100644 index 6ed8a23..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/any.proto +++ /dev/null @@ -1,158 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option go_package = "google.golang.org/protobuf/types/known/anypb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "AnyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// `Any` contains an arbitrary serialized protocol buffer message along with a -// URL that describes the type of the serialized message. -// -// Protobuf library provides support to pack/unpack Any values in the form -// of utility functions or additional generated methods of the Any type. -// -// Example 1: Pack and unpack a message in C++. -// -// Foo foo = ...; -// Any any; -// any.PackFrom(foo); -// ... -// if (any.UnpackTo(&foo)) { -// ... -// } -// -// Example 2: Pack and unpack a message in Java. -// -// Foo foo = ...; -// Any any = Any.pack(foo); -// ... -// if (any.is(Foo.class)) { -// foo = any.unpack(Foo.class); -// } -// -// Example 3: Pack and unpack a message in Python. -// -// foo = Foo(...) -// any = Any() -// any.Pack(foo) -// ... -// if any.Is(Foo.DESCRIPTOR): -// any.Unpack(foo) -// ... -// -// Example 4: Pack and unpack a message in Go -// -// foo := &pb.Foo{...} -// any, err := anypb.New(foo) -// if err != nil { -// ... -// } -// ... -// foo := &pb.Foo{} -// if err := any.UnmarshalTo(foo); err != nil { -// ... -// } -// -// The pack methods provided by protobuf library will by default use -// 'type.googleapis.com/full.type.name' as the type URL and the unpack -// methods only use the fully qualified type name after the last '/' -// in the type URL, for example "foo.bar.com/x/y.z" will yield type -// name "y.z". -// -// -// JSON -// ==== -// The JSON representation of an `Any` value uses the regular -// representation of the deserialized, embedded message, with an -// additional field `@type` which contains the type URL. Example: -// -// package google.profile; -// message Person { -// string first_name = 1; -// string last_name = 2; -// } -// -// { -// "@type": "type.googleapis.com/google.profile.Person", -// "firstName": , -// "lastName": -// } -// -// If the embedded message type is well-known and has a custom JSON -// representation, that representation will be embedded adding a field -// `value` which holds the custom JSON in addition to the `@type` -// field. Example (for message [google.protobuf.Duration][]): -// -// { -// "@type": "type.googleapis.com/google.protobuf.Duration", -// "value": "1.212s" -// } -// -message Any { - // A URL/resource name that uniquely identifies the type of the serialized - // protocol buffer message. This string must contain at least - // one "/" character. The last segment of the URL's path must represent - // the fully qualified name of the type (as in - // `path/google.protobuf.Duration`). The name should be in a canonical form - // (e.g., leading "." is not accepted). - // - // In practice, teams usually precompile into the binary all types that they - // expect it to use in the context of Any. However, for URLs which use the - // scheme `http`, `https`, or no scheme, one can optionally set up a type - // server that maps type URLs to message definitions as follows: - // - // * If no scheme is provided, `https` is assumed. - // * An HTTP GET on the URL must yield a [google.protobuf.Type][] - // value in binary format, or produce an error. - // * Applications are allowed to cache lookup results based on the - // URL, or have them precompiled into a binary to avoid any - // lookup. Therefore, binary compatibility needs to be preserved - // on changes to types. (Use versioned type names to manage - // breaking changes.) - // - // Note: this functionality is not currently available in the official - // protobuf release, and it is not used for type URLs beginning with - // type.googleapis.com. - // - // Schemes other than `http`, `https` (or the empty scheme) might be - // used with implementation specific semantics. - // - string type_url = 1; - - // Must be a valid serialized protocol buffer of the above specified type. - bytes value = 2; -} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/api.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/api.proto deleted file mode 100644 index 3d598fc..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/api.proto +++ /dev/null @@ -1,208 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -import "google/protobuf/source_context.proto"; -import "google/protobuf/type.proto"; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "ApiProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option go_package = "google.golang.org/protobuf/types/known/apipb"; - -// Api is a light-weight descriptor for an API Interface. -// -// Interfaces are also described as "protocol buffer services" in some contexts, -// such as by the "service" keyword in a .proto file, but they are different -// from API Services, which represent a concrete implementation of an interface -// as opposed to simply a description of methods and bindings. They are also -// sometimes simply referred to as "APIs" in other contexts, such as the name of -// this message itself. See https://cloud.google.com/apis/design/glossary for -// detailed terminology. -message Api { - // The fully qualified name of this interface, including package name - // followed by the interface's simple name. - string name = 1; - - // The methods of this interface, in unspecified order. - repeated Method methods = 2; - - // Any metadata attached to the interface. - repeated Option options = 3; - - // A version string for this interface. If specified, must have the form - // `major-version.minor-version`, as in `1.10`. If the minor version is - // omitted, it defaults to zero. If the entire version field is empty, the - // major version is derived from the package name, as outlined below. If the - // field is not empty, the version in the package name will be verified to be - // consistent with what is provided here. - // - // The versioning schema uses [semantic - // versioning](http://semver.org) where the major version number - // indicates a breaking change and the minor version an additive, - // non-breaking change. Both version numbers are signals to users - // what to expect from different versions, and should be carefully - // chosen based on the product plan. - // - // The major version is also reflected in the package name of the - // interface, which must end in `v`, as in - // `google.feature.v1`. For major versions 0 and 1, the suffix can - // be omitted. Zero major versions must only be used for - // experimental, non-GA interfaces. - // - // - string version = 4; - - // Source context for the protocol buffer service represented by this - // message. - SourceContext source_context = 5; - - // Included interfaces. See [Mixin][]. - repeated Mixin mixins = 6; - - // The source syntax of the service. - Syntax syntax = 7; -} - -// Method represents a method of an API interface. -message Method { - // The simple name of this method. - string name = 1; - - // A URL of the input message type. - string request_type_url = 2; - - // If true, the request is streamed. - bool request_streaming = 3; - - // The URL of the output message type. - string response_type_url = 4; - - // If true, the response is streamed. - bool response_streaming = 5; - - // Any metadata attached to the method. - repeated Option options = 6; - - // The source syntax of this method. - Syntax syntax = 7; -} - -// Declares an API Interface to be included in this interface. The including -// interface must redeclare all the methods from the included interface, but -// documentation and options are inherited as follows: -// -// - If after comment and whitespace stripping, the documentation -// string of the redeclared method is empty, it will be inherited -// from the original method. -// -// - Each annotation belonging to the service config (http, -// visibility) which is not set in the redeclared method will be -// inherited. -// -// - If an http annotation is inherited, the path pattern will be -// modified as follows. Any version prefix will be replaced by the -// version of the including interface plus the [root][] path if -// specified. -// -// Example of a simple mixin: -// -// package google.acl.v1; -// service AccessControl { -// // Get the underlying ACL object. -// rpc GetAcl(GetAclRequest) returns (Acl) { -// option (google.api.http).get = "/v1/{resource=**}:getAcl"; -// } -// } -// -// package google.storage.v2; -// service Storage { -// rpc GetAcl(GetAclRequest) returns (Acl); -// -// // Get a data record. -// rpc GetData(GetDataRequest) returns (Data) { -// option (google.api.http).get = "/v2/{resource=**}"; -// } -// } -// -// Example of a mixin configuration: -// -// apis: -// - name: google.storage.v2.Storage -// mixins: -// - name: google.acl.v1.AccessControl -// -// The mixin construct implies that all methods in `AccessControl` are -// also declared with same name and request/response types in -// `Storage`. A documentation generator or annotation processor will -// see the effective `Storage.GetAcl` method after inheriting -// documentation and annotations as follows: -// -// service Storage { -// // Get the underlying ACL object. -// rpc GetAcl(GetAclRequest) returns (Acl) { -// option (google.api.http).get = "/v2/{resource=**}:getAcl"; -// } -// ... -// } -// -// Note how the version in the path pattern changed from `v1` to `v2`. -// -// If the `root` field in the mixin is specified, it should be a -// relative path under which inherited HTTP paths are placed. Example: -// -// apis: -// - name: google.storage.v2.Storage -// mixins: -// - name: google.acl.v1.AccessControl -// root: acls -// -// This implies the following inherited HTTP annotation: -// -// service Storage { -// // Get the underlying ACL object. -// rpc GetAcl(GetAclRequest) returns (Acl) { -// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; -// } -// ... -// } -message Mixin { - // The fully qualified name of the interface which is included. - string name = 1; - - // If non-empty specifies a path under which inherited HTTP paths - // are rooted. - string root = 2; -} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/compiler/plugin.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/compiler/plugin.proto deleted file mode 100644 index 9242aac..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/compiler/plugin.proto +++ /dev/null @@ -1,183 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Author: kenton@google.com (Kenton Varda) -// -// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to -// change. -// -// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is -// just a program that reads a CodeGeneratorRequest from stdin and writes a -// CodeGeneratorResponse to stdout. -// -// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead -// of dealing with the raw protocol defined here. -// -// A plugin executable needs only to be placed somewhere in the path. The -// plugin should be named "protoc-gen-$NAME", and will then be used when the -// flag "--${NAME}_out" is passed to protoc. - -syntax = "proto2"; - -package google.protobuf.compiler; -option java_package = "com.google.protobuf.compiler"; -option java_outer_classname = "PluginProtos"; - -option go_package = "google.golang.org/protobuf/types/pluginpb"; - -import "google/protobuf/descriptor.proto"; - -// The version number of protocol compiler. -message Version { - optional int32 major = 1; - optional int32 minor = 2; - optional int32 patch = 3; - // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - // be empty for mainline stable releases. - optional string suffix = 4; -} - -// An encoded CodeGeneratorRequest is written to the plugin's stdin. -message CodeGeneratorRequest { - // The .proto files that were explicitly listed on the command-line. The - // code generator should generate code only for these files. Each file's - // descriptor will be included in proto_file, below. - repeated string file_to_generate = 1; - - // The generator parameter passed on the command-line. - optional string parameter = 2; - - // FileDescriptorProtos for all files in files_to_generate and everything - // they import. The files will appear in topological order, so each file - // appears before any file that imports it. - // - // protoc guarantees that all proto_files will be written after - // the fields above, even though this is not technically guaranteed by the - // protobuf wire format. This theoretically could allow a plugin to stream - // in the FileDescriptorProtos and handle them one by one rather than read - // the entire set into memory at once. However, as of this writing, this - // is not similarly optimized on protoc's end -- it will store all fields in - // memory at once before sending them to the plugin. - // - // Type names of fields and extensions in the FileDescriptorProto are always - // fully qualified. - repeated FileDescriptorProto proto_file = 15; - - // The version number of protocol compiler. - optional Version compiler_version = 3; - -} - -// The plugin writes an encoded CodeGeneratorResponse to stdout. -message CodeGeneratorResponse { - // Error message. If non-empty, code generation failed. The plugin process - // should exit with status code zero even if it reports an error in this way. - // - // This should be used to indicate errors in .proto files which prevent the - // code generator from generating correct code. Errors which indicate a - // problem in protoc itself -- such as the input CodeGeneratorRequest being - // unparseable -- should be reported by writing a message to stderr and - // exiting with a non-zero status code. - optional string error = 1; - - // A bitmask of supported features that the code generator supports. - // This is a bitwise "or" of values from the Feature enum. - optional uint64 supported_features = 2; - - // Sync with code_generator.h. - enum Feature { - FEATURE_NONE = 0; - FEATURE_PROTO3_OPTIONAL = 1; - } - - // Represents a single generated file. - message File { - // The file name, relative to the output directory. The name must not - // contain "." or ".." components and must be relative, not be absolute (so, - // the file cannot lie outside the output directory). "/" must be used as - // the path separator, not "\". - // - // If the name is omitted, the content will be appended to the previous - // file. This allows the generator to break large files into small chunks, - // and allows the generated text to be streamed back to protoc so that large - // files need not reside completely in memory at one time. Note that as of - // this writing protoc does not optimize for this -- it will read the entire - // CodeGeneratorResponse before writing files to disk. - optional string name = 1; - - // If non-empty, indicates that the named file should already exist, and the - // content here is to be inserted into that file at a defined insertion - // point. This feature allows a code generator to extend the output - // produced by another code generator. The original generator may provide - // insertion points by placing special annotations in the file that look - // like: - // @@protoc_insertion_point(NAME) - // The annotation can have arbitrary text before and after it on the line, - // which allows it to be placed in a comment. NAME should be replaced with - // an identifier naming the point -- this is what other generators will use - // as the insertion_point. Code inserted at this point will be placed - // immediately above the line containing the insertion point (thus multiple - // insertions to the same point will come out in the order they were added). - // The double-@ is intended to make it unlikely that the generated code - // could contain things that look like insertion points by accident. - // - // For example, the C++ code generator places the following line in the - // .pb.h files that it generates: - // // @@protoc_insertion_point(namespace_scope) - // This line appears within the scope of the file's package namespace, but - // outside of any particular class. Another plugin can then specify the - // insertion_point "namespace_scope" to generate additional classes or - // other declarations that should be placed in this scope. - // - // Note that if the line containing the insertion point begins with - // whitespace, the same whitespace will be added to every line of the - // inserted text. This is useful for languages like Python, where - // indentation matters. In these languages, the insertion point comment - // should be indented the same amount as any inserted code will need to be - // in order to work correctly in that context. - // - // The code generator that generates the initial file and the one which - // inserts into it must both run as part of a single invocation of protoc. - // Code generators are executed in the order in which they appear on the - // command line. - // - // If |insertion_point| is present, |name| must also be present. - optional string insertion_point = 2; - - // The file contents. - optional string content = 15; - - // Information describing the file content being inserted. If an insertion - // point is used, this information will be appropriately offset and inserted - // into the code generation metadata for the generated files. - optional GeneratedCodeInfo generated_code_info = 16; - } - repeated File file = 15; -} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/descriptor.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/descriptor.proto deleted file mode 100644 index 156e410..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/descriptor.proto +++ /dev/null @@ -1,911 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Author: kenton@google.com (Kenton Varda) -// Based on original Protocol Buffers design by -// Sanjay Ghemawat, Jeff Dean, and others. -// -// The messages in this file describe the definitions found in .proto files. -// A valid .proto file can be translated directly to a FileDescriptorProto -// without any other information (e.g. without reading its imports). - - -syntax = "proto2"; - -package google.protobuf; - -option go_package = "google.golang.org/protobuf/types/descriptorpb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "DescriptorProtos"; -option csharp_namespace = "Google.Protobuf.Reflection"; -option objc_class_prefix = "GPB"; -option cc_enable_arenas = true; - -// descriptor.proto must be optimized for speed because reflection-based -// algorithms don't work during bootstrapping. -option optimize_for = SPEED; - -// The protocol compiler can output a FileDescriptorSet containing the .proto -// files it parses. -message FileDescriptorSet { - repeated FileDescriptorProto file = 1; -} - -// Describes a complete .proto file. -message FileDescriptorProto { - optional string name = 1; // file name, relative to root of source tree - optional string package = 2; // e.g. "foo", "foo.bar", etc. - - // Names of files imported by this file. - repeated string dependency = 3; - // Indexes of the public imported files in the dependency list above. - repeated int32 public_dependency = 10; - // Indexes of the weak imported files in the dependency list. - // For Google-internal migration only. Do not use. - repeated int32 weak_dependency = 11; - - // All top-level definitions in this file. - repeated DescriptorProto message_type = 4; - repeated EnumDescriptorProto enum_type = 5; - repeated ServiceDescriptorProto service = 6; - repeated FieldDescriptorProto extension = 7; - - optional FileOptions options = 8; - - // This field contains optional information about the original source code. - // You may safely remove this entire field without harming runtime - // functionality of the descriptors -- the information is needed only by - // development tools. - optional SourceCodeInfo source_code_info = 9; - - // The syntax of the proto file. - // The supported values are "proto2" and "proto3". - optional string syntax = 12; -} - -// Describes a message type. -message DescriptorProto { - optional string name = 1; - - repeated FieldDescriptorProto field = 2; - repeated FieldDescriptorProto extension = 6; - - repeated DescriptorProto nested_type = 3; - repeated EnumDescriptorProto enum_type = 4; - - message ExtensionRange { - optional int32 start = 1; // Inclusive. - optional int32 end = 2; // Exclusive. - - optional ExtensionRangeOptions options = 3; - } - repeated ExtensionRange extension_range = 5; - - repeated OneofDescriptorProto oneof_decl = 8; - - optional MessageOptions options = 7; - - // Range of reserved tag numbers. Reserved tag numbers may not be used by - // fields or extension ranges in the same message. Reserved ranges may - // not overlap. - message ReservedRange { - optional int32 start = 1; // Inclusive. - optional int32 end = 2; // Exclusive. - } - repeated ReservedRange reserved_range = 9; - // Reserved field names, which may not be used by fields in the same message. - // A given name may only be reserved once. - repeated string reserved_name = 10; -} - -message ExtensionRangeOptions { - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -// Describes a field within a message. -message FieldDescriptorProto { - enum Type { - // 0 is reserved for errors. - // Order is weird for historical reasons. - TYPE_DOUBLE = 1; - TYPE_FLOAT = 2; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - // negative values are likely. - TYPE_INT64 = 3; - TYPE_UINT64 = 4; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - // negative values are likely. - TYPE_INT32 = 5; - TYPE_FIXED64 = 6; - TYPE_FIXED32 = 7; - TYPE_BOOL = 8; - TYPE_STRING = 9; - // Tag-delimited aggregate. - // Group type is deprecated and not supported in proto3. However, Proto3 - // implementations should still be able to parse the group wire format and - // treat group fields as unknown fields. - TYPE_GROUP = 10; - TYPE_MESSAGE = 11; // Length-delimited aggregate. - - // New in version 2. - TYPE_BYTES = 12; - TYPE_UINT32 = 13; - TYPE_ENUM = 14; - TYPE_SFIXED32 = 15; - TYPE_SFIXED64 = 16; - TYPE_SINT32 = 17; // Uses ZigZag encoding. - TYPE_SINT64 = 18; // Uses ZigZag encoding. - } - - enum Label { - // 0 is reserved for errors - LABEL_OPTIONAL = 1; - LABEL_REQUIRED = 2; - LABEL_REPEATED = 3; - } - - optional string name = 1; - optional int32 number = 3; - optional Label label = 4; - - // If type_name is set, this need not be set. If both this and type_name - // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - optional Type type = 5; - - // For message and enum types, this is the name of the type. If the name - // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - // rules are used to find the type (i.e. first the nested types within this - // message are searched, then within the parent, on up to the root - // namespace). - optional string type_name = 6; - - // For extensions, this is the name of the type being extended. It is - // resolved in the same manner as type_name. - optional string extendee = 2; - - // For numeric types, contains the original text representation of the value. - // For booleans, "true" or "false". - // For strings, contains the default text contents (not escaped in any way). - // For bytes, contains the C escaped value. All bytes >= 128 are escaped. - // TODO(kenton): Base-64 encode? - optional string default_value = 7; - - // If set, gives the index of a oneof in the containing type's oneof_decl - // list. This field is a member of that oneof. - optional int32 oneof_index = 9; - - // JSON name of this field. The value is set by protocol compiler. If the - // user has set a "json_name" option on this field, that option's value - // will be used. Otherwise, it's deduced from the field's name by converting - // it to camelCase. - optional string json_name = 10; - - optional FieldOptions options = 8; - - // If true, this is a proto3 "optional". When a proto3 field is optional, it - // tracks presence regardless of field type. - // - // When proto3_optional is true, this field must be belong to a oneof to - // signal to old proto3 clients that presence is tracked for this field. This - // oneof is known as a "synthetic" oneof, and this field must be its sole - // member (each proto3 optional field gets its own synthetic oneof). Synthetic - // oneofs exist in the descriptor only, and do not generate any API. Synthetic - // oneofs must be ordered after all "real" oneofs. - // - // For message fields, proto3_optional doesn't create any semantic change, - // since non-repeated message fields always track presence. However it still - // indicates the semantic detail of whether the user wrote "optional" or not. - // This can be useful for round-tripping the .proto file. For consistency we - // give message fields a synthetic oneof also, even though it is not required - // to track presence. This is especially important because the parser can't - // tell if a field is a message or an enum, so it must always create a - // synthetic oneof. - // - // Proto2 optional fields do not set this flag, because they already indicate - // optional with `LABEL_OPTIONAL`. - optional bool proto3_optional = 17; -} - -// Describes a oneof. -message OneofDescriptorProto { - optional string name = 1; - optional OneofOptions options = 2; -} - -// Describes an enum type. -message EnumDescriptorProto { - optional string name = 1; - - repeated EnumValueDescriptorProto value = 2; - - optional EnumOptions options = 3; - - // Range of reserved numeric values. Reserved values may not be used by - // entries in the same enum. Reserved ranges may not overlap. - // - // Note that this is distinct from DescriptorProto.ReservedRange in that it - // is inclusive such that it can appropriately represent the entire int32 - // domain. - message EnumReservedRange { - optional int32 start = 1; // Inclusive. - optional int32 end = 2; // Inclusive. - } - - // Range of reserved numeric values. Reserved numeric values may not be used - // by enum values in the same enum declaration. Reserved ranges may not - // overlap. - repeated EnumReservedRange reserved_range = 4; - - // Reserved enum value names, which may not be reused. A given name may only - // be reserved once. - repeated string reserved_name = 5; -} - -// Describes a value within an enum. -message EnumValueDescriptorProto { - optional string name = 1; - optional int32 number = 2; - - optional EnumValueOptions options = 3; -} - -// Describes a service. -message ServiceDescriptorProto { - optional string name = 1; - repeated MethodDescriptorProto method = 2; - - optional ServiceOptions options = 3; -} - -// Describes a method of a service. -message MethodDescriptorProto { - optional string name = 1; - - // Input and output type names. These are resolved in the same way as - // FieldDescriptorProto.type_name, but must refer to a message type. - optional string input_type = 2; - optional string output_type = 3; - - optional MethodOptions options = 4; - - // Identifies if client streams multiple client messages - optional bool client_streaming = 5 [default = false]; - // Identifies if server streams multiple server messages - optional bool server_streaming = 6 [default = false]; -} - - -// =================================================================== -// Options - -// Each of the definitions above may have "options" attached. These are -// just annotations which may cause code to be generated slightly differently -// or may contain hints for code that manipulates protocol messages. -// -// Clients may define custom options as extensions of the *Options messages. -// These extensions may not yet be known at parsing time, so the parser cannot -// store the values in them. Instead it stores them in a field in the *Options -// message called uninterpreted_option. This field must have the same name -// across all *Options messages. We then use this field to populate the -// extensions when we build a descriptor, at which point all protos have been -// parsed and so all extensions are known. -// -// Extension numbers for custom options may be chosen as follows: -// * For options which will only be used within a single application or -// organization, or for experimental options, use field numbers 50000 -// through 99999. It is up to you to ensure that you do not use the -// same number for multiple options. -// * For options which will be published and used publicly by multiple -// independent entities, e-mail protobuf-global-extension-registry@google.com -// to reserve extension numbers. Simply provide your project name (e.g. -// Objective-C plugin) and your project website (if available) -- there's no -// need to explain how you intend to use them. Usually you only need one -// extension number. You can declare multiple options with only one extension -// number by putting them in a sub-message. See the Custom Options section of -// the docs for examples: -// https://developers.google.com/protocol-buffers/docs/proto#options -// If this turns out to be popular, a web service will be set up -// to automatically assign option numbers. - -message FileOptions { - - // Sets the Java package where classes generated from this .proto will be - // placed. By default, the proto package is used, but this is often - // inappropriate because proto packages do not normally start with backwards - // domain names. - optional string java_package = 1; - - - // Controls the name of the wrapper Java class generated for the .proto file. - // That class will always contain the .proto file's getDescriptor() method as - // well as any top-level extensions defined in the .proto file. - // If java_multiple_files is disabled, then all the other classes from the - // .proto file will be nested inside the single wrapper outer class. - optional string java_outer_classname = 8; - - // If enabled, then the Java code generator will generate a separate .java - // file for each top-level message, enum, and service defined in the .proto - // file. Thus, these types will *not* be nested inside the wrapper class - // named by java_outer_classname. However, the wrapper class will still be - // generated to contain the file's getDescriptor() method as well as any - // top-level extensions defined in the file. - optional bool java_multiple_files = 10 [default = false]; - - // This option does nothing. - optional bool java_generate_equals_and_hash = 20 [deprecated=true]; - - // If set true, then the Java2 code generator will generate code that - // throws an exception whenever an attempt is made to assign a non-UTF-8 - // byte sequence to a string field. - // Message reflection will do the same. - // However, an extension field still accepts non-UTF-8 byte sequences. - // This option has no effect on when used with the lite runtime. - optional bool java_string_check_utf8 = 27 [default = false]; - - - // Generated classes can be optimized for speed or code size. - enum OptimizeMode { - SPEED = 1; // Generate complete code for parsing, serialization, - // etc. - CODE_SIZE = 2; // Use ReflectionOps to implement these methods. - LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime. - } - optional OptimizeMode optimize_for = 9 [default = SPEED]; - - // Sets the Go package where structs generated from this .proto will be - // placed. If omitted, the Go package will be derived from the following: - // - The basename of the package import path, if provided. - // - Otherwise, the package statement in the .proto file, if present. - // - Otherwise, the basename of the .proto file, without extension. - optional string go_package = 11; - - - - - // Should generic services be generated in each language? "Generic" services - // are not specific to any particular RPC system. They are generated by the - // main code generators in each language (without additional plugins). - // Generic services were the only kind of service generation supported by - // early versions of google.protobuf. - // - // Generic services are now considered deprecated in favor of using plugins - // that generate code specific to your particular RPC system. Therefore, - // these default to false. Old code which depends on generic services should - // explicitly set them to true. - optional bool cc_generic_services = 16 [default = false]; - optional bool java_generic_services = 17 [default = false]; - optional bool py_generic_services = 18 [default = false]; - optional bool php_generic_services = 42 [default = false]; - - // Is this file deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for everything in the file, or it will be completely ignored; in the very - // least, this is a formalization for deprecating files. - optional bool deprecated = 23 [default = false]; - - // Enables the use of arenas for the proto messages in this file. This applies - // only to generated classes for C++. - optional bool cc_enable_arenas = 31 [default = true]; - - - // Sets the objective c class prefix which is prepended to all objective c - // generated classes from this .proto. There is no default. - optional string objc_class_prefix = 36; - - // Namespace for generated classes; defaults to the package. - optional string csharp_namespace = 37; - - // By default Swift generators will take the proto package and CamelCase it - // replacing '.' with underscore and use that to prefix the types/symbols - // defined. When this options is provided, they will use this value instead - // to prefix the types/symbols defined. - optional string swift_prefix = 39; - - // Sets the php class prefix which is prepended to all php generated classes - // from this .proto. Default is empty. - optional string php_class_prefix = 40; - - // Use this option to change the namespace of php generated classes. Default - // is empty. When this option is empty, the package name will be used for - // determining the namespace. - optional string php_namespace = 41; - - // Use this option to change the namespace of php generated metadata classes. - // Default is empty. When this option is empty, the proto file name will be - // used for determining the namespace. - optional string php_metadata_namespace = 44; - - // Use this option to change the package of ruby generated classes. Default - // is empty. When this option is not set, the package name will be used for - // determining the ruby package. - optional string ruby_package = 45; - - - // The parser stores options it doesn't recognize here. - // See the documentation for the "Options" section above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. - // See the documentation for the "Options" section above. - extensions 1000 to max; - - reserved 38; -} - -message MessageOptions { - // Set true to use the old proto1 MessageSet wire format for extensions. - // This is provided for backwards-compatibility with the MessageSet wire - // format. You should not use this for any other reason: It's less - // efficient, has fewer features, and is more complicated. - // - // The message must be defined exactly as follows: - // message Foo { - // option message_set_wire_format = true; - // extensions 4 to max; - // } - // Note that the message cannot have any defined fields; MessageSets only - // have extensions. - // - // All extensions of your type must be singular messages; e.g. they cannot - // be int32s, enums, or repeated messages. - // - // Because this is an option, the above two restrictions are not enforced by - // the protocol compiler. - optional bool message_set_wire_format = 1 [default = false]; - - // Disables the generation of the standard "descriptor()" accessor, which can - // conflict with a field of the same name. This is meant to make migration - // from proto1 easier; new code should avoid fields named "descriptor". - optional bool no_standard_descriptor_accessor = 2 [default = false]; - - // Is this message deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the message, or it will be completely ignored; in the very least, - // this is a formalization for deprecating messages. - optional bool deprecated = 3 [default = false]; - - reserved 4, 5, 6; - - // Whether the message is an automatically generated map entry type for the - // maps field. - // - // For maps fields: - // map map_field = 1; - // The parsed descriptor looks like: - // message MapFieldEntry { - // option map_entry = true; - // optional KeyType key = 1; - // optional ValueType value = 2; - // } - // repeated MapFieldEntry map_field = 1; - // - // Implementations may choose not to generate the map_entry=true message, but - // use a native map in the target language to hold the keys and values. - // The reflection APIs in such implementations still need to work as - // if the field is a repeated message field. - // - // NOTE: Do not set the option in .proto files. Always use the maps syntax - // instead. The option should only be implicitly set by the proto compiler - // parser. - optional bool map_entry = 7; - - reserved 8; // javalite_serializable - reserved 9; // javanano_as_lite - - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message FieldOptions { - // The ctype option instructs the C++ code generator to use a different - // representation of the field than it normally would. See the specific - // options below. This option is not yet implemented in the open source - // release -- sorry, we'll try to include it in a future version! - optional CType ctype = 1 [default = STRING]; - enum CType { - // Default mode. - STRING = 0; - - CORD = 1; - - STRING_PIECE = 2; - } - // The packed option can be enabled for repeated primitive fields to enable - // a more efficient representation on the wire. Rather than repeatedly - // writing the tag and type for each element, the entire array is encoded as - // a single length-delimited blob. In proto3, only explicit setting it to - // false will avoid using packed encoding. - optional bool packed = 2; - - // The jstype option determines the JavaScript type used for values of the - // field. The option is permitted only for 64 bit integral and fixed types - // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - // is represented as JavaScript string, which avoids loss of precision that - // can happen when a large value is converted to a floating point JavaScript. - // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - // use the JavaScript "number" type. The behavior of the default option - // JS_NORMAL is implementation dependent. - // - // This option is an enum to permit additional types to be added, e.g. - // goog.math.Integer. - optional JSType jstype = 6 [default = JS_NORMAL]; - enum JSType { - // Use the default type. - JS_NORMAL = 0; - - // Use JavaScript strings. - JS_STRING = 1; - - // Use JavaScript numbers. - JS_NUMBER = 2; - } - - // Should this field be parsed lazily? Lazy applies only to message-type - // fields. It means that when the outer message is initially parsed, the - // inner message's contents will not be parsed but instead stored in encoded - // form. The inner message will actually be parsed when it is first accessed. - // - // This is only a hint. Implementations are free to choose whether to use - // eager or lazy parsing regardless of the value of this option. However, - // setting this option true suggests that the protocol author believes that - // using lazy parsing on this field is worth the additional bookkeeping - // overhead typically needed to implement it. - // - // This option does not affect the public interface of any generated code; - // all method signatures remain the same. Furthermore, thread-safety of the - // interface is not affected by this option; const methods remain safe to - // call from multiple threads concurrently, while non-const methods continue - // to require exclusive access. - // - // - // Note that implementations may choose not to check required fields within - // a lazy sub-message. That is, calling IsInitialized() on the outer message - // may return true even if the inner message has missing required fields. - // This is necessary because otherwise the inner message would have to be - // parsed in order to perform the check, defeating the purpose of lazy - // parsing. An implementation which chooses not to check required fields - // must be consistent about it. That is, for any particular sub-message, the - // implementation must either *always* check its required fields, or *never* - // check its required fields, regardless of whether or not the message has - // been parsed. - optional bool lazy = 5 [default = false]; - - // Is this field deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for accessors, or it will be completely ignored; in the very least, this - // is a formalization for deprecating fields. - optional bool deprecated = 3 [default = false]; - - // For Google-internal migration only. Do not use. - optional bool weak = 10 [default = false]; - - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; - - reserved 4; // removed jtype -} - -message OneofOptions { - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message EnumOptions { - - // Set this option to true to allow mapping different tag names to the same - // value. - optional bool allow_alias = 2; - - // Is this enum deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum, or it will be completely ignored; in the very least, this - // is a formalization for deprecating enums. - optional bool deprecated = 3 [default = false]; - - reserved 5; // javanano_as_lite - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message EnumValueOptions { - // Is this enum value deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum value, or it will be completely ignored; in the very least, - // this is a formalization for deprecating enum values. - optional bool deprecated = 1 [default = false]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message ServiceOptions { - - // Note: Field numbers 1 through 32 are reserved for Google's internal RPC - // framework. We apologize for hoarding these numbers to ourselves, but - // we were already using them long before we decided to release Protocol - // Buffers. - - // Is this service deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the service, or it will be completely ignored; in the very least, - // this is a formalization for deprecating services. - optional bool deprecated = 33 [default = false]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message MethodOptions { - - // Note: Field numbers 1 through 32 are reserved for Google's internal RPC - // framework. We apologize for hoarding these numbers to ourselves, but - // we were already using them long before we decided to release Protocol - // Buffers. - - // Is this method deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the method, or it will be completely ignored; in the very least, - // this is a formalization for deprecating methods. - optional bool deprecated = 33 [default = false]; - - // Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - // or neither? HTTP based RPC implementation may choose GET verb for safe - // methods, and PUT verb for idempotent methods instead of the default POST. - enum IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0; - NO_SIDE_EFFECTS = 1; // implies idempotent - IDEMPOTENT = 2; // idempotent, but may have side effects - } - optional IdempotencyLevel idempotency_level = 34 - [default = IDEMPOTENCY_UNKNOWN]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - - -// A message representing a option the parser does not recognize. This only -// appears in options protos created by the compiler::Parser class. -// DescriptorPool resolves these when building Descriptor objects. Therefore, -// options protos in descriptor objects (e.g. returned by Descriptor::options(), -// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions -// in them. -message UninterpretedOption { - // The name of the uninterpreted option. Each string represents a segment in - // a dot-separated name. is_extension is true iff a segment represents an - // extension (denoted with parentheses in options specs in .proto files). - // E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - // "foo.(bar.baz).qux". - message NamePart { - required string name_part = 1; - required bool is_extension = 2; - } - repeated NamePart name = 2; - - // The value of the uninterpreted option, in whatever type the tokenizer - // identified it as during parsing. Exactly one of these should be set. - optional string identifier_value = 3; - optional uint64 positive_int_value = 4; - optional int64 negative_int_value = 5; - optional double double_value = 6; - optional bytes string_value = 7; - optional string aggregate_value = 8; -} - -// =================================================================== -// Optional source code info - -// Encapsulates information about the original source file from which a -// FileDescriptorProto was generated. -message SourceCodeInfo { - // A Location identifies a piece of source code in a .proto file which - // corresponds to a particular definition. This information is intended - // to be useful to IDEs, code indexers, documentation generators, and similar - // tools. - // - // For example, say we have a file like: - // message Foo { - // optional string foo = 1; - // } - // Let's look at just the field definition: - // optional string foo = 1; - // ^ ^^ ^^ ^ ^^^ - // a bc de f ghi - // We have the following locations: - // span path represents - // [a,i) [ 4, 0, 2, 0 ] The whole field definition. - // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - // - // Notes: - // - A location may refer to a repeated field itself (i.e. not to any - // particular index within it). This is used whenever a set of elements are - // logically enclosed in a single code segment. For example, an entire - // extend block (possibly containing multiple extension definitions) will - // have an outer location whose path refers to the "extensions" repeated - // field without an index. - // - Multiple locations may have the same path. This happens when a single - // logical declaration is spread out across multiple places. The most - // obvious example is the "extend" block again -- there may be multiple - // extend blocks in the same scope, each of which will have the same path. - // - A location's span is not always a subset of its parent's span. For - // example, the "extendee" of an extension declaration appears at the - // beginning of the "extend" block and is shared by all extensions within - // the block. - // - Just because a location's span is a subset of some other location's span - // does not mean that it is a descendant. For example, a "group" defines - // both a type and a field in a single declaration. Thus, the locations - // corresponding to the type and field and their components will overlap. - // - Code which tries to interpret locations should probably be designed to - // ignore those that it doesn't understand, as more types of locations could - // be recorded in the future. - repeated Location location = 1; - message Location { - // Identifies which part of the FileDescriptorProto was defined at this - // location. - // - // Each element is a field number or an index. They form a path from - // the root FileDescriptorProto to the place where the definition. For - // example, this path: - // [ 4, 3, 2, 7, 1 ] - // refers to: - // file.message_type(3) // 4, 3 - // .field(7) // 2, 7 - // .name() // 1 - // This is because FileDescriptorProto.message_type has field number 4: - // repeated DescriptorProto message_type = 4; - // and DescriptorProto.field has field number 2: - // repeated FieldDescriptorProto field = 2; - // and FieldDescriptorProto.name has field number 1: - // optional string name = 1; - // - // Thus, the above path gives the location of a field name. If we removed - // the last element: - // [ 4, 3, 2, 7 ] - // this path refers to the whole field declaration (from the beginning - // of the label to the terminating semicolon). - repeated int32 path = 1 [packed = true]; - - // Always has exactly three or four elements: start line, start column, - // end line (optional, otherwise assumed same as start line), end column. - // These are packed into a single field for efficiency. Note that line - // and column numbers are zero-based -- typically you will want to add - // 1 to each before displaying to a user. - repeated int32 span = 2 [packed = true]; - - // If this SourceCodeInfo represents a complete declaration, these are any - // comments appearing before and after the declaration which appear to be - // attached to the declaration. - // - // A series of line comments appearing on consecutive lines, with no other - // tokens appearing on those lines, will be treated as a single comment. - // - // leading_detached_comments will keep paragraphs of comments that appear - // before (but not connected to) the current element. Each paragraph, - // separated by empty lines, will be one comment element in the repeated - // field. - // - // Only the comment content is provided; comment markers (e.g. //) are - // stripped out. For block comments, leading whitespace and an asterisk - // will be stripped from the beginning of each line other than the first. - // Newlines are included in the output. - // - // Examples: - // - // optional int32 foo = 1; // Comment attached to foo. - // // Comment attached to bar. - // optional int32 bar = 2; - // - // optional string baz = 3; - // // Comment attached to baz. - // // Another line attached to baz. - // - // // Comment attached to qux. - // // - // // Another line attached to qux. - // optional double qux = 4; - // - // // Detached comment for corge. This is not leading or trailing comments - // // to qux or corge because there are blank lines separating it from - // // both. - // - // // Detached comment for corge paragraph 2. - // - // optional string corge = 5; - // /* Block comment attached - // * to corge. Leading asterisks - // * will be removed. */ - // /* Block comment attached to - // * grault. */ - // optional int32 grault = 6; - // - // // ignored detached comments. - optional string leading_comments = 3; - optional string trailing_comments = 4; - repeated string leading_detached_comments = 6; - } -} - -// Describes the relationship between generated code and its original source -// file. A GeneratedCodeInfo message is associated with only one generated -// source file, but may contain references to different source .proto files. -message GeneratedCodeInfo { - // An Annotation connects some span of text in generated code to an element - // of its generating .proto file. - repeated Annotation annotation = 1; - message Annotation { - // Identifies the element in the original source .proto file. This field - // is formatted the same as SourceCodeInfo.Location.path. - repeated int32 path = 1 [packed = true]; - - // Identifies the filesystem path to the original source .proto. - optional string source_file = 2; - - // Identifies the starting offset in bytes in the generated code - // that relates to the identified object. - optional int32 begin = 3; - - // Identifies the ending offset in bytes in the generated code that - // relates to the identified offset. The end offset should be one past - // the last relevant byte (so the length of the text = end - begin). - optional int32 end = 4; - } -} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/duration.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/duration.proto deleted file mode 100644 index 81c3e36..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/duration.proto +++ /dev/null @@ -1,116 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "google.golang.org/protobuf/types/known/durationpb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "DurationProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// A Duration represents a signed, fixed-length span of time represented -// as a count of seconds and fractions of seconds at nanosecond -// resolution. It is independent of any calendar and concepts like "day" -// or "month". It is related to Timestamp in that the difference between -// two Timestamp values is a Duration and it can be added or subtracted -// from a Timestamp. Range is approximately +-10,000 years. -// -// # Examples -// -// Example 1: Compute Duration from two Timestamps in pseudo code. -// -// Timestamp start = ...; -// Timestamp end = ...; -// Duration duration = ...; -// -// duration.seconds = end.seconds - start.seconds; -// duration.nanos = end.nanos - start.nanos; -// -// if (duration.seconds < 0 && duration.nanos > 0) { -// duration.seconds += 1; -// duration.nanos -= 1000000000; -// } else if (duration.seconds > 0 && duration.nanos < 0) { -// duration.seconds -= 1; -// duration.nanos += 1000000000; -// } -// -// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. -// -// Timestamp start = ...; -// Duration duration = ...; -// Timestamp end = ...; -// -// end.seconds = start.seconds + duration.seconds; -// end.nanos = start.nanos + duration.nanos; -// -// if (end.nanos < 0) { -// end.seconds -= 1; -// end.nanos += 1000000000; -// } else if (end.nanos >= 1000000000) { -// end.seconds += 1; -// end.nanos -= 1000000000; -// } -// -// Example 3: Compute Duration from datetime.timedelta in Python. -// -// td = datetime.timedelta(days=3, minutes=10) -// duration = Duration() -// duration.FromTimedelta(td) -// -// # JSON Mapping -// -// In JSON format, the Duration type is encoded as a string rather than an -// object, where the string ends in the suffix "s" (indicating seconds) and -// is preceded by the number of seconds, with nanoseconds expressed as -// fractional seconds. For example, 3 seconds with 0 nanoseconds should be -// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should -// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 -// microsecond should be expressed in JSON format as "3.000001s". -// -// -message Duration { - // Signed seconds of the span of time. Must be from -315,576,000,000 - // to +315,576,000,000 inclusive. Note: these bounds are computed from: - // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - int64 seconds = 1; - - // Signed fractions of a second at nanosecond resolution of the span - // of time. Durations less than one second are represented with a 0 - // `seconds` field and a positive or negative `nanos` field. For durations - // of one second or more, a non-zero value for the `nanos` field must be - // of the same sign as the `seconds` field. Must be from -999,999,999 - // to +999,999,999 inclusive. - int32 nanos = 2; -} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/empty.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/empty.proto deleted file mode 100644 index 5f992de..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/empty.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option go_package = "google.golang.org/protobuf/types/known/emptypb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "EmptyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option cc_enable_arenas = true; - -// A generic empty message that you can re-use to avoid defining duplicated -// empty messages in your APIs. A typical example is to use it as the request -// or the response type of an API method. For instance: -// -// service Foo { -// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); -// } -// -// The JSON representation for `Empty` is empty JSON object `{}`. -message Empty {} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/field_mask.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/field_mask.proto deleted file mode 100644 index 6b5104f..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/field_mask.proto +++ /dev/null @@ -1,245 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "FieldMaskProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb"; -option cc_enable_arenas = true; - -// `FieldMask` represents a set of symbolic field paths, for example: -// -// paths: "f.a" -// paths: "f.b.d" -// -// Here `f` represents a field in some root message, `a` and `b` -// fields in the message found in `f`, and `d` a field found in the -// message in `f.b`. -// -// Field masks are used to specify a subset of fields that should be -// returned by a get operation or modified by an update operation. -// Field masks also have a custom JSON encoding (see below). -// -// # Field Masks in Projections -// -// When used in the context of a projection, a response message or -// sub-message is filtered by the API to only contain those fields as -// specified in the mask. For example, if the mask in the previous -// example is applied to a response message as follows: -// -// f { -// a : 22 -// b { -// d : 1 -// x : 2 -// } -// y : 13 -// } -// z: 8 -// -// The result will not contain specific values for fields x,y and z -// (their value will be set to the default, and omitted in proto text -// output): -// -// -// f { -// a : 22 -// b { -// d : 1 -// } -// } -// -// A repeated field is not allowed except at the last position of a -// paths string. -// -// If a FieldMask object is not present in a get operation, the -// operation applies to all fields (as if a FieldMask of all fields -// had been specified). -// -// Note that a field mask does not necessarily apply to the -// top-level response message. In case of a REST get operation, the -// field mask applies directly to the response, but in case of a REST -// list operation, the mask instead applies to each individual message -// in the returned resource list. In case of a REST custom method, -// other definitions may be used. Where the mask applies will be -// clearly documented together with its declaration in the API. In -// any case, the effect on the returned resource/resources is required -// behavior for APIs. -// -// # Field Masks in Update Operations -// -// A field mask in update operations specifies which fields of the -// targeted resource are going to be updated. The API is required -// to only change the values of the fields as specified in the mask -// and leave the others untouched. If a resource is passed in to -// describe the updated values, the API ignores the values of all -// fields not covered by the mask. -// -// If a repeated field is specified for an update operation, new values will -// be appended to the existing repeated field in the target resource. Note that -// a repeated field is only allowed in the last position of a `paths` string. -// -// If a sub-message is specified in the last position of the field mask for an -// update operation, then new value will be merged into the existing sub-message -// in the target resource. -// -// For example, given the target message: -// -// f { -// b { -// d: 1 -// x: 2 -// } -// c: [1] -// } -// -// And an update message: -// -// f { -// b { -// d: 10 -// } -// c: [2] -// } -// -// then if the field mask is: -// -// paths: ["f.b", "f.c"] -// -// then the result will be: -// -// f { -// b { -// d: 10 -// x: 2 -// } -// c: [1, 2] -// } -// -// An implementation may provide options to override this default behavior for -// repeated and message fields. -// -// In order to reset a field's value to the default, the field must -// be in the mask and set to the default value in the provided resource. -// Hence, in order to reset all fields of a resource, provide a default -// instance of the resource and set all fields in the mask, or do -// not provide a mask as described below. -// -// If a field mask is not present on update, the operation applies to -// all fields (as if a field mask of all fields has been specified). -// Note that in the presence of schema evolution, this may mean that -// fields the client does not know and has therefore not filled into -// the request will be reset to their default. If this is unwanted -// behavior, a specific service may require a client to always specify -// a field mask, producing an error if not. -// -// As with get operations, the location of the resource which -// describes the updated values in the request message depends on the -// operation kind. In any case, the effect of the field mask is -// required to be honored by the API. -// -// ## Considerations for HTTP REST -// -// The HTTP kind of an update operation which uses a field mask must -// be set to PATCH instead of PUT in order to satisfy HTTP semantics -// (PUT must only be used for full updates). -// -// # JSON Encoding of Field Masks -// -// In JSON, a field mask is encoded as a single string where paths are -// separated by a comma. Fields name in each path are converted -// to/from lower-camel naming conventions. -// -// As an example, consider the following message declarations: -// -// message Profile { -// User user = 1; -// Photo photo = 2; -// } -// message User { -// string display_name = 1; -// string address = 2; -// } -// -// In proto a field mask for `Profile` may look as such: -// -// mask { -// paths: "user.display_name" -// paths: "photo" -// } -// -// In JSON, the same mask is represented as below: -// -// { -// mask: "user.displayName,photo" -// } -// -// # Field Masks and Oneof Fields -// -// Field masks treat fields in oneofs just as regular fields. Consider the -// following message: -// -// message SampleMessage { -// oneof test_oneof { -// string name = 4; -// SubMessage sub_message = 9; -// } -// } -// -// The field mask can be: -// -// mask { -// paths: "name" -// } -// -// Or: -// -// mask { -// paths: "sub_message" -// } -// -// Note that oneof type names ("test_oneof" in this case) cannot be used in -// paths. -// -// ## Field Mask Verification -// -// The implementation of any API method which has a FieldMask type field in the -// request should verify the included field paths, and return an -// `INVALID_ARGUMENT` error if any path is unmappable. -message FieldMask { - // The set of field mask paths. - repeated string paths = 1; -} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/source_context.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/source_context.proto deleted file mode 100644 index 06bfc43..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/source_context.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "SourceContextProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb"; - -// `SourceContext` represents information about the source of a -// protobuf element, like the file in which it is defined. -message SourceContext { - // The path-qualified name of the .proto file that contained the associated - // protobuf element. For example: `"google/protobuf/source_context.proto"`. - string file_name = 1; -} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/struct.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/struct.proto deleted file mode 100644 index 0ac843c..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/struct.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "google.golang.org/protobuf/types/known/structpb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "StructProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// `Struct` represents a structured data value, consisting of fields -// which map to dynamically typed values. In some languages, `Struct` -// might be supported by a native representation. For example, in -// scripting languages like JS a struct is represented as an -// object. The details of that representation are described together -// with the proto support for the language. -// -// The JSON representation for `Struct` is JSON object. -message Struct { - // Unordered map of dynamically typed values. - map fields = 1; -} - -// `Value` represents a dynamically typed value which can be either -// null, a number, a string, a boolean, a recursive struct value, or a -// list of values. A producer of value is expected to set one of these -// variants. Absence of any variant indicates an error. -// -// The JSON representation for `Value` is JSON value. -message Value { - // The kind of value. - oneof kind { - // Represents a null value. - NullValue null_value = 1; - // Represents a double value. - double number_value = 2; - // Represents a string value. - string string_value = 3; - // Represents a boolean value. - bool bool_value = 4; - // Represents a structured value. - Struct struct_value = 5; - // Represents a repeated `Value`. - ListValue list_value = 6; - } -} - -// `NullValue` is a singleton enumeration to represent the null value for the -// `Value` type union. -// -// The JSON representation for `NullValue` is JSON `null`. -enum NullValue { - // Null value. - NULL_VALUE = 0; -} - -// `ListValue` is a wrapper around a repeated field of values. -// -// The JSON representation for `ListValue` is JSON array. -message ListValue { - // Repeated field of dynamically typed values. - repeated Value values = 1; -} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/timestamp.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/timestamp.proto deleted file mode 100644 index 3b2df6d..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/timestamp.proto +++ /dev/null @@ -1,147 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "google.golang.org/protobuf/types/known/timestamppb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "TimestampProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// A Timestamp represents a point in time independent of any time zone or local -// calendar, encoded as a count of seconds and fractions of seconds at -// nanosecond resolution. The count is relative to an epoch at UTC midnight on -// January 1, 1970, in the proleptic Gregorian calendar which extends the -// Gregorian calendar backwards to year one. -// -// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap -// second table is needed for interpretation, using a [24-hour linear -// smear](https://developers.google.com/time/smear). -// -// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By -// restricting to that range, we ensure that we can convert to and from [RFC -// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. -// -// # Examples -// -// Example 1: Compute Timestamp from POSIX `time()`. -// -// Timestamp timestamp; -// timestamp.set_seconds(time(NULL)); -// timestamp.set_nanos(0); -// -// Example 2: Compute Timestamp from POSIX `gettimeofday()`. -// -// struct timeval tv; -// gettimeofday(&tv, NULL); -// -// Timestamp timestamp; -// timestamp.set_seconds(tv.tv_sec); -// timestamp.set_nanos(tv.tv_usec * 1000); -// -// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. -// -// FILETIME ft; -// GetSystemTimeAsFileTime(&ft); -// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; -// -// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z -// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. -// Timestamp timestamp; -// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); -// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); -// -// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. -// -// long millis = System.currentTimeMillis(); -// -// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) -// .setNanos((int) ((millis % 1000) * 1000000)).build(); -// -// -// Example 5: Compute Timestamp from Java `Instant.now()`. -// -// Instant now = Instant.now(); -// -// Timestamp timestamp = -// Timestamp.newBuilder().setSeconds(now.getEpochSecond()) -// .setNanos(now.getNano()).build(); -// -// -// Example 6: Compute Timestamp from current time in Python. -// -// timestamp = Timestamp() -// timestamp.GetCurrentTime() -// -// # JSON Mapping -// -// In JSON format, the Timestamp type is encoded as a string in the -// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the -// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" -// where {year} is always expressed using four digits while {month}, {day}, -// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional -// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), -// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone -// is required. A proto3 JSON serializer should always use UTC (as indicated by -// "Z") when printing the Timestamp type and a proto3 JSON parser should be -// able to accept both UTC and other timezones (as indicated by an offset). -// -// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past -// 01:30 UTC on January 15, 2017. -// -// In JavaScript, one can convert a Date object to this format using the -// standard -// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) -// method. In Python, a standard `datetime.datetime` object can be converted -// to this format using -// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with -// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use -// the Joda Time's [`ISODateTimeFormat.dateTime()`]( -// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D -// ) to obtain a formatter capable of generating timestamps in this format. -// -// -message Timestamp { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - int64 seconds = 1; - - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. - int32 nanos = 2; -} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/type.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/type.proto deleted file mode 100644 index d3f6a68..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/type.proto +++ /dev/null @@ -1,187 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -import "google/protobuf/any.proto"; -import "google/protobuf/source_context.proto"; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option java_package = "com.google.protobuf"; -option java_outer_classname = "TypeProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option go_package = "google.golang.org/protobuf/types/known/typepb"; - -// A protocol buffer message type. -message Type { - // The fully qualified message name. - string name = 1; - // The list of fields. - repeated Field fields = 2; - // The list of types appearing in `oneof` definitions in this type. - repeated string oneofs = 3; - // The protocol buffer options. - repeated Option options = 4; - // The source context. - SourceContext source_context = 5; - // The source syntax. - Syntax syntax = 6; -} - -// A single field of a message type. -message Field { - // Basic field types. - enum Kind { - // Field type unknown. - TYPE_UNKNOWN = 0; - // Field type double. - TYPE_DOUBLE = 1; - // Field type float. - TYPE_FLOAT = 2; - // Field type int64. - TYPE_INT64 = 3; - // Field type uint64. - TYPE_UINT64 = 4; - // Field type int32. - TYPE_INT32 = 5; - // Field type fixed64. - TYPE_FIXED64 = 6; - // Field type fixed32. - TYPE_FIXED32 = 7; - // Field type bool. - TYPE_BOOL = 8; - // Field type string. - TYPE_STRING = 9; - // Field type group. Proto2 syntax only, and deprecated. - TYPE_GROUP = 10; - // Field type message. - TYPE_MESSAGE = 11; - // Field type bytes. - TYPE_BYTES = 12; - // Field type uint32. - TYPE_UINT32 = 13; - // Field type enum. - TYPE_ENUM = 14; - // Field type sfixed32. - TYPE_SFIXED32 = 15; - // Field type sfixed64. - TYPE_SFIXED64 = 16; - // Field type sint32. - TYPE_SINT32 = 17; - // Field type sint64. - TYPE_SINT64 = 18; - } - - // Whether a field is optional, required, or repeated. - enum Cardinality { - // For fields with unknown cardinality. - CARDINALITY_UNKNOWN = 0; - // For optional fields. - CARDINALITY_OPTIONAL = 1; - // For required fields. Proto2 syntax only. - CARDINALITY_REQUIRED = 2; - // For repeated fields. - CARDINALITY_REPEATED = 3; - } - - // The field type. - Kind kind = 1; - // The field cardinality. - Cardinality cardinality = 2; - // The field number. - int32 number = 3; - // The field name. - string name = 4; - // The field type URL, without the scheme, for message or enumeration - // types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - string type_url = 6; - // The index of the field type in `Type.oneofs`, for message or enumeration - // types. The first type has index 1; zero means the type is not in the list. - int32 oneof_index = 7; - // Whether to use alternative packed wire representation. - bool packed = 8; - // The protocol buffer options. - repeated Option options = 9; - // The field JSON name. - string json_name = 10; - // The string value of the default value of this field. Proto2 syntax only. - string default_value = 11; -} - -// Enum type definition. -message Enum { - // Enum type name. - string name = 1; - // Enum value definitions. - repeated EnumValue enumvalue = 2; - // Protocol buffer options. - repeated Option options = 3; - // The source context. - SourceContext source_context = 4; - // The source syntax. - Syntax syntax = 5; -} - -// Enum value definition. -message EnumValue { - // Enum value name. - string name = 1; - // Enum value number. - int32 number = 2; - // Protocol buffer options. - repeated Option options = 3; -} - -// A protocol buffer option, which can be attached to a message, field, -// enumeration, etc. -message Option { - // The option's name. For protobuf built-in options (options defined in - // descriptor.proto), this is the short name. For example, `"map_entry"`. - // For custom options, it should be the fully-qualified name. For example, - // `"google.api.http"`. - string name = 1; - // The option's value packed in an Any message. If the value is a primitive, - // the corresponding wrapper type defined in google/protobuf/wrappers.proto - // should be used. If the value is an enum, it should be stored as an int32 - // value using the google.protobuf.Int32Value type. - Any value = 2; -} - -// The syntax in which a protocol buffer element is defined. -enum Syntax { - // Syntax `proto2`. - SYNTAX_PROTO2 = 0; - // Syntax `proto3`. - SYNTAX_PROTO3 = 1; -} diff --git a/bin/protoc-3.19.4-win64/include/google/protobuf/wrappers.proto b/bin/protoc-3.19.4-win64/include/google/protobuf/wrappers.proto deleted file mode 100644 index d49dd53..0000000 --- a/bin/protoc-3.19.4-win64/include/google/protobuf/wrappers.proto +++ /dev/null @@ -1,123 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Wrappers for primitive (non-message) types. These types are useful -// for embedding primitives in the `google.protobuf.Any` type and for places -// where we need to distinguish between the absence of a primitive -// typed field and its default value. -// -// These wrappers have no meaningful use within repeated fields as they lack -// the ability to detect presence on individual elements. -// These wrappers have no meaningful use within a map or a oneof since -// individual entries of a map or fields of a oneof can already detect presence. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "google.golang.org/protobuf/types/known/wrapperspb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "WrappersProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// Wrapper message for `double`. -// -// The JSON representation for `DoubleValue` is JSON number. -message DoubleValue { - // The double value. - double value = 1; -} - -// Wrapper message for `float`. -// -// The JSON representation for `FloatValue` is JSON number. -message FloatValue { - // The float value. - float value = 1; -} - -// Wrapper message for `int64`. -// -// The JSON representation for `Int64Value` is JSON string. -message Int64Value { - // The int64 value. - int64 value = 1; -} - -// Wrapper message for `uint64`. -// -// The JSON representation for `UInt64Value` is JSON string. -message UInt64Value { - // The uint64 value. - uint64 value = 1; -} - -// Wrapper message for `int32`. -// -// The JSON representation for `Int32Value` is JSON number. -message Int32Value { - // The int32 value. - int32 value = 1; -} - -// Wrapper message for `uint32`. -// -// The JSON representation for `UInt32Value` is JSON number. -message UInt32Value { - // The uint32 value. - uint32 value = 1; -} - -// Wrapper message for `bool`. -// -// The JSON representation for `BoolValue` is JSON `true` and `false`. -message BoolValue { - // The bool value. - bool value = 1; -} - -// Wrapper message for `string`. -// -// The JSON representation for `StringValue` is JSON string. -message StringValue { - // The string value. - string value = 1; -} - -// Wrapper message for `bytes`. -// -// The JSON representation for `BytesValue` is JSON string. -message BytesValue { - // The bytes value. - bytes value = 1; -} diff --git a/bin/protoc-3.19.4-win64/readme.txt b/bin/protoc-3.19.4-win64/readme.txt deleted file mode 100644 index b6c9f9b..0000000 --- a/bin/protoc-3.19.4-win64/readme.txt +++ /dev/null @@ -1,15 +0,0 @@ -Protocol Buffers - Google's data interchange format -Copyright 2008 Google Inc. -https://developers.google.com/protocol-buffers/ - -This package contains a precompiled binary version of the protocol buffer -compiler (protoc). This binary is intended for users who want to use Protocol -Buffers in languages other than C++ but do not want to compile protoc -themselves. To install, simply place this binary somewhere in your PATH. - -If you intend to use the included well known types then don't forget to -copy the contents of the 'include' directory somewhere as well, for example -into '/usr/local/include/'. - -Please refer to our official github site for more installation instructions: - https://github.com/protocolbuffers/protobuf diff --git a/bin/protoc-gen-go b/bin/protoc-gen-go deleted file mode 100644 index d9cb6fa..0000000 Binary files a/bin/protoc-gen-go and /dev/null differ diff --git a/bin/protoc-gen-go.exe b/bin/protoc-gen-go.exe deleted file mode 100644 index 78bb22a..0000000 Binary files a/bin/protoc-gen-go.exe and /dev/null differ diff --git a/code/dataloader.go b/code/dataloader.go deleted file mode 100644 index 1b121d7..0000000 --- a/code/dataloader.go +++ /dev/null @@ -1,122 +0,0 @@ -package code - -import ( - "crypto/md5" - "encoding/hex" - "errors" - "os" -) - -var fileSignMap = make(map[string]string) - -type DataLoader interface { - Load(fileFullPath string) error - Reload(fileFullPath string) error -} - -type DataHolder interface { - unmarshal([]byte) error - reunmarshal([]byte) error -} - -type JsonDataLoader struct { - dh DataHolder -} - -func (this *JsonDataLoader) Load(fileFullPath string) error { - buf, err := os.ReadFile(fileFullPath) - if err != nil { - return err - } - - h := md5.New() - _, err = h.Write(buf) - if err != nil { - return err - } - fileSign := hex.EncodeToString(h.Sum(nil)) - fileSignMap[fileFullPath] = fileSign - - if this.dh != nil { - err = this.dh.unmarshal(buf) - } - - return err -} - -func (this *JsonDataLoader) Reload(fileFullPath string) error { - buf, err := os.ReadFile(fileFullPath) - if err != nil { - return err - } - - h := md5.New() - _, err = h.Write(buf) - if err != nil { - return err - } - fileSign := hex.EncodeToString(h.Sum(nil)) - if preSign, exist := fileSignMap[fileFullPath]; exist { - if preSign == fileSign { - return nil - } - } - fileSignMap[fileFullPath] = fileSign - - if this.dh != nil { - err = this.dh.reunmarshal(buf) - } - - return err -} - -type ProtobufDataLoader struct { - dh DataHolder -} - -func (this *ProtobufDataLoader) Load(fileFullPath string) error { - buf, err := os.ReadFile(fileFullPath) - if err != nil { - return err - } - - h := md5.New() - _, err = h.Write(buf) - if err != nil { - return err - } - fileSign := hex.EncodeToString(h.Sum(nil)) - fileSignMap[fileFullPath] = fileSign - - if this.dh != nil { - err = this.dh.unmarshal(buf) - } - - return err -} - -func (this *ProtobufDataLoader) Reload(fileFullPath string) error { - buf, err := os.ReadFile(fileFullPath) - if err != nil { - return err - } - - h := md5.New() - _, err = h.Write(buf) - if err != nil { - return err - } - fileSign := hex.EncodeToString(h.Sum(nil)) - if preSign, exist := fileSignMap[fileFullPath]; exist { - if preSign == fileSign { - return errors.New("content no modify") - } - } - fileSignMap[fileFullPath] = fileSign - - if this.dh != nil { - err = this.dh.reunmarshal(buf) - } - - return err -} diff --git a/code/datamgr.go b/code/datamgr.go deleted file mode 100644 index d6fe219..0000000 --- a/code/datamgr.go +++ /dev/null @@ -1,66 +0,0 @@ -package code - -import ( - "strings" -) - -var DataMgr = &dataMgr{ - loaders: make(map[string]DataLoader), - cacheGameFreeId: make(map[int32]CacheGameType), -} - -type dataMgr struct { - loaders map[string]DataLoader - cacheGameFreeId map[int32]CacheGameType -} -type CacheGameType struct { - Ids []int32 - GameType int32 -} - -func (this *dataMgr) RegisteLoader(name string, loader DataLoader) { - this.loaders[strings.ToLower(name)] = loader -} - -func (this *dataMgr) GetLoader(name string) DataLoader { - if loader, exist := this.loaders[strings.ToLower(name)]; exist { - return loader - } - return nil -} - -func (this *dataMgr) GetGameFreeIds(gameId, gameMode int32) (ids []int32, gameType int32) { - key := gameId<<16 | gameMode - if data, exist := this.cacheGameFreeId[key]; exist { - return data.Ids, data.GameType - } else { - for _, dbGameFree := range PBDB_GameFreeMgr.Datas.Arr { - if dbGameFree.GetGameId() == gameId && dbGameFree.GetGameMode() == gameMode { - ids = append(ids, dbGameFree.GetId()) - gameType = dbGameFree.GetGameType() - } - } - this.cacheGameFreeId[key] = CacheGameType{Ids: ids, GameType: gameType} - } - return -} - -// DataMgrAfter 配置文件监听器,这个加载数据会在DataMgr之后 -var DataMgrAfter = &dataMgrAfter{ - loaders: make(map[string][]DataLoader), -} - -type dataMgrAfter struct { - loaders map[string][]DataLoader -} - -func (this *dataMgrAfter) RegisterLoader(name string, loader DataLoader) { - this.loaders[strings.ToLower(name)] = append(this.loaders[strings.ToLower(name)], loader) -} - -func (this *dataMgrAfter) GetLoader(name string) []DataLoader { - if loader, exist := this.loaders[strings.ToLower(name)]; exist { - return loader - } - return nil -} diff --git a/code/db_activity1.go b/code/db_activity1.go deleted file mode 100644 index 651cf4d..0000000 --- a/code/db_activity1.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_Activity1Mgr = &DB_Activity1Mgr{pool: make(map[int32]*server.DB_Activity1), Datas: &server.DB_Activity1Array{}} - -type DB_Activity1Mgr struct { - Datas *server.DB_Activity1Array - pool map[int32]*server.DB_Activity1 -} - -func (this *DB_Activity1Mgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_Activity1Mgr) reunmarshal(data []byte) error { - newDatas := &server.DB_Activity1Array{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_Activity1Mgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_Activity1Mgr) GetData(id int32) *server.DB_Activity1 { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Activity1.dat", &ProtobufDataLoader{dh: PBDB_Activity1Mgr}) -} diff --git a/code/db_actsign.go b/code/db_actsign.go deleted file mode 100644 index 312d56e..0000000 --- a/code/db_actsign.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_ActSignMgr = &DB_ActSignMgr{pool: make(map[int32]*server.DB_ActSign), Datas: &server.DB_ActSignArray{}} - -type DB_ActSignMgr struct { - Datas *server.DB_ActSignArray - pool map[int32]*server.DB_ActSign -} - -func (this *DB_ActSignMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_ActSignMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_ActSignArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_ActSignMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_ActSignMgr) GetData(id int32) *server.DB_ActSign { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_ActSign.dat", &ProtobufDataLoader{dh: PBDB_ActSignMgr}) -} diff --git a/code/db_animalcolor.go b/code/db_animalcolor.go deleted file mode 100644 index eece64c..0000000 --- a/code/db_animalcolor.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_AnimalColorMgr = &DB_AnimalColorMgr{pool: make(map[int32]*server.DB_AnimalColor), Datas: &server.DB_AnimalColorArray{}} - -type DB_AnimalColorMgr struct { - Datas *server.DB_AnimalColorArray - pool map[int32]*server.DB_AnimalColor -} - -func (this *DB_AnimalColorMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_AnimalColorMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_AnimalColorArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_AnimalColorMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_AnimalColorMgr) GetData(id int32) *server.DB_AnimalColor { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_AnimalColor.dat", &ProtobufDataLoader{dh: PBDB_AnimalColorMgr}) -} diff --git a/code/db_artilleryrate.go b/code/db_artilleryrate.go deleted file mode 100644 index f740c0c..0000000 --- a/code/db_artilleryrate.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_ArtilleryRateMgr = &DB_ArtilleryRateMgr{pool: make(map[int32]*server.DB_ArtilleryRate), Datas: &server.DB_ArtilleryRateArray{}} - -type DB_ArtilleryRateMgr struct { - Datas *server.DB_ArtilleryRateArray - pool map[int32]*server.DB_ArtilleryRate -} - -func (this *DB_ArtilleryRateMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_ArtilleryRateMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_ArtilleryRateArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_ArtilleryRateMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_ArtilleryRateMgr) GetData(id int32) *server.DB_ArtilleryRate { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_ArtilleryRate.dat", &ProtobufDataLoader{dh: PBDB_ArtilleryRateMgr}) -} diff --git a/code/db_artilleryskin.go b/code/db_artilleryskin.go deleted file mode 100644 index 78e2986..0000000 --- a/code/db_artilleryskin.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_ArtillerySkinMgr = &DB_ArtillerySkinMgr{pool: make(map[int32]*server.DB_ArtillerySkin), Datas: &server.DB_ArtillerySkinArray{}} - -type DB_ArtillerySkinMgr struct { - Datas *server.DB_ArtillerySkinArray - pool map[int32]*server.DB_ArtillerySkin -} - -func (this *DB_ArtillerySkinMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_ArtillerySkinMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_ArtillerySkinArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_ArtillerySkinMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_ArtillerySkinMgr) GetData(id int32) *server.DB_ArtillerySkin { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_ArtillerySkin.dat", &ProtobufDataLoader{dh: PBDB_ArtillerySkinMgr}) -} diff --git a/code/db_blackwhite.go b/code/db_blackwhite.go deleted file mode 100644 index 88956d5..0000000 --- a/code/db_blackwhite.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_BlackWhiteMgr = &DB_BlackWhiteMgr{pool: make(map[int32]*server.DB_BlackWhite), Datas: &server.DB_BlackWhiteArray{}} - -type DB_BlackWhiteMgr struct { - Datas *server.DB_BlackWhiteArray - pool map[int32]*server.DB_BlackWhite -} - -func (this *DB_BlackWhiteMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_BlackWhiteMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_BlackWhiteArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_BlackWhiteMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_BlackWhiteMgr) GetData(id int32) *server.DB_BlackWhite { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_BlackWhite.dat", &ProtobufDataLoader{dh: PBDB_BlackWhiteMgr}) -} diff --git a/code/db_cardsjd.go b/code/db_cardsjd.go deleted file mode 100644 index 248f862..0000000 --- a/code/db_cardsjd.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_CardsJDMgr = &DB_CardsJDMgr{pool: make(map[int32]*server.DB_CardsJD), Datas: &server.DB_CardsJDArray{}} - -type DB_CardsJDMgr struct { - Datas *server.DB_CardsJDArray - pool map[int32]*server.DB_CardsJD -} - -func (this *DB_CardsJDMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_CardsJDMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_CardsJDArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_CardsJDMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_CardsJDMgr) GetData(id int32) *server.DB_CardsJD { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_CardsJD.dat", &ProtobufDataLoader{dh: PBDB_CardsJDMgr}) -} diff --git a/code/db_cardsyule.go b/code/db_cardsyule.go deleted file mode 100644 index dc9e6ec..0000000 --- a/code/db_cardsyule.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_CardsYuLeMgr = &DB_CardsYuLeMgr{pool: make(map[int32]*server.DB_CardsYuLe), Datas: &server.DB_CardsYuLeArray{}} - -type DB_CardsYuLeMgr struct { - Datas *server.DB_CardsYuLeArray - pool map[int32]*server.DB_CardsYuLe -} - -func (this *DB_CardsYuLeMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_CardsYuLeMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_CardsYuLeArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_CardsYuLeMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_CardsYuLeMgr) GetData(id int32) *server.DB_CardsYuLe { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_CardsYuLe.dat", &ProtobufDataLoader{dh: PBDB_CardsYuLeMgr}) -} diff --git a/code/db_chessbilledrules.go b/code/db_chessbilledrules.go deleted file mode 100644 index df48470..0000000 --- a/code/db_chessbilledrules.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_ChessBilledRulesMgr = &DB_ChessBilledRulesMgr{pool: make(map[int32]*server.DB_ChessBilledRules), Datas: &server.DB_ChessBilledRulesArray{}} - -type DB_ChessBilledRulesMgr struct { - Datas *server.DB_ChessBilledRulesArray - pool map[int32]*server.DB_ChessBilledRules -} - -func (this *DB_ChessBilledRulesMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_ChessBilledRulesMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_ChessBilledRulesArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_ChessBilledRulesMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_ChessBilledRulesMgr) GetData(id int32) *server.DB_ChessBilledRules { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_ChessBilledRules.dat", &ProtobufDataLoader{dh: PBDB_ChessBilledRulesMgr}) -} diff --git a/code/db_chessmatchrules.go b/code/db_chessmatchrules.go deleted file mode 100644 index e6681a7..0000000 --- a/code/db_chessmatchrules.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_ChessMatchRulesMgr = &DB_ChessMatchRulesMgr{pool: make(map[int32]*server.DB_ChessMatchRules), Datas: &server.DB_ChessMatchRulesArray{}} - -type DB_ChessMatchRulesMgr struct { - Datas *server.DB_ChessMatchRulesArray - pool map[int32]*server.DB_ChessMatchRules -} - -func (this *DB_ChessMatchRulesMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_ChessMatchRulesMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_ChessMatchRulesArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_ChessMatchRulesMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_ChessMatchRulesMgr) GetData(id int32) *server.DB_ChessMatchRules { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_ChessMatchRules.dat", &ProtobufDataLoader{dh: PBDB_ChessMatchRulesMgr}) -} diff --git a/code/db_chessrank.go b/code/db_chessrank.go deleted file mode 100644 index 66122fc..0000000 --- a/code/db_chessrank.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_ChessRankMgr = &DB_ChessRankMgr{pool: make(map[int32]*server.DB_ChessRank), Datas: &server.DB_ChessRankArray{}} - -type DB_ChessRankMgr struct { - Datas *server.DB_ChessRankArray - pool map[int32]*server.DB_ChessRank -} - -func (this *DB_ChessRankMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_ChessRankMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_ChessRankArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_ChessRankMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_ChessRankMgr) GetData(id int32) *server.DB_ChessRank { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_ChessRank.dat", &ProtobufDataLoader{dh: PBDB_ChessRankMgr}) -} diff --git a/code/db_clientver.go b/code/db_clientver.go deleted file mode 100644 index 62eacc8..0000000 --- a/code/db_clientver.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_ClientVerMgr = &DB_ClientVerMgr{pool: make(map[int32]*server.DB_ClientVer), Datas: &server.DB_ClientVerArray{}} - -type DB_ClientVerMgr struct { - Datas *server.DB_ClientVerArray - pool map[int32]*server.DB_ClientVer -} - -func (this *DB_ClientVerMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_ClientVerMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_ClientVerArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_ClientVerMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_ClientVerMgr) GetData(id int32) *server.DB_ClientVer { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_ClientVer.dat", &ProtobufDataLoader{dh: PBDB_ClientVerMgr}) -} diff --git a/code/db_crashsearch.go b/code/db_crashsearch.go deleted file mode 100644 index aa35937..0000000 --- a/code/db_crashsearch.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_CrashSearchMgr = &DB_CrashSearchMgr{pool: make(map[int32]*server.DB_CrashSearch), Datas: &server.DB_CrashSearchArray{}} - -type DB_CrashSearchMgr struct { - Datas *server.DB_CrashSearchArray - pool map[int32]*server.DB_CrashSearch -} - -func (this *DB_CrashSearchMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_CrashSearchMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_CrashSearchArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_CrashSearchMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_CrashSearchMgr) GetData(id int32) *server.DB_CrashSearch { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_CrashSearch.dat", &ProtobufDataLoader{dh: PBDB_CrashSearchMgr}) -} diff --git a/code/db_createroom.go b/code/db_createroom.go deleted file mode 100644 index 211114c..0000000 --- a/code/db_createroom.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_CreateroomMgr = &DB_CreateroomMgr{pool: make(map[int32]*server.DB_Createroom), Datas: &server.DB_CreateroomArray{}} - -type DB_CreateroomMgr struct { - Datas *server.DB_CreateroomArray - pool map[int32]*server.DB_Createroom -} - -func (this *DB_CreateroomMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_CreateroomMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_CreateroomArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_CreateroomMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_CreateroomMgr) GetData(id int32) *server.DB_Createroom { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Createroom.dat", &ProtobufDataLoader{dh: PBDB_CreateroomMgr}) -} diff --git a/code/db_fish.go b/code/db_fish.go deleted file mode 100644 index 2f84878..0000000 --- a/code/db_fish.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_FishMgr = &DB_FishMgr{pool: make(map[int32]*server.DB_Fish), Datas: &server.DB_FishArray{}} - -type DB_FishMgr struct { - Datas *server.DB_FishArray - pool map[int32]*server.DB_Fish -} - -func (this *DB_FishMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_FishMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_FishArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_FishMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_FishMgr) GetData(id int32) *server.DB_Fish { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Fish.dat", &ProtobufDataLoader{dh: PBDB_FishMgr}) -} diff --git a/code/db_fishout.go b/code/db_fishout.go deleted file mode 100644 index 911ee06..0000000 --- a/code/db_fishout.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_FishOutMgr = &DB_FishOutMgr{pool: make(map[int32]*server.DB_FishOut), Datas: &server.DB_FishOutArray{}} - -type DB_FishOutMgr struct { - Datas *server.DB_FishOutArray - pool map[int32]*server.DB_FishOut -} - -func (this *DB_FishOutMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_FishOutMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_FishOutArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_FishOutMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_FishOutMgr) GetData(id int32) *server.DB_FishOut { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_FishOut.dat", &ProtobufDataLoader{dh: PBDB_FishOutMgr}) -} diff --git a/code/db_fishpath.go b/code/db_fishpath.go deleted file mode 100644 index f7ff3b7..0000000 --- a/code/db_fishpath.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_FishPathMgr = &DB_FishPathMgr{pool: make(map[int32]*server.DB_FishPath), Datas: &server.DB_FishPathArray{}} - -type DB_FishPathMgr struct { - Datas *server.DB_FishPathArray - pool map[int32]*server.DB_FishPath -} - -func (this *DB_FishPathMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_FishPathMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_FishPathArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_FishPathMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_FishPathMgr) GetData(id int32) *server.DB_FishPath { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_FishPath.dat", &ProtobufDataLoader{dh: PBDB_FishPathMgr}) -} diff --git a/code/db_fishroom.go b/code/db_fishroom.go deleted file mode 100644 index b40d72c..0000000 --- a/code/db_fishroom.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_FishRoomMgr = &DB_FishRoomMgr{pool: make(map[int32]*server.DB_FishRoom), Datas: &server.DB_FishRoomArray{}} - -type DB_FishRoomMgr struct { - Datas *server.DB_FishRoomArray - pool map[int32]*server.DB_FishRoom -} - -func (this *DB_FishRoomMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_FishRoomMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_FishRoomArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_FishRoomMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_FishRoomMgr) GetData(id int32) *server.DB_FishRoom { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_FishRoom.dat", &ProtobufDataLoader{dh: PBDB_FishRoomMgr}) -} diff --git a/code/db_fishskill.go b/code/db_fishskill.go deleted file mode 100644 index f89413d..0000000 --- a/code/db_fishskill.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_FishSkillMgr = &DB_FishSkillMgr{pool: make(map[int32]*server.DB_FishSkill), Datas: &server.DB_FishSkillArray{}} - -type DB_FishSkillMgr struct { - Datas *server.DB_FishSkillArray - pool map[int32]*server.DB_FishSkill -} - -func (this *DB_FishSkillMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_FishSkillMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_FishSkillArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_FishSkillMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_FishSkillMgr) GetData(id int32) *server.DB_FishSkill { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_FishSkill.dat", &ProtobufDataLoader{dh: PBDB_FishSkillMgr}) -} diff --git a/code/db_fortunegod_odds.go b/code/db_fortunegod_odds.go deleted file mode 100644 index 88c4706..0000000 --- a/code/db_fortunegod_odds.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_FortuneGod_OddsMgr = &DB_FortuneGod_OddsMgr{pool: make(map[int32]*server.DB_FortuneGod_Odds), Datas: &server.DB_FortuneGod_OddsArray{}} - -type DB_FortuneGod_OddsMgr struct { - Datas *server.DB_FortuneGod_OddsArray - pool map[int32]*server.DB_FortuneGod_Odds -} - -func (this *DB_FortuneGod_OddsMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_FortuneGod_OddsMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_FortuneGod_OddsArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_FortuneGod_OddsMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_FortuneGod_OddsMgr) GetData(id int32) *server.DB_FortuneGod_Odds { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_FortuneGod_Odds.dat", &ProtobufDataLoader{dh: PBDB_FortuneGod_OddsMgr}) -} diff --git a/code/db_fortunegod_turnrate.go b/code/db_fortunegod_turnrate.go deleted file mode 100644 index ad31cf8..0000000 --- a/code/db_fortunegod_turnrate.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_FortuneGod_TurnRateMgr = &DB_FortuneGod_TurnRateMgr{pool: make(map[int32]*server.DB_FortuneGod_TurnRate), Datas: &server.DB_FortuneGod_TurnRateArray{}} - -type DB_FortuneGod_TurnRateMgr struct { - Datas *server.DB_FortuneGod_TurnRateArray - pool map[int32]*server.DB_FortuneGod_TurnRate -} - -func (this *DB_FortuneGod_TurnRateMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_FortuneGod_TurnRateMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_FortuneGod_TurnRateArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_FortuneGod_TurnRateMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_FortuneGod_TurnRateMgr) GetData(id int32) *server.DB_FortuneGod_TurnRate { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_FortuneGod_TurnRate.dat", &ProtobufDataLoader{dh: PBDB_FortuneGod_TurnRateMgr}) -} diff --git a/code/db_fortunegod_weight.go b/code/db_fortunegod_weight.go deleted file mode 100644 index 4e2adad..0000000 --- a/code/db_fortunegod_weight.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_FortuneGod_WeightMgr = &DB_FortuneGod_WeightMgr{pool: make(map[int32]*server.DB_FortuneGod_Weight), Datas: &server.DB_FortuneGod_WeightArray{}} - -type DB_FortuneGod_WeightMgr struct { - Datas *server.DB_FortuneGod_WeightArray - pool map[int32]*server.DB_FortuneGod_Weight -} - -func (this *DB_FortuneGod_WeightMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_FortuneGod_WeightMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_FortuneGod_WeightArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_FortuneGod_WeightMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_FortuneGod_WeightMgr) GetData(id int32) *server.DB_FortuneGod_Weight { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_FortuneGod_Weight.dat", &ProtobufDataLoader{dh: PBDB_FortuneGod_WeightMgr}) -} diff --git a/code/db_fortunegod_weightcondition.go b/code/db_fortunegod_weightcondition.go deleted file mode 100644 index 7e4e232..0000000 --- a/code/db_fortunegod_weightcondition.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_FortuneGod_WeightConditionMgr = &DB_FortuneGod_WeightConditionMgr{pool: make(map[int32]*server.DB_FortuneGod_WeightCondition), Datas: &server.DB_FortuneGod_WeightConditionArray{}} - -type DB_FortuneGod_WeightConditionMgr struct { - Datas *server.DB_FortuneGod_WeightConditionArray - pool map[int32]*server.DB_FortuneGod_WeightCondition -} - -func (this *DB_FortuneGod_WeightConditionMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_FortuneGod_WeightConditionMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_FortuneGod_WeightConditionArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_FortuneGod_WeightConditionMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_FortuneGod_WeightConditionMgr) GetData(id int32) *server.DB_FortuneGod_WeightCondition { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_FortuneGod_WeightCondition.dat", &ProtobufDataLoader{dh: PBDB_FortuneGod_WeightConditionMgr}) -} diff --git a/code/db_game_drop.go b/code/db_game_drop.go deleted file mode 100644 index bf7b825..0000000 --- a/code/db_game_drop.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_Game_DropMgr = &DB_Game_DropMgr{pool: make(map[int32]*server.DB_Game_Drop), Datas: &server.DB_Game_DropArray{}} - -type DB_Game_DropMgr struct { - Datas *server.DB_Game_DropArray - pool map[int32]*server.DB_Game_Drop -} - -func (this *DB_Game_DropMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_Game_DropMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_Game_DropArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_Game_DropMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_Game_DropMgr) GetData(id int32) *server.DB_Game_Drop { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Game_Drop.dat", &ProtobufDataLoader{dh: PBDB_Game_DropMgr}) -} diff --git a/code/db_game_introduction.go b/code/db_game_introduction.go deleted file mode 100644 index e912350..0000000 --- a/code/db_game_introduction.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_Game_IntroductionMgr = &DB_Game_IntroductionMgr{pool: make(map[int32]*server.DB_Game_Introduction), Datas: &server.DB_Game_IntroductionArray{}} - -type DB_Game_IntroductionMgr struct { - Datas *server.DB_Game_IntroductionArray - pool map[int32]*server.DB_Game_Introduction -} - -func (this *DB_Game_IntroductionMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_Game_IntroductionMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_Game_IntroductionArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_Game_IntroductionMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_Game_IntroductionMgr) GetData(id int32) *server.DB_Game_Introduction { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Game_Introduction.dat", &ProtobufDataLoader{dh: PBDB_Game_IntroductionMgr}) -} diff --git a/code/db_game_pet.go b/code/db_game_pet.go deleted file mode 100644 index 25b7860..0000000 --- a/code/db_game_pet.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_Game_PetMgr = &DB_Game_PetMgr{pool: make(map[int32]*server.DB_Game_Pet), Datas: &server.DB_Game_PetArray{}} - -type DB_Game_PetMgr struct { - Datas *server.DB_Game_PetArray - pool map[int32]*server.DB_Game_Pet -} - -func (this *DB_Game_PetMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_Game_PetMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_Game_PetArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_Game_PetMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_Game_PetMgr) GetData(id int32) *server.DB_Game_Pet { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Game_Pet.dat", &ProtobufDataLoader{dh: PBDB_Game_PetMgr}) -} diff --git a/code/db_game_role.go b/code/db_game_role.go deleted file mode 100644 index 1a23632..0000000 --- a/code/db_game_role.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_Game_RoleMgr = &DB_Game_RoleMgr{pool: make(map[int32]*server.DB_Game_Role), Datas: &server.DB_Game_RoleArray{}} - -type DB_Game_RoleMgr struct { - Datas *server.DB_Game_RoleArray - pool map[int32]*server.DB_Game_Role -} - -func (this *DB_Game_RoleMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_Game_RoleMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_Game_RoleArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_Game_RoleMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_Game_RoleMgr) GetData(id int32) *server.DB_Game_Role { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Game_Role.dat", &ProtobufDataLoader{dh: PBDB_Game_RoleMgr}) -} diff --git a/code/db_gamecoinpool.go b/code/db_gamecoinpool.go deleted file mode 100644 index cbef097..0000000 --- a/code/db_gamecoinpool.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_GameCoinPoolMgr = &DB_GameCoinPoolMgr{pool: make(map[int32]*server.DB_GameCoinPool), Datas: &server.DB_GameCoinPoolArray{}} - -type DB_GameCoinPoolMgr struct { - Datas *server.DB_GameCoinPoolArray - pool map[int32]*server.DB_GameCoinPool -} - -func (this *DB_GameCoinPoolMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_GameCoinPoolMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_GameCoinPoolArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_GameCoinPoolMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_GameCoinPoolMgr) GetData(id int32) *server.DB_GameCoinPool { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_GameCoinPool.dat", &ProtobufDataLoader{dh: PBDB_GameCoinPoolMgr}) -} diff --git a/code/db_gamefree.go b/code/db_gamefree.go deleted file mode 100644 index a175e07..0000000 --- a/code/db_gamefree.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_GameFreeMgr = &DB_GameFreeMgr{pool: make(map[int32]*server.DB_GameFree), Datas: &server.DB_GameFreeArray{}} - -type DB_GameFreeMgr struct { - Datas *server.DB_GameFreeArray - pool map[int32]*server.DB_GameFree -} - -func (this *DB_GameFreeMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_GameFreeMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_GameFreeArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_GameFreeMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_GameFreeMgr) GetData(id int32) *server.DB_GameFree { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_GameFree.dat", &ProtobufDataLoader{dh: PBDB_GameFreeMgr}) -} diff --git a/code/db_gameitem.go b/code/db_gameitem.go deleted file mode 100644 index f3f2b02..0000000 --- a/code/db_gameitem.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_GameItemMgr = &DB_GameItemMgr{pool: make(map[int32]*server.DB_GameItem), Datas: &server.DB_GameItemArray{}} - -type DB_GameItemMgr struct { - Datas *server.DB_GameItemArray - pool map[int32]*server.DB_GameItem -} - -func (this *DB_GameItemMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_GameItemMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_GameItemArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_GameItemMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_GameItemMgr) GetData(id int32) *server.DB_GameItem { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_GameItem.dat", &ProtobufDataLoader{dh: PBDB_GameItemMgr}) -} diff --git a/code/db_gamematchlevel.go b/code/db_gamematchlevel.go deleted file mode 100644 index 7dcd47c..0000000 --- a/code/db_gamematchlevel.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_GameMatchLevelMgr = &DB_GameMatchLevelMgr{pool: make(map[int32]*server.DB_GameMatchLevel), Datas: &server.DB_GameMatchLevelArray{}} - -type DB_GameMatchLevelMgr struct { - Datas *server.DB_GameMatchLevelArray - pool map[int32]*server.DB_GameMatchLevel -} - -func (this *DB_GameMatchLevelMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_GameMatchLevelMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_GameMatchLevelArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_GameMatchLevelMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_GameMatchLevelMgr) GetData(id int32) *server.DB_GameMatchLevel { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_GameMatchLevel.dat", &ProtobufDataLoader{dh: PBDB_GameMatchLevelMgr}) -} diff --git a/code/db_gamerule.go b/code/db_gamerule.go deleted file mode 100644 index 527ceb7..0000000 --- a/code/db_gamerule.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_GameRuleMgr = &DB_GameRuleMgr{pool: make(map[int32]*server.DB_GameRule), Datas: &server.DB_GameRuleArray{}} - -type DB_GameRuleMgr struct { - Datas *server.DB_GameRuleArray - pool map[int32]*server.DB_GameRule -} - -func (this *DB_GameRuleMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_GameRuleMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_GameRuleArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_GameRuleMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_GameRuleMgr) GetData(id int32) *server.DB_GameRule { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_GameRule.dat", &ProtobufDataLoader{dh: PBDB_GameRuleMgr}) -} diff --git a/code/db_gamesubsidy.go b/code/db_gamesubsidy.go deleted file mode 100644 index feebfb3..0000000 --- a/code/db_gamesubsidy.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_GameSubsidyMgr = &DB_GameSubsidyMgr{pool: make(map[int32]*server.DB_GameSubsidy), Datas: &server.DB_GameSubsidyArray{}} - -type DB_GameSubsidyMgr struct { - Datas *server.DB_GameSubsidyArray - pool map[int32]*server.DB_GameSubsidy -} - -func (this *DB_GameSubsidyMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_GameSubsidyMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_GameSubsidyArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_GameSubsidyMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_GameSubsidyMgr) GetData(id int32) *server.DB_GameSubsidy { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_GameSubsidy.dat", &ProtobufDataLoader{dh: PBDB_GameSubsidyMgr}) -} diff --git a/code/db_gammatchlv.go b/code/db_gammatchlv.go deleted file mode 100644 index 96022db..0000000 --- a/code/db_gammatchlv.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_GamMatchLVMgr = &DB_GamMatchLVMgr{pool: make(map[int32]*server.DB_GamMatchLV), Datas: &server.DB_GamMatchLVArray{}} - -type DB_GamMatchLVMgr struct { - Datas *server.DB_GamMatchLVArray - pool map[int32]*server.DB_GamMatchLV -} - -func (this *DB_GamMatchLVMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_GamMatchLVMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_GamMatchLVArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_GamMatchLVMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_GamMatchLVMgr) GetData(id int32) *server.DB_GamMatchLV { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_GamMatchLV.dat", &ProtobufDataLoader{dh: PBDB_GamMatchLVMgr}) -} diff --git a/code/db_giftbox.go b/code/db_giftbox.go deleted file mode 100644 index e8a4058..0000000 --- a/code/db_giftbox.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_GiftBoxMgr = &DB_GiftBoxMgr{pool: make(map[int32]*server.DB_GiftBox), Datas: &server.DB_GiftBoxArray{}} - -type DB_GiftBoxMgr struct { - Datas *server.DB_GiftBoxArray - pool map[int32]*server.DB_GiftBox -} - -func (this *DB_GiftBoxMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_GiftBoxMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_GiftBoxArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_GiftBoxMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_GiftBoxMgr) GetData(id int32) *server.DB_GiftBox { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_GiftBox.dat", &ProtobufDataLoader{dh: PBDB_GiftBoxMgr}) -} diff --git a/code/db_iceageelementrate.go b/code/db_iceageelementrate.go deleted file mode 100644 index 39f9857..0000000 --- a/code/db_iceageelementrate.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_IceAgeElementRateMgr = &DB_IceAgeElementRateMgr{pool: make(map[int32]*server.DB_IceAgeElementRate), Datas: &server.DB_IceAgeElementRateArray{}} - -type DB_IceAgeElementRateMgr struct { - Datas *server.DB_IceAgeElementRateArray - pool map[int32]*server.DB_IceAgeElementRate -} - -func (this *DB_IceAgeElementRateMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_IceAgeElementRateMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_IceAgeElementRateArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_IceAgeElementRateMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_IceAgeElementRateMgr) GetData(id int32) *server.DB_IceAgeElementRate { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_IceAgeElementRate.dat", &ProtobufDataLoader{dh: PBDB_IceAgeElementRateMgr}) -} diff --git a/code/db_legend_odds.go b/code/db_legend_odds.go deleted file mode 100644 index ddfc28d..0000000 --- a/code/db_legend_odds.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_Legend_OddsMgr = &DB_Legend_OddsMgr{pool: make(map[int32]*server.DB_Legend_Odds), Datas: &server.DB_Legend_OddsArray{}} - -type DB_Legend_OddsMgr struct { - Datas *server.DB_Legend_OddsArray - pool map[int32]*server.DB_Legend_Odds -} - -func (this *DB_Legend_OddsMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_Legend_OddsMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_Legend_OddsArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_Legend_OddsMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_Legend_OddsMgr) GetData(id int32) *server.DB_Legend_Odds { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Legend_Odds.dat", &ProtobufDataLoader{dh: PBDB_Legend_OddsMgr}) -} diff --git a/code/db_legend_turnrate.go b/code/db_legend_turnrate.go deleted file mode 100644 index 0edb83c..0000000 --- a/code/db_legend_turnrate.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_Legend_TurnRateMgr = &DB_Legend_TurnRateMgr{pool: make(map[int32]*server.DB_Legend_TurnRate), Datas: &server.DB_Legend_TurnRateArray{}} - -type DB_Legend_TurnRateMgr struct { - Datas *server.DB_Legend_TurnRateArray - pool map[int32]*server.DB_Legend_TurnRate -} - -func (this *DB_Legend_TurnRateMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_Legend_TurnRateMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_Legend_TurnRateArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_Legend_TurnRateMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_Legend_TurnRateMgr) GetData(id int32) *server.DB_Legend_TurnRate { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Legend_TurnRate.dat", &ProtobufDataLoader{dh: PBDB_Legend_TurnRateMgr}) -} diff --git a/code/db_legend_weight.go b/code/db_legend_weight.go deleted file mode 100644 index 7494af4..0000000 --- a/code/db_legend_weight.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_Legend_WeightMgr = &DB_Legend_WeightMgr{pool: make(map[int32]*server.DB_Legend_Weight), Datas: &server.DB_Legend_WeightArray{}} - -type DB_Legend_WeightMgr struct { - Datas *server.DB_Legend_WeightArray - pool map[int32]*server.DB_Legend_Weight -} - -func (this *DB_Legend_WeightMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_Legend_WeightMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_Legend_WeightArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_Legend_WeightMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_Legend_WeightMgr) GetData(id int32) *server.DB_Legend_Weight { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Legend_Weight.dat", &ProtobufDataLoader{dh: PBDB_Legend_WeightMgr}) -} diff --git a/code/db_legend_weightcondition.go b/code/db_legend_weightcondition.go deleted file mode 100644 index a76a689..0000000 --- a/code/db_legend_weightcondition.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_Legend_WeightConditionMgr = &DB_Legend_WeightConditionMgr{pool: make(map[int32]*server.DB_Legend_WeightCondition), Datas: &server.DB_Legend_WeightConditionArray{}} - -type DB_Legend_WeightConditionMgr struct { - Datas *server.DB_Legend_WeightConditionArray - pool map[int32]*server.DB_Legend_WeightCondition -} - -func (this *DB_Legend_WeightConditionMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_Legend_WeightConditionMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_Legend_WeightConditionArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_Legend_WeightConditionMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_Legend_WeightConditionMgr) GetData(id int32) *server.DB_Legend_WeightCondition { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Legend_WeightCondition.dat", &ProtobufDataLoader{dh: PBDB_Legend_WeightConditionMgr}) -} diff --git a/code/db_matchrank.go b/code/db_matchrank.go deleted file mode 100644 index a726e52..0000000 --- a/code/db_matchrank.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_MatchRankMgr = &DB_MatchRankMgr{pool: make(map[int32]*server.DB_MatchRank), Datas: &server.DB_MatchRankArray{}} - -type DB_MatchRankMgr struct { - Datas *server.DB_MatchRankArray - pool map[int32]*server.DB_MatchRank -} - -func (this *DB_MatchRankMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_MatchRankMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_MatchRankArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_MatchRankMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_MatchRankMgr) GetData(id int32) *server.DB_MatchRank { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_MatchRank.dat", &ProtobufDataLoader{dh: PBDB_MatchRankMgr}) -} diff --git a/code/db_name.go b/code/db_name.go deleted file mode 100644 index 9925fd6..0000000 --- a/code/db_name.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_NameMgr = &DB_NameMgr{pool: make(map[int32]*server.DB_Name), Datas: &server.DB_NameArray{}} - -type DB_NameMgr struct { - Datas *server.DB_NameArray - pool map[int32]*server.DB_Name -} - -func (this *DB_NameMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_NameMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_NameArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_NameMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_NameMgr) GetData(id int32) *server.DB_Name { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Name.dat", &ProtobufDataLoader{dh: PBDB_NameMgr}) -} diff --git a/code/db_nameboy.go b/code/db_nameboy.go deleted file mode 100644 index 3fc6ae5..0000000 --- a/code/db_nameboy.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_NameBoyMgr = &DB_NameBoyMgr{pool: make(map[int32]*server.DB_NameBoy), Datas: &server.DB_NameBoyArray{}} - -type DB_NameBoyMgr struct { - Datas *server.DB_NameBoyArray - pool map[int32]*server.DB_NameBoy -} - -func (this *DB_NameBoyMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_NameBoyMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_NameBoyArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_NameBoyMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_NameBoyMgr) GetData(id int32) *server.DB_NameBoy { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_NameBoy.dat", &ProtobufDataLoader{dh: PBDB_NameBoyMgr}) -} diff --git a/code/db_namegirl.go b/code/db_namegirl.go deleted file mode 100644 index 1753101..0000000 --- a/code/db_namegirl.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_NameGirlMgr = &DB_NameGirlMgr{pool: make(map[int32]*server.DB_NameGirl), Datas: &server.DB_NameGirlArray{}} - -type DB_NameGirlMgr struct { - Datas *server.DB_NameGirlArray - pool map[int32]*server.DB_NameGirl -} - -func (this *DB_NameGirlMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_NameGirlMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_NameGirlArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_NameGirlMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_NameGirlMgr) GetData(id int32) *server.DB_NameGirl { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_NameGirl.dat", &ProtobufDataLoader{dh: PBDB_NameGirlMgr}) -} diff --git a/code/db_newplayer.go b/code/db_newplayer.go deleted file mode 100644 index 6ec415a..0000000 --- a/code/db_newplayer.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_NewPlayerMgr = &DB_NewPlayerMgr{pool: make(map[int32]*server.DB_NewPlayer), Datas: &server.DB_NewPlayerArray{}} - -type DB_NewPlayerMgr struct { - Datas *server.DB_NewPlayerArray - pool map[int32]*server.DB_NewPlayer -} - -func (this *DB_NewPlayerMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_NewPlayerMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_NewPlayerArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_NewPlayerMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_NewPlayerMgr) GetData(id int32) *server.DB_NewPlayer { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_NewPlayer.dat", &ProtobufDataLoader{dh: PBDB_NewPlayerMgr}) -} diff --git a/code/db_phonelottery.go b/code/db_phonelottery.go deleted file mode 100644 index 97b6ae9..0000000 --- a/code/db_phonelottery.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_PhoneLotteryMgr = &DB_PhoneLotteryMgr{pool: make(map[int32]*server.DB_PhoneLottery), Datas: &server.DB_PhoneLotteryArray{}} - -type DB_PhoneLotteryMgr struct { - Datas *server.DB_PhoneLotteryArray - pool map[int32]*server.DB_PhoneLottery -} - -func (this *DB_PhoneLotteryMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_PhoneLotteryMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_PhoneLotteryArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_PhoneLotteryMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_PhoneLotteryMgr) GetData(id int32) *server.DB_PhoneLottery { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_PhoneLottery.dat", &ProtobufDataLoader{dh: PBDB_PhoneLotteryMgr}) -} diff --git a/code/db_playerexp.go b/code/db_playerexp.go deleted file mode 100644 index 5c195a4..0000000 --- a/code/db_playerexp.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_PlayerExpMgr = &DB_PlayerExpMgr{pool: make(map[int32]*server.DB_PlayerExp), Datas: &server.DB_PlayerExpArray{}} - -type DB_PlayerExpMgr struct { - Datas *server.DB_PlayerExpArray - pool map[int32]*server.DB_PlayerExp -} - -func (this *DB_PlayerExpMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_PlayerExpMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_PlayerExpArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_PlayerExpMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_PlayerExpMgr) GetData(id int32) *server.DB_PlayerExp { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_PlayerExp.dat", &ProtobufDataLoader{dh: PBDB_PlayerExpMgr}) -} diff --git a/code/db_playerinfo.go b/code/db_playerinfo.go deleted file mode 100644 index 7dda9cd..0000000 --- a/code/db_playerinfo.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_PlayerInfoMgr = &DB_PlayerInfoMgr{pool: make(map[int32]*server.DB_PlayerInfo), Datas: &server.DB_PlayerInfoArray{}} - -type DB_PlayerInfoMgr struct { - Datas *server.DB_PlayerInfoArray - pool map[int32]*server.DB_PlayerInfo -} - -func (this *DB_PlayerInfoMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_PlayerInfoMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_PlayerInfoArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_PlayerInfoMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_PlayerInfoMgr) GetData(id int32) *server.DB_PlayerInfo { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_PlayerInfo.dat", &ProtobufDataLoader{dh: PBDB_PlayerInfoMgr}) -} diff --git a/code/db_playertype.go b/code/db_playertype.go deleted file mode 100644 index d44472c..0000000 --- a/code/db_playertype.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_PlayerTypeMgr = &DB_PlayerTypeMgr{pool: make(map[int32]*server.DB_PlayerType), Datas: &server.DB_PlayerTypeArray{}} - -type DB_PlayerTypeMgr struct { - Datas *server.DB_PlayerTypeArray - pool map[int32]*server.DB_PlayerType -} - -func (this *DB_PlayerTypeMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_PlayerTypeMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_PlayerTypeArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_PlayerTypeMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_PlayerTypeMgr) GetData(id int32) *server.DB_PlayerType { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_PlayerType.dat", &ProtobufDataLoader{dh: PBDB_PlayerTypeMgr}) -} diff --git a/code/db_potodd.go b/code/db_potodd.go deleted file mode 100644 index fa6c998..0000000 --- a/code/db_potodd.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_PotOddMgr = &DB_PotOddMgr{pool: make(map[int32]*server.DB_PotOdd), Datas: &server.DB_PotOddArray{}} - -type DB_PotOddMgr struct { - Datas *server.DB_PotOddArray - pool map[int32]*server.DB_PotOdd -} - -func (this *DB_PotOddMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_PotOddMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_PotOddArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_PotOddMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_PotOddMgr) GetData(id int32) *server.DB_PotOdd { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_PotOdd.dat", &ProtobufDataLoader{dh: PBDB_PotOddMgr}) -} diff --git a/code/db_rankcycle.go b/code/db_rankcycle.go deleted file mode 100644 index 0d88d8e..0000000 --- a/code/db_rankcycle.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_RankCycleMgr = &DB_RankCycleMgr{pool: make(map[int32]*server.DB_RankCycle), Datas: &server.DB_RankCycleArray{}} - -type DB_RankCycleMgr struct { - Datas *server.DB_RankCycleArray - pool map[int32]*server.DB_RankCycle -} - -func (this *DB_RankCycleMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_RankCycleMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_RankCycleArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_RankCycleMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_RankCycleMgr) GetData(id int32) *server.DB_RankCycle { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_RankCycle.dat", &ProtobufDataLoader{dh: PBDB_RankCycleMgr}) -} diff --git a/code/db_ranklevel.go b/code/db_ranklevel.go deleted file mode 100644 index 05da778..0000000 --- a/code/db_ranklevel.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_RankLevelMgr = &DB_RankLevelMgr{pool: make(map[int32]*server.DB_RankLevel), Datas: &server.DB_RankLevelArray{}} - -type DB_RankLevelMgr struct { - Datas *server.DB_RankLevelArray - pool map[int32]*server.DB_RankLevel -} - -func (this *DB_RankLevelMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_RankLevelMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_RankLevelArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_RankLevelMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_RankLevelMgr) GetData(id int32) *server.DB_RankLevel { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_RankLevel.dat", &ProtobufDataLoader{dh: PBDB_RankLevelMgr}) -} diff --git a/code/db_rankreward.go b/code/db_rankreward.go deleted file mode 100644 index 72a2de2..0000000 --- a/code/db_rankreward.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_RankRewardMgr = &DB_RankRewardMgr{pool: make(map[int32]*server.DB_RankReward), Datas: &server.DB_RankRewardArray{}} - -type DB_RankRewardMgr struct { - Datas *server.DB_RankRewardArray - pool map[int32]*server.DB_RankReward -} - -func (this *DB_RankRewardMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_RankRewardMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_RankRewardArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_RankRewardMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_RankRewardMgr) GetData(id int32) *server.DB_RankReward { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_RankReward.dat", &ProtobufDataLoader{dh: PBDB_RankRewardMgr}) -} diff --git a/code/db_sensitive_words.go b/code/db_sensitive_words.go deleted file mode 100644 index 5d208c3..0000000 --- a/code/db_sensitive_words.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_Sensitive_WordsMgr = &DB_Sensitive_WordsMgr{pool: make(map[int32]*server.DB_Sensitive_Words), Datas: &server.DB_Sensitive_WordsArray{}} - -type DB_Sensitive_WordsMgr struct { - Datas *server.DB_Sensitive_WordsArray - pool map[int32]*server.DB_Sensitive_Words -} - -func (this *DB_Sensitive_WordsMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_Sensitive_WordsMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_Sensitive_WordsArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_Sensitive_WordsMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_Sensitive_WordsMgr) GetData(id int32) *server.DB_Sensitive_Words { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Sensitive_Words.dat", &ProtobufDataLoader{dh: PBDB_Sensitive_WordsMgr}) -} diff --git a/code/db_slotrateweight.go b/code/db_slotrateweight.go deleted file mode 100644 index a140656..0000000 --- a/code/db_slotrateweight.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_SlotRateWeightMgr = &DB_SlotRateWeightMgr{pool: make(map[int32]*server.DB_SlotRateWeight), Datas: &server.DB_SlotRateWeightArray{}} - -type DB_SlotRateWeightMgr struct { - Datas *server.DB_SlotRateWeightArray - pool map[int32]*server.DB_SlotRateWeight -} - -func (this *DB_SlotRateWeightMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_SlotRateWeightMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_SlotRateWeightArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_SlotRateWeightMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_SlotRateWeightMgr) GetData(id int32) *server.DB_SlotRateWeight { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_SlotRateWeight.dat", &ProtobufDataLoader{dh: PBDB_SlotRateWeightMgr}) -} diff --git a/code/db_systemchance.go b/code/db_systemchance.go deleted file mode 100644 index f031bc7..0000000 --- a/code/db_systemchance.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_SystemChanceMgr = &DB_SystemChanceMgr{pool: make(map[int32]*server.DB_SystemChance), Datas: &server.DB_SystemChanceArray{}} - -type DB_SystemChanceMgr struct { - Datas *server.DB_SystemChanceArray - pool map[int32]*server.DB_SystemChance -} - -func (this *DB_SystemChanceMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_SystemChanceMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_SystemChanceArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_SystemChanceMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_SystemChanceMgr) GetData(id int32) *server.DB_SystemChance { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_SystemChance.dat", &ProtobufDataLoader{dh: PBDB_SystemChanceMgr}) -} diff --git a/code/db_task.go b/code/db_task.go deleted file mode 100644 index 1dd89ce..0000000 --- a/code/db_task.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_TaskMgr = &DB_TaskMgr{pool: make(map[int32]*server.DB_Task), Datas: &server.DB_TaskArray{}} - -type DB_TaskMgr struct { - Datas *server.DB_TaskArray - pool map[int32]*server.DB_Task -} - -func (this *DB_TaskMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_TaskMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_TaskArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_TaskMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_TaskMgr) GetData(id int32) *server.DB_Task { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Task.dat", &ProtobufDataLoader{dh: PBDB_TaskMgr}) -} diff --git a/code/db_thirdplatformgamemapping.go b/code/db_thirdplatformgamemapping.go deleted file mode 100644 index fe515d5..0000000 --- a/code/db_thirdplatformgamemapping.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_ThirdPlatformGameMappingMgr = &DB_ThirdPlatformGameMappingMgr{pool: make(map[int32]*server.DB_ThirdPlatformGameMapping), Datas: &server.DB_ThirdPlatformGameMappingArray{}} - -type DB_ThirdPlatformGameMappingMgr struct { - Datas *server.DB_ThirdPlatformGameMappingArray - pool map[int32]*server.DB_ThirdPlatformGameMapping -} - -func (this *DB_ThirdPlatformGameMappingMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_ThirdPlatformGameMappingMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_ThirdPlatformGameMappingArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_ThirdPlatformGameMappingMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_ThirdPlatformGameMappingMgr) GetData(id int32) *server.DB_ThirdPlatformGameMapping { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_ThirdPlatformGameMapping.dat", &ProtobufDataLoader{dh: PBDB_ThirdPlatformGameMappingMgr}) -} diff --git a/code/db_tips.go b/code/db_tips.go deleted file mode 100644 index 0f4d248..0000000 --- a/code/db_tips.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_TipsMgr = &DB_TipsMgr{pool: make(map[int32]*server.DB_Tips), Datas: &server.DB_TipsArray{}} - -type DB_TipsMgr struct { - Datas *server.DB_TipsArray - pool map[int32]*server.DB_Tips -} - -func (this *DB_TipsMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_TipsMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_TipsArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_TipsMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_TipsMgr) GetData(id int32) *server.DB_Tips { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_Tips.dat", &ProtobufDataLoader{dh: PBDB_TipsMgr}) -} diff --git a/code/db_vip.go b/code/db_vip.go deleted file mode 100644 index 3da9c92..0000000 --- a/code/db_vip.go +++ /dev/null @@ -1,69 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PBDB_VIPMgr = &DB_VIPMgr{pool: make(map[int32]*server.DB_VIP), Datas: &server.DB_VIPArray{}} - -type DB_VIPMgr struct { - Datas *server.DB_VIPArray - pool map[int32]*server.DB_VIP -} - -func (this *DB_VIPMgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *DB_VIPMgr) reunmarshal(data []byte) error { - newDatas := &server.DB_VIPArray{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *DB_VIPMgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *DB_VIPMgr) GetData(id int32) *server.DB_VIP { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("DB_VIP.dat", &ProtobufDataLoader{dh: PBDB_VIPMgr}) -} diff --git a/data/DB_Task.dat b/data/DB_Task.dat index 6e94736..62536b2 100644 Binary files a/data/DB_Task.dat and b/data/DB_Task.dat differ diff --git a/data/README.md b/data/README.md new file mode 100644 index 0000000..0e542dc --- /dev/null +++ b/data/README.md @@ -0,0 +1,93 @@ +# data + + + +## Getting started + +To make it easy for you to get started with GitLab, here's a list of recommended next steps. + +Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! + +## Add your files + +- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files +- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: + +``` +cd existing_repo +git remote add origin https://git.pogorockgames.com/mango-games/server/data.git +git branch -M main +git push -uf origin main +``` + +## Integrate with your tools + +- [ ] [Set up project integrations](https://git.pogorockgames.com/mango-games/server/data/-/settings/integrations) + +## Collaborate with your team + +- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) +- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) +- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) +- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) +- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) + +## Test and Deploy + +Use the built-in continuous integration in GitLab. + +- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) +- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) +- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) +- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) +- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) + +*** + +# Editing this README + +When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template. + +## Suggestions for a good README + +Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. + +## Name +Choose a self-explaining name for your project. + +## Description +Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. + +## Badges +On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. + +## Visuals +Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. + +## Installation +Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. + +## Usage +Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. + +## Support +Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. + +## Roadmap +If you have ideas for releases in the future, it is a good idea to list them in the README. + +## Contributing +State if you are open to contributions and what your requirements are for accepting them. + +For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. + +You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. + +## Authors and acknowledgment +Show your appreciation to those who have contributed to the project. + +## License +For open source projects, say how it is licensed. + +## Project status +If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. diff --git a/data/activity/activity_51game.json b/data/activity/activity_51game.json new file mode 100644 index 0000000..270de94 --- /dev/null +++ b/data/activity/activity_51game.json @@ -0,0 +1,16 @@ +{ + "Id":5, + "Name":"51活动", + "Desc":"对局领福袋", + "StartTime":"2018-04-20 00:00:00", + "EndTime":"2018-05-02 23:59:59", + "TaskIds":[], + "IsDelTaskWhenEnd":true, + "IsDelActIdWhenEnd":true, + "Data":[ + {"Name":"PerDayLimit", "IntVal":3 }, + {"Name":"CostTimes", "IntArr":[5,3] }, + {"Name":"Prize1", "IntArr":[1,1500,60,1,2000,20,1,3000,10,4,100,6,4,200,3,4,500,1] }, + {"Name":"Prize2", "IntArr":[1,200,40,1,300,25,1,500,15,1,800,10,1,1000,5,4,100,5] } + ] +} \ No newline at end of file diff --git a/data/activity/activity_guess.json b/data/activity/activity_guess.json new file mode 100644 index 0000000..bede4ae --- /dev/null +++ b/data/activity/activity_guess.json @@ -0,0 +1,20 @@ +{ + "Id":3, + "Name":"元宵猜灯谜", + "Desc":"元宵猜灯谜", + "StartTime":"2018-03-02 00:00:00", + "EndTime":"2018-03-02 23:59:59", + "TaskIds":[], + "IsDelTaskWhenEnd":true, + "IsDelActIdWhenEnd":true, + "Data":[ + {"Name":"Count", "IntVal":6 }, + {"Name":"Prize", "IntArr":[1,2000,50,1,3000,30,3,20,15,3,50,5] }, + {"Name":"1", "StrArr":["2018-03-02 00:00:00","1","弟兄五六个,围着圆柱坐,大家一分手,衣服都扯破。","A:花生","B:大蒜","C:向日葵","D:糖葫芦"] }, + {"Name":"2", "StrArr":["2018-03-02 04:00:00","2","红公鸡,绿尾巴,身体钻到地底下,又甜又脆营养大。","A:番茄","B:红薯","C:红萝卜","D:花生"] }, + {"Name":"3", "StrArr":["2018-03-02 08:00:00","3","纸老虎(打一成语)","A:狐假虎威","B:狗仗人势","C:仗势欺人","D:外强中干"] }, + {"Name":"4", "StrArr":["2018-03-02 12:00:00","0","笑死人(打一成语)","A:乐极生悲","B:笑里藏刀","C:哭笑不得","D:强颜欢笑"] }, + {"Name":"5", "StrArr":["2018-03-02 16:00:00","3","兔子请老虎(打一成语)","A:狐假虎威","B:为虎作伥","C:与虎谋皮","D:寅吃卯粮"] }, + {"Name":"6", "StrArr":["2018-03-02 20:00:00","1", "白又方,嫩又香,能做菜,能煮汤,豆子是它爹和妈,它和爹妈不一样。","A:土豆","B:豆腐","C:大米","D:萝卜"] } + ] +} \ No newline at end of file diff --git a/data/activity/activity_invite.json b/data/activity/activity_invite.json new file mode 100644 index 0000000..e60e5aa --- /dev/null +++ b/data/activity/activity_invite.json @@ -0,0 +1,11 @@ +{ + "Id":4, + "Name":"邀请新人", + "Desc":"邀请新人", + "StartTime":"2018-03-23 00:00:00", + "EndTime":"2018-05-31 23:59:59", + "TaskIds":[], + "IsDelTaskWhenEnd":true, + "IsDelActIdWhenEnd":true, + "Data":[] +} \ No newline at end of file diff --git a/data/activity/activity_new_reg.json b/data/activity/activity_new_reg.json new file mode 100644 index 0000000..15c40a0 --- /dev/null +++ b/data/activity/activity_new_reg.json @@ -0,0 +1,14 @@ +{ + "Id":1, + "Name":"新人注册领红包", + "Desc":"新人注册领红包", + "StartTime":"2018-02-05 12:00:00", + "EndTime":"2020-05-30 12:00:00", + "TaskIds":[1,2,3,4,5,6,7,8,9,10], + "IsDelTaskWhenEnd":false, + "IsDelActIdWhenEnd":false, + "Data":[ + {"Name":"MaxNum", "IntVal":2000 }, + {"Name":"AcceptRate", "IntArr":[1001,100,2001,20] } + ] +} \ No newline at end of file diff --git a/data/activity/activity_rebate.json b/data/activity/activity_rebate.json new file mode 100644 index 0000000..eb82bfc --- /dev/null +++ b/data/activity/activity_rebate.json @@ -0,0 +1,11 @@ +{ + "Id":6, + "Name":"投资返利", + "Desc":"投资返利", + "StartTime":"2018-04-20 00:00:00", + "EndTime":"2025-05-02 23:59:59", + "TaskIds":[], + "IsDelTaskWhenEnd":true, + "IsDelActIdWhenEnd":true, + "Data":[] +} \ No newline at end of file diff --git a/data/activity/activity_reply_word.json b/data/activity/activity_reply_word.json new file mode 100644 index 0000000..6abd634 --- /dev/null +++ b/data/activity/activity_reply_word.json @@ -0,0 +1,21 @@ +{ + "Id":2, + "Name":"对暗号拿红包", + "Desc":"对暗号拿红包", + "StartTime":"2018-02-16 00:00:00", + "EndTime":"2018-02-23 00:00:00", + "TaskIds":[], + "IsDelTaskWhenEnd":false, + "IsDelActIdWhenEnd":false, + "Data":[ + {"Name":"Count", "IntVal":7 }, + {"Name":"UnOpenTip", "StrVal":"0" }, + {"Name":"1", "StrVal":"2018-02-16 19:00:00|1" }, + {"Name":"2", "StrVal":"2018-02-17 19:00:00|2" }, + {"Name":"3", "StrVal":"2018-02-18 19:00:00|3" }, + {"Name":"4", "StrVal":"2018-02-19 19:00:00|4" }, + {"Name":"5", "StrVal":"2018-02-20 19:00:00|5" }, + {"Name":"6", "StrVal":"2018-02-21 19:00:00|6" }, + {"Name":"7", "StrVal":"2018-02-22 19:00:00|7" } + ] +} \ No newline at end of file diff --git a/data/botai/dvtfollowwin.json b/data/botai/dvtfollowwin.json new file mode 100644 index 0000000..a75f1df --- /dev/null +++ b/data/botai/dvtfollowwin.json @@ -0,0 +1,1173 @@ +{ + "version": "0.3.0", + "scope": "tree", + "id": "37bd2b7b-fa98-4e95-9574-d1f14a8c3422", + "title": "DVTFollowWinBot", + "description": "龙虎跟注", + "root": "e1363bca-78ca-4923-995e-074cdcb803cf", + "properties": {}, + "nodes": { + "d1b6d256-4b76-441b-a455-bdf592c0a722": { + "id": "d1b6d256-4b76-441b-a455-bdf592c0a722", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 324, + "y": -108 + }, + "children": [ + "3cecf744-3e4b-4ca1-85b0-323aaa576314", + "2a567791-009a-43ac-842b-3ebf763ecd20", + "2a8386b7-8dfe-4057-84cc-d55f7b027611", + "910076bb-4d07-471e-8280-a55a802ba13f", + "09d39c93-a081-4fe1-8ec3-389a1c5f9617", + "273444a5-6648-42c2-868b-a6a5d869fc9e" + ] + }, + "8ad1b951-ff76-4a7d-81f5-e934737d3842": { + "id": "8ad1b951-ff76-4a7d-81f5-e934737d3842", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "betSrcCoin", + "min": 2, + "max": 6 + }, + "display": { + "x": 324, + "y": -480 + } + }, + "da6163be-5079-428a-aa43-2c5e53d840a7": { + "id": "da6163be-5079-428a-aa43-2c5e53d840a7", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 600, + "maxTime": 1200 + }, + "display": { + "x": 1044, + "y": 204 + } + }, + "df0cd7eb-848f-49e0-87b6-d0ba50c282f1": { + "id": "df0cd7eb-848f-49e0-87b6-d0ba50c282f1", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 24, + "y": 1044 + }, + "children": [ + "094558c6-747d-48d0-8846-3e648f1b58b6", + "c19613b3-0961-4c38-8680-c1e4a88df0b8", + "feac41f1-9450-431c-8bea-30fee992e269", + "7083a59f-1953-421e-9356-6b636a4ddc57" + ] + }, + "95dc5d8f-69a4-4b0d-b22e-0bab989c82f8": { + "id": "95dc5d8f-69a4-4b0d-b22e-0bab989c82f8", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "saveLimit", + "cmp": 0 + }, + "display": { + "x": 912, + "y": 948 + } + }, + "ec1cdd41-d944-4d3f-8918-c5971e8dc21c": { + "id": "ec1cdd41-d944-4d3f-8918-c5971e8dc21c", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "saveLimit" + }, + "display": { + "x": 900, + "y": 876 + } + }, + "feac41f1-9450-431c-8bea-30fee992e269": { + "id": "feac41f1-9450-431c-8bea-30fee992e269", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 500, + "maxTime": 3500 + }, + "display": { + "x": 252, + "y": 1200 + } + }, + "7083a59f-1953-421e-9356-6b636a4ddc57": { + "id": "7083a59f-1953-421e-9356-6b636a4ddc57", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {}, + "display": { + "x": 216, + "y": 1344 + } + }, + "593b4c1a-5cd1-4782-8cbb-faedf41e4464": { + "id": "593b4c1a-5cd1-4782-8cbb-faedf41e4464", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "maxGameNum", + "cmp": 4 + }, + "display": { + "x": 960, + "y": 1128 + } + }, + "4c83ed6e-f99f-4be7-953e-f5ff06a2f9f5": { + "id": "4c83ed6e-f99f-4be7-953e-f5ff06a2f9f5", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "maxGameNum", + "min": 5, + "max": 30 + }, + "display": { + "x": 936, + "y": 1044 + } + }, + "521239f8-2829-471e-ab43-e0a98d77aab7": { + "id": "521239f8-2829-471e-ab43-e0a98d77aab7", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "生成初始押注额度", + "properties": {}, + "display": { + "x": 12, + "y": -456 + }, + "children": [ + "c764dcd1-7d5e-4e39-a068-8c309dff1484", + "7a8a52d3-1a69-4df7-8de2-a4d71afae499", + "ece5c421-9448-453e-99b6-460323cbed9b", + "8ad1b951-ff76-4a7d-81f5-e934737d3842", + "b3ffd6fa-1fd7-4640-812d-d1c6d55f6224", + "b9b8737c-ece2-4e1a-8af6-542dc08d5b59", + "6bc3ed88-f412-49c3-8b32-70641b703747", + "9d30f3ac-f772-48fb-852e-1acdec9d474f" + ] + }, + "7a8a52d3-1a69-4df7-8de2-a4d71afae499": { + "id": "7a8a52d3-1a69-4df7-8de2-a4d71afae499", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "needStartBet", + "value": 0, + "cmp": 2 + }, + "display": { + "x": 300, + "y": -576 + } + }, + "ece5c421-9448-453e-99b6-460323cbed9b": { + "id": "ece5c421-9448-453e-99b6-460323cbed9b", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue": "@1" + }, + "display": { + "x": 324, + "y": -528 + } + }, + "09d39c93-a081-4fe1-8ec3-389a1c5f9617": { + "id": "09d39c93-a081-4fe1-8ec3-389a1c5f9617", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "betCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "needStartBet" + }, + "display": { + "x": 816, + "y": -36 + } + }, + "273444a5-6648-42c2-868b-a6a5d869fc9e": { + "id": "273444a5-6648-42c2-868b-a6a5d869fc9e", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue1": "needStartBet", + "gIPValue2": "@2" + }, + "display": { + "x": 804, + "y": 12 + } + }, + "6e65f94a-05f4-410f-be23-01ee2da43240": { + "id": "6e65f94a-05f4-410f-be23-01ee2da43240", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 192, + "y": 684 + }, + "children": [ + "5bfdcdcf-57e3-4a15-8f02-5403d8447550", + "8d131988-67e9-4d44-99d8-7d838f5a7410", + "83b27986-aa7b-40e1-87b6-46067b5fa504" + ] + }, + "8d131988-67e9-4d44-99d8-7d838f5a7410": { + "id": "8d131988-67e9-4d44-99d8-7d838f5a7410", + "name": "CheckPlayerLastWinOrLost", + "category": "condition", + "title": "CheckPlayerLastWinOrLost(,)", + "description": "检查玩家上次输赢情况\ngIPLResult 比较值 支持@\ncmp 比较", + "properties": { + "gIPLResult": "@1", + "cmp": 2 + }, + "display": { + "x": 480, + "y": 684 + } + }, + "83b27986-aa7b-40e1-87b6-46067b5fa504": { + "id": "83b27986-aa7b-40e1-87b6-46067b5fa504", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue": "@0" + }, + "display": { + "x": 468, + "y": 756 + } + }, + "b3ffd6fa-1fd7-4640-812d-d1c6d55f6224": { + "id": "b3ffd6fa-1fd7-4640-812d-d1c6d55f6224", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "playerCoin" + }, + "display": { + "x": 312, + "y": -432 + } + }, + "b9b8737c-ece2-4e1a-8af6-542dc08d5b59": { + "id": "b9b8737c-ece2-4e1a-8af6-542dc08d5b59", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "playerCoin" + }, + "display": { + "x": 384, + "y": -384 + } + }, + "6bc3ed88-f412-49c3-8b32-70641b703747": { + "id": "6bc3ed88-f412-49c3-8b32-70641b703747", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 360, + "y": -336 + } + }, + "c19613b3-0961-4c38-8680-c1e4a88df0b8": { + "id": "c19613b3-0961-4c38-8680-c1e4a88df0b8", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 336, + "y": 1056 + }, + "children": [ + "9986d0ac-48cd-4707-b24a-fdcb96f02a58", + "c95924ef-c6b1-480c-ab7b-aefbc84bd635", + "406d653d-e148-4722-aecf-ef77500ac21b", + "f08511cc-fa3c-4729-a434-69986d8db842" + ] + }, + "9986d0ac-48cd-4707-b24a-fdcb96f02a58": { + "id": "9986d0ac-48cd-4707-b24a-fdcb96f02a58", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 576, + "y": 972 + }, + "children": [ + "ec1cdd41-d944-4d3f-8918-c5971e8dc21c", + "95dc5d8f-69a4-4b0d-b22e-0bab989c82f8" + ] + }, + "c95924ef-c6b1-480c-ab7b-aefbc84bd635": { + "id": "c95924ef-c6b1-480c-ab7b-aefbc84bd635", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 576, + "y": 1128 + }, + "children": [ + "4c83ed6e-f99f-4be7-953e-f5ff06a2f9f5", + "593b4c1a-5cd1-4782-8cbb-faedf41e4464" + ] + }, + "2a567791-009a-43ac-842b-3ebf763ecd20": { + "id": "2a567791-009a-43ac-842b-3ebf763ecd20", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "sameNum", + "min": 2, + "max": 4 + }, + "display": { + "x": 768, + "y": -180 + } + }, + "455ac069-63e9-4f5c-97ff-a0800e3e813d": { + "id": "455ac069-63e9-4f5c-97ff-a0800e3e813d", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 768, + "y": 144 + }, + "children": [ + "ac131866-e93e-4df5-8b18-646af0ffa070", + "7bf79e28-4232-43f6-8002-4cedb5b72cd7", + "da6163be-5079-428a-aa43-2c5e53d840a7", + "ad2737f1-015c-42c1-88af-d34099656ad5" + ] + }, + "ad2737f1-015c-42c1-88af-d34099656ad5": { + "id": "ad2737f1-015c-42c1-88af-d34099656ad5", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 852, + "y": 288 + }, + "children": [ + "2710b442-af43-4350-baf9-eee1e00c2c67", + "3ef5c0b6-9106-42b8-99a2-30b4b16afeed" + ] + }, + "3ef5c0b6-9106-42b8-99a2-30b4b16afeed": { + "id": "3ef5c0b6-9106-42b8-99a2-30b4b16afeed", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betIsOk", + "gIPValue": "@1" + }, + "display": { + "x": 1056, + "y": 348 + } + }, + "7bf79e28-4232-43f6-8002-4cedb5b72cd7": { + "id": "7bf79e28-4232-43f6-8002-4cedb5b72cd7", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "betIsOk", + "value": 0, + "cmp": 2 + }, + "display": { + "x": 1032, + "y": 144 + } + }, + "c3807aad-a77d-4a6e-8941-aceb75e75f26": { + "id": "c3807aad-a77d-4a6e-8941-aceb75e75f26", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betIsOk", + "gIPValue": "@0" + }, + "display": { + "x": 372, + "y": 360 + } + }, + "f08511cc-fa3c-4729-a434-69986d8db842": { + "id": "f08511cc-fa3c-4729-a434-69986d8db842", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "betCoin", + "cmp": 0 + }, + "display": { + "x": 648, + "y": 1536 + } + }, + "cfb3bfdf-67e8-4bb9-9731-be379743e042": { + "id": "cfb3bfdf-67e8-4bb9-9731-be379743e042", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 132, + "y": 396 + }, + "children": [ + "c3807aad-a77d-4a6e-8941-aceb75e75f26", + "6d6f636d-a02a-42b5-9b4c-255c11352a68", + "43ad54ad-0bdc-4b6d-8ff5-f838f87d3bce" + ] + }, + "43ad54ad-0bdc-4b6d-8ff5-f838f87d3bce": { + "id": "43ad54ad-0bdc-4b6d-8ff5-f838f87d3bce", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 348, + "y": 504 + } + }, + "6728318e-fb51-4f59-8c60-72d0f3b8c8b1": { + "id": "6728318e-fb51-4f59-8c60-72d0f3b8c8b1", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 996, + "y": 420 + } + }, + "e1363bca-78ca-4923-995e-074cdcb803cf": { + "id": "e1363bca-78ca-4923-995e-074cdcb803cf", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": -312, + "y": 192 + }, + "children": [ + "521239f8-2829-471e-ab43-e0a98d77aab7", + "07529410-ecf9-4d54-ac6e-16982e4b0b25", + "6e65f94a-05f4-410f-be23-01ee2da43240", + "df0cd7eb-848f-49e0-87b6-d0ba50c282f1" + ] + }, + "07529410-ecf9-4d54-ac6e-16982e4b0b25": { + "id": "07529410-ecf9-4d54-ac6e-16982e4b0b25", + "name": "MemSequence", + "category": "composite", + "title": "MemSequence", + "description": "", + "properties": {}, + "display": { + "x": 0, + "y": 108 + }, + "children": [ + "d1b6d256-4b76-441b-a455-bdf592c0a722", + "752d8fae-ade7-4c2f-9d4e-ad066773b1bb", + "cfb3bfdf-67e8-4bb9-9731-be379743e042" + ] + }, + "752d8fae-ade7-4c2f-9d4e-ad066773b1bb": { + "id": "752d8fae-ade7-4c2f-9d4e-ad066773b1bb", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 516, + "y": 240 + }, + "children": [ + "6ffd1efe-4d56-44f8-87a4-e88201b51b48", + "6728318e-fb51-4f59-8c60-72d0f3b8c8b1" + ] + }, + "6ffd1efe-4d56-44f8-87a4-e88201b51b48": { + "id": "6ffd1efe-4d56-44f8-87a4-e88201b51b48", + "name": "Inverter", + "category": "decorator", + "title": "Inverter", + "description": "", + "properties": {}, + "display": { + "x": 636, + "y": 120 + }, + "child": "455ac069-63e9-4f5c-97ff-a0800e3e813d" + }, + "272ca19a-1e93-4de4-915f-f7142312b4bd": { + "id": "272ca19a-1e93-4de4-915f-f7142312b4bd", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "takeCoinDiv", + "min": 10, + "max": 30 + }, + "display": { + "x": 984, + "y": 1236 + } + }, + "406d653d-e148-4722-aecf-ef77500ac21b": { + "id": "406d653d-e148-4722-aecf-ef77500ac21b", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 576, + "y": 1272 + }, + "children": [ + "96e4f37b-302f-4fb9-809f-ef0e6d80f3b1", + "272ca19a-1e93-4de4-915f-f7142312b4bd", + "7156278f-75b4-45aa-89aa-e436899fe51b", + "4df6815d-1ff7-4395-8666-aca24a7213b4", + "02997ae9-a706-4e08-8947-e550200db1ca" + ] + }, + "7156278f-75b4-45aa-89aa-e436899fe51b": { + "id": "7156278f-75b4-45aa-89aa-e436899fe51b", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "takeCoin" + }, + "display": { + "x": 972, + "y": 1284 + } + }, + "02997ae9-a706-4e08-8947-e550200db1ca": { + "id": "02997ae9-a706-4e08-8947-e550200db1ca", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "takeCoin", + "cmp": 0 + }, + "display": { + "x": 960, + "y": 1476 + } + }, + "96e4f37b-302f-4fb9-809f-ef0e6d80f3b1": { + "id": "96e4f37b-302f-4fb9-809f-ef0e6d80f3b1", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "takeCoinDiv" + }, + "display": { + "x": 1020, + "y": 1188 + } + }, + "4df6815d-1ff7-4395-8666-aca24a7213b4": { + "id": "4df6815d-1ff7-4395-8666-aca24a7213b4", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 984, + "y": 1392 + } + }, + "c764dcd1-7d5e-4e39-a068-8c309dff1484": { + "id": "c764dcd1-7d5e-4e39-a068-8c309dff1484", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 276, + "y": -636 + } + }, + "9d30f3ac-f772-48fb-852e-1acdec9d474f": { + "id": "9d30f3ac-f772-48fb-852e-1acdec9d474f", + "name": "DVTCheckBetCoin", + "category": "action", + "title": "DVTCheckBetCoin(,)", + "description": "龙虎检查下注额度", + "properties": { + "gIPSrcCoin": "betSrcCoin", + "gINSaveCoin": "betSrcCoin" + }, + "display": { + "x": 372, + "y": -276 + } + }, + "3cecf744-3e4b-4ca1-85b0-323aaa576314": { + "id": "3cecf744-3e4b-4ca1-85b0-323aaa576314", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 744, + "y": -240 + } + }, + "2a8386b7-8dfe-4057-84cc-d55f7b027611": { + "id": "2a8386b7-8dfe-4057-84cc-d55f7b027611", + "name": "DVTHistoryIsSame", + "category": "condition", + "title": "DVTHistoryIsSame()", + "description": "判定是上几局都是相同的结果\ngIPNum 支持@", + "properties": { + "gIPNum": "sameNum" + }, + "display": { + "x": 768, + "y": -132 + } + }, + "910076bb-4d07-471e-8280-a55a802ba13f": { + "id": "910076bb-4d07-471e-8280-a55a802ba13f", + "name": "DVTLastWinArea", + "category": "action", + "title": "DVTLastWinArea()", + "description": "龙虎最后获胜的区域保存到黑板", + "properties": { + "gINKey": "betArea" + }, + "display": { + "x": 756, + "y": -84 + } + }, + "ac131866-e93e-4df5-8b18-646af0ffa070": { + "id": "ac131866-e93e-4df5-8b18-646af0ffa070", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 1020, + "y": 84 + } + }, + "6d6f636d-a02a-42b5-9b4c-255c11352a68": { + "id": "6d6f636d-a02a-42b5-9b4c-255c11352a68", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 360, + "y": 432 + } + }, + "2710b442-af43-4350-baf9-eee1e00c2c67": { + "id": "2710b442-af43-4350-baf9-eee1e00c2c67", + "name": "DVTBetCoin", + "category": "action", + "title": "DVTBetCoin(,)", + "description": "龙虎押注", + "properties": { + "gIPBetCoin": "betCoin", + "gIPArea": "betArea" + }, + "display": { + "x": 1068, + "y": 276 + } + }, + "5bfdcdcf-57e3-4a15-8f02-5403d8447550": { + "id": "5bfdcdcf-57e3-4a15-8f02-5403d8447550", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 4 + }, + "display": { + "x": 420, + "y": 612 + } + }, + "094558c6-747d-48d0-8846-3e648f1b58b6": { + "id": "094558c6-747d-48d0-8846-3e648f1b58b6", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 4 + }, + "display": { + "x": 240, + "y": 936 + } + } + }, + "display": { + "camera_x": 575.9850000012666, + "camera_y": -21.6749999972526, + "camera_z": 0.75, + "x": -456, + "y": 192 + }, + "custom_nodes": [ + { + "version": "0.3.0", + "scope": "node", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "key", + "min": 0, + "max": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 0, + "maxTime": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandomWeightComposite", + "category": "composite", + "title": "RandomWeightComposite()", + "description": "根据权重随机,选择一个子节点。\n权重使用|分割。\n需要注意子节点的顺序,个数需要和权重对应", + "properties": { + "weight": "\"\"" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckBool", + "category": "condition", + "title": "CheckBool()", + "description": "检查一个黑板的key值", + "properties": { + "keyName": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "key", + "value": 0, + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LogAction", + "category": "action", + "title": "LogAction(,)", + "description": "输出日志", + "properties": { + "info": "info", + "level": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetPct", + "category": "action", + "title": "RVBBetPct(,)", + "description": "红黑下注\ngIPpct 下注百分比,黑板key 支持@\ngIPArea 下注区域,黑板key 支持@", + "properties": { + "gIPpct": "key", + "gIPArea": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBLastWinArea", + "category": "action", + "title": "RVBLastWinArea()", + "description": "获得最后的下注结果保存到key,没有返回失败", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {} + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerLastWinOrLost", + "category": "condition", + "title": "CheckPlayerLastWinOrLost(,)", + "description": "检查玩家上次输赢情况\ngIPLResult 比较值 支持@\ncmp 比较", + "properties": { + "gIPLResult": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "key", + "gIPValue": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetCoin", + "category": "action", + "title": "RVBBetCoin(,)", + "description": "红黑押注\ngIPBetCoin 押注金额 支持@\ngIPArea 押注区域支持@", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBCheckBetCoin", + "category": "action", + "title": "RVBCheckBetCoin(,)", + "description": "修正押注金额,保存到黑板key\ngIPSrcCoin 押注金额支持@\ngINSaveCoin 保存后key", + "properties": { + "gIPSrcCoin": "key", + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBHistoryIsSame", + "category": "condition", + "title": "RVBHistoryIsSame()", + "description": "判定是上几局都是相同的结果", + "properties": { + "gIPNum": "key", + "num": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTHistoryIsSame", + "category": "condition", + "title": "DVTHistoryIsSame()", + "description": "判定是上几局都是相同的结果\ngIPNum 支持@", + "properties": { + "gIPNum": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTLastWinArea", + "category": "action", + "title": "DVTLastWinArea()", + "description": "龙虎最后获胜的区域保存到黑板", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTBetCoin", + "category": "action", + "title": "DVTBetCoin(,)", + "description": "龙虎押注", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTCheckBetCoin", + "category": "action", + "title": "DVTCheckBetCoin(,)", + "description": "龙虎检查下注额度", + "properties": { + "gIPSrcCoin": 0, + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + } + ] +} \ No newline at end of file diff --git a/data/botai/dvtinvertwin.json b/data/botai/dvtinvertwin.json new file mode 100644 index 0000000..a0dbd91 --- /dev/null +++ b/data/botai/dvtinvertwin.json @@ -0,0 +1,1284 @@ +{ + "version": "0.3.0", + "scope": "tree", + "id": "b5731d3a-691c-4271-b818-444f5ba03491", + "title": "DVTInvertWinBot", + "description": "龙虎 反手", + "root": "c56e902a-2191-47b2-a231-b285b27707f6", + "properties": {}, + "nodes": { + "3867ed0e-725c-48eb-894e-3aa618a6c5c9": { + "id": "3867ed0e-725c-48eb-894e-3aa618a6c5c9", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 408, + "y": -36 + }, + "children": [ + "6822b96d-08af-4d7f-8cba-9c3807b37e8e", + "774f427b-e3e6-4d3d-9521-f8b9adfcce19", + "3df61c16-0be3-4ef7-8b5a-25da08835e63", + "1e66e380-efd6-41fb-8a44-a3abf61e8ed3", + "ad07b001-3deb-4e63-80fb-dbd36cbc8c8c", + "aaccb693-07ea-487a-81e9-c5cc722f93d7", + "ff99a45d-d3ee-4d94-8339-49a315ffe90c" + ] + }, + "f9d918a1-7bde-4331-82ef-00e607dd09c2": { + "id": "f9d918a1-7bde-4331-82ef-00e607dd09c2", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "betSrcCoin", + "min": 2, + "max": 6 + }, + "display": { + "x": 372, + "y": -432 + } + }, + "ec2fbcaa-a1ec-44b0-8976-6b00ea0a20b3": { + "id": "ec2fbcaa-a1ec-44b0-8976-6b00ea0a20b3", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 600, + "maxTime": 1200 + }, + "display": { + "x": 1140, + "y": 384 + } + }, + "586f564f-4237-441e-9a97-04c7a9b78043": { + "id": "586f564f-4237-441e-9a97-04c7a9b78043", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 72, + "y": 1092 + }, + "children": [ + "49df9afd-f126-4814-a45c-9b5372af2f7b", + "bd9d99c8-e75e-442e-aaa5-7aac04258a1c", + "4cf8eb59-7a37-49b7-83a2-331bf817da20", + "7312a87b-d3f7-42c5-b7fb-d0773b0051e1" + ] + }, + "7ab20fd5-902d-4839-9fca-4c52ee5f580a": { + "id": "7ab20fd5-902d-4839-9fca-4c52ee5f580a", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "saveLimit", + "cmp": 0 + }, + "display": { + "x": 960, + "y": 996 + } + }, + "330dfd90-d165-444a-9ccb-fca9888d864c": { + "id": "330dfd90-d165-444a-9ccb-fca9888d864c", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "saveLimit" + }, + "display": { + "x": 948, + "y": 924 + } + }, + "4cf8eb59-7a37-49b7-83a2-331bf817da20": { + "id": "4cf8eb59-7a37-49b7-83a2-331bf817da20", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 500, + "maxTime": 3500 + }, + "display": { + "x": 300, + "y": 1248 + } + }, + "7312a87b-d3f7-42c5-b7fb-d0773b0051e1": { + "id": "7312a87b-d3f7-42c5-b7fb-d0773b0051e1", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {}, + "display": { + "x": 264, + "y": 1392 + } + }, + "605190eb-13f1-4636-8726-8bae569b4f3a": { + "id": "605190eb-13f1-4636-8726-8bae569b4f3a", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "maxGameNum", + "cmp": 4 + }, + "display": { + "x": 1008, + "y": 1176 + } + }, + "fe24c868-4d2e-4736-8a20-6d394654e830": { + "id": "fe24c868-4d2e-4736-8a20-6d394654e830", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "maxGameNum", + "min": 5, + "max": 30 + }, + "display": { + "x": 984, + "y": 1092 + } + }, + "7cde24c8-9874-4a78-a506-171133d3e99e": { + "id": "7cde24c8-9874-4a78-a506-171133d3e99e", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "生成初始押注额度", + "properties": {}, + "display": { + "x": 132, + "y": -372 + }, + "children": [ + "f215847a-03fe-4790-81cc-e19a50a41d1c", + "d90b1fa5-51c2-4432-86c0-ac31f91fe880", + "9a6c0d30-d420-4451-b515-5c79c726703c", + "f9d918a1-7bde-4331-82ef-00e607dd09c2", + "78f3f7d0-b86b-434e-8d16-d0268571be3f", + "b7a65e1f-333f-4b4f-8c45-e1928cfabe73", + "8a859274-7f02-48f8-81b9-99f92a8a36a4", + "f98e90d0-eb06-41ac-b6af-3e9c812f5a62" + ] + }, + "d90b1fa5-51c2-4432-86c0-ac31f91fe880": { + "id": "d90b1fa5-51c2-4432-86c0-ac31f91fe880", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "needStartBet", + "value": 0, + "cmp": 2 + }, + "display": { + "x": 348, + "y": -528 + } + }, + "9a6c0d30-d420-4451-b515-5c79c726703c": { + "id": "9a6c0d30-d420-4451-b515-5c79c726703c", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue": "@1" + }, + "display": { + "x": 372, + "y": -480 + } + }, + "ad07b001-3deb-4e63-80fb-dbd36cbc8c8c": { + "id": "ad07b001-3deb-4e63-80fb-dbd36cbc8c8c", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "betCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "needStartBet" + }, + "display": { + "x": 864, + "y": 24 + } + }, + "aaccb693-07ea-487a-81e9-c5cc722f93d7": { + "id": "aaccb693-07ea-487a-81e9-c5cc722f93d7", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue1": "needStartBet", + "gIPValue2": "@2" + }, + "display": { + "x": 852, + "y": 72 + } + }, + "b5f58277-0cfe-4c4e-96b7-20b1d72d580c": { + "id": "b5f58277-0cfe-4c4e-96b7-20b1d72d580c", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 228, + "y": 744 + }, + "children": [ + "37c3cb74-8b30-4a5f-8df5-55b8dc8e46ac", + "aed37422-3a02-4ab7-806d-84554f73c28a", + "b3dd5c17-cca0-4dfa-8ace-1944fb37749f" + ] + }, + "aed37422-3a02-4ab7-806d-84554f73c28a": { + "id": "aed37422-3a02-4ab7-806d-84554f73c28a", + "name": "CheckPlayerLastWinOrLost", + "category": "condition", + "title": "CheckPlayerLastWinOrLost(,)", + "description": "检查玩家上次输赢情况\ngIPLResult 比较值 支持@\ncmp 比较", + "properties": { + "gIPLResult": "@1", + "cmp": 2 + }, + "display": { + "x": 528, + "y": 732 + } + }, + "b3dd5c17-cca0-4dfa-8ace-1944fb37749f": { + "id": "b3dd5c17-cca0-4dfa-8ace-1944fb37749f", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue": "@0" + }, + "display": { + "x": 516, + "y": 804 + } + }, + "78f3f7d0-b86b-434e-8d16-d0268571be3f": { + "id": "78f3f7d0-b86b-434e-8d16-d0268571be3f", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "playerCoin" + }, + "display": { + "x": 360, + "y": -384 + } + }, + "b7a65e1f-333f-4b4f-8c45-e1928cfabe73": { + "id": "b7a65e1f-333f-4b4f-8c45-e1928cfabe73", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "playerCoin" + }, + "display": { + "x": 432, + "y": -336 + } + }, + "8a859274-7f02-48f8-81b9-99f92a8a36a4": { + "id": "8a859274-7f02-48f8-81b9-99f92a8a36a4", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 408, + "y": -288 + } + }, + "bd9d99c8-e75e-442e-aaa5-7aac04258a1c": { + "id": "bd9d99c8-e75e-442e-aaa5-7aac04258a1c", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 384, + "y": 1104 + }, + "children": [ + "3ea8c5e0-83b1-44c3-94ed-022c74c81632", + "1abc8dc0-7dd3-4b58-834b-ff96a7d4f781", + "3a901eb5-8890-41fb-8b6a-598d30478429", + "51676728-ebe5-4481-8387-30b840749182" + ] + }, + "3ea8c5e0-83b1-44c3-94ed-022c74c81632": { + "id": "3ea8c5e0-83b1-44c3-94ed-022c74c81632", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 624, + "y": 1020 + }, + "children": [ + "330dfd90-d165-444a-9ccb-fca9888d864c", + "7ab20fd5-902d-4839-9fca-4c52ee5f580a" + ] + }, + "1abc8dc0-7dd3-4b58-834b-ff96a7d4f781": { + "id": "1abc8dc0-7dd3-4b58-834b-ff96a7d4f781", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 624, + "y": 1176 + }, + "children": [ + "fe24c868-4d2e-4736-8a20-6d394654e830", + "605190eb-13f1-4636-8726-8bae569b4f3a" + ] + }, + "774f427b-e3e6-4d3d-9521-f8b9adfcce19": { + "id": "774f427b-e3e6-4d3d-9521-f8b9adfcce19", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "sameNum", + "min": 3, + "max": 5 + }, + "display": { + "x": 816, + "y": -132 + } + }, + "7a10ce37-bf1b-4a54-9969-3dac615b4f3f": { + "id": "7a10ce37-bf1b-4a54-9969-3dac615b4f3f", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 864, + "y": 324 + }, + "children": [ + "bf3a8e66-e69a-4b99-98a9-c5ad44c0a72a", + "a36141c4-c760-4400-b6a1-4509723f1f50", + "ec2fbcaa-a1ec-44b0-8976-6b00ea0a20b3", + "618f7726-459b-4d7e-8b0f-77d4ee097fa5" + ] + }, + "618f7726-459b-4d7e-8b0f-77d4ee097fa5": { + "id": "618f7726-459b-4d7e-8b0f-77d4ee097fa5", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 948, + "y": 468 + }, + "children": [ + "1d79bf2a-0d2b-448b-8db5-fffc8b3be7b1", + "88f78ad3-58c7-494a-8979-b87b63ce74ea" + ] + }, + "88f78ad3-58c7-494a-8979-b87b63ce74ea": { + "id": "88f78ad3-58c7-494a-8979-b87b63ce74ea", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betIsOk", + "gIPValue": "@1" + }, + "display": { + "x": 1152, + "y": 528 + } + }, + "a36141c4-c760-4400-b6a1-4509723f1f50": { + "id": "a36141c4-c760-4400-b6a1-4509723f1f50", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "betIsOk", + "value": 0, + "cmp": 2 + }, + "display": { + "x": 1128, + "y": 324 + } + }, + "2348b6b7-1a1d-4d43-8023-8a3b49216095": { + "id": "2348b6b7-1a1d-4d43-8023-8a3b49216095", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betIsOk", + "gIPValue": "@0" + }, + "display": { + "x": 420, + "y": 408 + } + }, + "51676728-ebe5-4481-8387-30b840749182": { + "id": "51676728-ebe5-4481-8387-30b840749182", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "betCoin", + "cmp": 0 + }, + "display": { + "x": 708, + "y": 1572 + } + }, + "fecdf0a9-1d1a-478b-9e92-9211c580b3b9": { + "id": "fecdf0a9-1d1a-478b-9e92-9211c580b3b9", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 180, + "y": 444 + }, + "children": [ + "2348b6b7-1a1d-4d43-8023-8a3b49216095", + "f0371824-9be3-4dc0-b447-cf9b56700fbf", + "f0330c18-245c-4d33-865b-489577e03d1d" + ] + }, + "f0330c18-245c-4d33-865b-489577e03d1d": { + "id": "f0330c18-245c-4d33-865b-489577e03d1d", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 396, + "y": 552 + } + }, + "054cdb7e-e898-445a-ac1b-0b9692477a42": { + "id": "054cdb7e-e898-445a-ac1b-0b9692477a42", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 1092, + "y": 600 + } + }, + "c56e902a-2191-47b2-a231-b285b27707f6": { + "id": "c56e902a-2191-47b2-a231-b285b27707f6", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": -264, + "y": 240 + }, + "children": [ + "7cde24c8-9874-4a78-a506-171133d3e99e", + "4263203b-9944-43e9-aaf6-3590c05b5e4f", + "b5f58277-0cfe-4c4e-96b7-20b1d72d580c", + "586f564f-4237-441e-9a97-04c7a9b78043" + ] + }, + "4263203b-9944-43e9-aaf6-3590c05b5e4f": { + "id": "4263203b-9944-43e9-aaf6-3590c05b5e4f", + "name": "MemSequence", + "category": "composite", + "title": "MemSequence", + "description": "", + "properties": {}, + "display": { + "x": 48, + "y": 156 + }, + "children": [ + "3867ed0e-725c-48eb-894e-3aa618a6c5c9", + "d889262c-2397-47ad-8eee-43d7e3057ffd", + "fecdf0a9-1d1a-478b-9e92-9211c580b3b9" + ] + }, + "d889262c-2397-47ad-8eee-43d7e3057ffd": { + "id": "d889262c-2397-47ad-8eee-43d7e3057ffd", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 612, + "y": 360 + }, + "children": [ + "50c7c380-4ccc-4062-8681-e12e1b7fc9a7", + "054cdb7e-e898-445a-ac1b-0b9692477a42" + ] + }, + "50c7c380-4ccc-4062-8681-e12e1b7fc9a7": { + "id": "50c7c380-4ccc-4062-8681-e12e1b7fc9a7", + "name": "Inverter", + "category": "decorator", + "title": "Inverter", + "description": "", + "properties": {}, + "display": { + "x": 732, + "y": 300 + }, + "child": "7a10ce37-bf1b-4a54-9969-3dac615b4f3f" + }, + "ff99a45d-d3ee-4d94-8339-49a315ffe90c": { + "id": "ff99a45d-d3ee-4d94-8339-49a315ffe90c", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 708, + "y": 144 + }, + "children": [ + "df2b9c40-653c-471d-8cdc-c222dfdcf7ec", + "fb863925-3ebf-4e50-84e4-d7748e72a54f" + ] + }, + "df2b9c40-653c-471d-8cdc-c222dfdcf7ec": { + "id": "df2b9c40-653c-471d-8cdc-c222dfdcf7ec", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 1044, + "y": 120 + }, + "children": [ + "3ebb51ae-3e7f-4746-8cc9-7f5188db0eb9", + "1dca51b7-6ed4-4a50-b07a-1d7b04d9575e" + ] + }, + "3ebb51ae-3e7f-4746-8cc9-7f5188db0eb9": { + "id": "3ebb51ae-3e7f-4746-8cc9-7f5188db0eb9", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "betArea", + "value": 1, + "cmp": 2 + }, + "display": { + "x": 1308, + "y": 0 + } + }, + "1dca51b7-6ed4-4a50-b07a-1d7b04d9575e": { + "id": "1dca51b7-6ed4-4a50-b07a-1d7b04d9575e", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betArea", + "gIPValue": "@2" + }, + "display": { + "x": 1332, + "y": 60 + } + }, + "fb863925-3ebf-4e50-84e4-d7748e72a54f": { + "id": "fb863925-3ebf-4e50-84e4-d7748e72a54f", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 1044, + "y": 168 + }, + "children": [ + "e09fcf87-4ff0-4550-8364-b069fe0ffe63", + "5b1368c6-5692-4ed7-a79b-1d606a08e97d" + ] + }, + "e09fcf87-4ff0-4550-8364-b069fe0ffe63": { + "id": "e09fcf87-4ff0-4550-8364-b069fe0ffe63", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "betArea", + "value": 2, + "cmp": 2 + }, + "display": { + "x": 1332, + "y": 108 + } + }, + "5b1368c6-5692-4ed7-a79b-1d606a08e97d": { + "id": "5b1368c6-5692-4ed7-a79b-1d606a08e97d", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betArea", + "gIPValue": "@1" + }, + "display": { + "x": 1356, + "y": 168 + } + }, + "279f1942-b1da-42a5-a73e-69ad9def364f": { + "id": "279f1942-b1da-42a5-a73e-69ad9def364f", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "takeCoinDiv", + "min": 10, + "max": 30 + }, + "display": { + "x": 972, + "y": 1236 + } + }, + "3a901eb5-8890-41fb-8b6a-598d30478429": { + "id": "3a901eb5-8890-41fb-8b6a-598d30478429", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 624, + "y": 1284 + }, + "children": [ + "279f1942-b1da-42a5-a73e-69ad9def364f", + "7386ae1b-1eea-4c9c-86cf-bcf4e11bebdf", + "cc25360e-6225-446d-85f6-edb4fe41d2e8", + "28b467fc-e6e0-4e9d-99f6-2765ff6abb87", + "7f241929-d17b-4693-84ae-642e22c82f87" + ] + }, + "7386ae1b-1eea-4c9c-86cf-bcf4e11bebdf": { + "id": "7386ae1b-1eea-4c9c-86cf-bcf4e11bebdf", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "takeCoin" + }, + "display": { + "x": 960, + "y": 1284 + } + }, + "7f241929-d17b-4693-84ae-642e22c82f87": { + "id": "7f241929-d17b-4693-84ae-642e22c82f87", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "takeCoin", + "cmp": 0 + }, + "display": { + "x": 948, + "y": 1476 + } + }, + "cc25360e-6225-446d-85f6-edb4fe41d2e8": { + "id": "cc25360e-6225-446d-85f6-edb4fe41d2e8", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "takeCoinDiv" + }, + "display": { + "x": 1008, + "y": 1344 + } + }, + "28b467fc-e6e0-4e9d-99f6-2765ff6abb87": { + "id": "28b467fc-e6e0-4e9d-99f6-2765ff6abb87", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 972, + "y": 1404 + } + }, + "f215847a-03fe-4790-81cc-e19a50a41d1c": { + "id": "f215847a-03fe-4790-81cc-e19a50a41d1c", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 312, + "y": -588 + } + }, + "f98e90d0-eb06-41ac-b6af-3e9c812f5a62": { + "id": "f98e90d0-eb06-41ac-b6af-3e9c812f5a62", + "name": "DVTCheckBetCoin", + "category": "action", + "title": "DVTCheckBetCoin(,)", + "description": "龙虎检查下注额度", + "properties": { + "gIPSrcCoin": "betSrcCoin", + "gINSaveCoin": "betSrcCoin" + }, + "display": { + "x": 420, + "y": -228 + } + }, + "6822b96d-08af-4d7f-8cba-9c3807b37e8e": { + "id": "6822b96d-08af-4d7f-8cba-9c3807b37e8e", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 768, + "y": -192 + } + }, + "3df61c16-0be3-4ef7-8b5a-25da08835e63": { + "id": "3df61c16-0be3-4ef7-8b5a-25da08835e63", + "name": "DVTHistoryIsSame", + "category": "condition", + "title": "DVTHistoryIsSame()", + "description": "判定是上几局都是相同的结果\ngIPNum 支持@", + "properties": { + "gIPNum": "sameNum" + }, + "display": { + "x": 804, + "y": -84 + } + }, + "1e66e380-efd6-41fb-8a44-a3abf61e8ed3": { + "id": "1e66e380-efd6-41fb-8a44-a3abf61e8ed3", + "name": "DVTLastWinArea", + "category": "action", + "title": "DVTLastWinArea()", + "description": "龙虎最后获胜的区域保存到黑板", + "properties": { + "gINKey": "betArea" + }, + "display": { + "x": 792, + "y": -36 + } + }, + "bf3a8e66-e69a-4b99-98a9-c5ad44c0a72a": { + "id": "bf3a8e66-e69a-4b99-98a9-c5ad44c0a72a", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 1104, + "y": 264 + } + }, + "1d79bf2a-0d2b-448b-8db5-fffc8b3be7b1": { + "id": "1d79bf2a-0d2b-448b-8db5-fffc8b3be7b1", + "name": "DVTBetCoin", + "category": "action", + "title": "DVTBetCoin(,)", + "description": "龙虎押注", + "properties": { + "gIPBetCoin": "betCoin", + "gIPArea": "betArea" + }, + "display": { + "x": 1164, + "y": 456 + } + }, + "f0371824-9be3-4dc0-b447-cf9b56700fbf": { + "id": "f0371824-9be3-4dc0-b447-cf9b56700fbf", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 396, + "y": 480 + } + }, + "37c3cb74-8b30-4a5f-8df5-55b8dc8e46ac": { + "id": "37c3cb74-8b30-4a5f-8df5-55b8dc8e46ac", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 4 + }, + "display": { + "x": 468, + "y": 672 + } + }, + "49df9afd-f126-4814-a45c-9b5372af2f7b": { + "id": "49df9afd-f126-4814-a45c-9b5372af2f7b", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 4 + }, + "display": { + "x": 300, + "y": 996 + } + } + }, + "display": { + "camera_x": 222.7900000035297, + "camera_y": -608.9149999988731, + "camera_z": 1, + "x": -444, + "y": 240 + }, + "custom_nodes": [ + { + "version": "0.3.0", + "scope": "node", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "key", + "min": 0, + "max": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 0, + "maxTime": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandomWeightComposite", + "category": "composite", + "title": "RandomWeightComposite()", + "description": "根据权重随机,选择一个子节点。\n权重使用|分割。\n需要注意子节点的顺序,个数需要和权重对应", + "properties": { + "weight": "\"\"" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckBool", + "category": "condition", + "title": "CheckBool()", + "description": "检查一个黑板的key值", + "properties": { + "keyName": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "key", + "value": 0, + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LogAction", + "category": "action", + "title": "LogAction(,)", + "description": "输出日志", + "properties": { + "info": "info", + "level": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetPct", + "category": "action", + "title": "RVBBetPct(,)", + "description": "红黑下注\ngIPpct 下注百分比,黑板key 支持@\ngIPArea 下注区域,黑板key 支持@", + "properties": { + "gIPpct": "key", + "gIPArea": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBLastWinArea", + "category": "action", + "title": "RVBLastWinArea()", + "description": "获得最后的下注结果保存到key,没有返回失败", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {} + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerLastWinOrLost", + "category": "condition", + "title": "CheckPlayerLastWinOrLost(,)", + "description": "检查玩家上次输赢情况\ngIPLResult 比较值 支持@\ncmp 比较", + "properties": { + "gIPLResult": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "key", + "gIPValue": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetCoin", + "category": "action", + "title": "RVBBetCoin(,)", + "description": "红黑押注\ngIPBetCoin 押注金额 支持@\ngIPArea 押注区域支持@", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBCheckBetCoin", + "category": "action", + "title": "RVBCheckBetCoin(,)", + "description": "修正押注金额,保存到黑板key\ngIPSrcCoin 押注金额支持@\ngINSaveCoin 保存后key", + "properties": { + "gIPSrcCoin": "key", + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBHistoryIsSame", + "category": "condition", + "title": "RVBHistoryIsSame()", + "description": "判定是上几局都是相同的结果", + "properties": { + "gIPNum": "key", + "num": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTHistoryIsSame", + "category": "condition", + "title": "DVTHistoryIsSame()", + "description": "判定是上几局都是相同的结果\ngIPNum 支持@", + "properties": { + "gIPNum": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTLastWinArea", + "category": "action", + "title": "DVTLastWinArea()", + "description": "龙虎最后获胜的区域保存到黑板", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTBetCoin", + "category": "action", + "title": "DVTBetCoin(,)", + "description": "龙虎押注", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTCheckBetCoin", + "category": "action", + "title": "DVTCheckBetCoin(,)", + "description": "龙虎检查下注额度", + "properties": { + "gIPSrcCoin": 0, + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + } + ] +} \ No newline at end of file diff --git a/data/botai/dvtrandom.json b/data/botai/dvtrandom.json new file mode 100644 index 0000000..a864e9e --- /dev/null +++ b/data/botai/dvtrandom.json @@ -0,0 +1,1059 @@ +{ + "version": "0.3.0", + "scope": "tree", + "id": "e48a3128-ccf5-40fa-825e-85a778c46954", + "title": "DVTRandomBot", + "description": "龙虎随机机器人", + "root": "17a798f7-5270-4c07-b56b-90854a8617a6", + "properties": {}, + "nodes": { + "40bb4ee0-c1e3-4399-8af9-4edba593f737": { + "id": "40bb4ee0-c1e3-4399-8af9-4edba593f737", + "name": "MemSequence", + "category": "composite", + "title": "MemSequence", + "description": "", + "properties": {}, + "display": { + "x": 360, + "y": -300 + }, + "children": [ + "2600c6ff-388f-405d-802f-857a2bc5049e", + "fdc39a2b-01cd-4544-b8fa-fd95f2425e5c", + "f0f1f6db-6623-4152-8879-d15181967caa", + "98e13cbc-ed04-4e85-8b06-4689e5432c2a" + ] + }, + "fdc39a2b-01cd-4544-b8fa-fd95f2425e5c": { + "id": "fdc39a2b-01cd-4544-b8fa-fd95f2425e5c", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 100, + "maxTime": 4000 + }, + "display": { + "x": 744, + "y": -372 + } + }, + "f0f1f6db-6623-4152-8879-d15181967caa": { + "id": "f0f1f6db-6623-4152-8879-d15181967caa", + "name": "RandomWeightComposite", + "category": "composite", + "title": "RandomWeightComposite()", + "description": "根据权重随机,选择一个子节点。\n权重使用|分割。\n需要注意子节点的顺序,个数需要和权重对应", + "properties": { + "weight": "7|100" + }, + "display": { + "x": 732, + "y": -216 + }, + "children": [ + "8cb03d04-efbb-45c4-87ec-8bc7d56dc073", + "8fa27d60-d1bf-4180-86fa-0f7df43964aa" + ] + }, + "17a798f7-5270-4c07-b56b-90854a8617a6": { + "id": "17a798f7-5270-4c07-b56b-90854a8617a6", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 156, + "y": 372 + }, + "children": [ + "40bb4ee0-c1e3-4399-8af9-4edba593f737", + "851f539f-606e-404c-a981-32201499a7c0" + ] + }, + "851f539f-606e-404c-a981-32201499a7c0": { + "id": "851f539f-606e-404c-a981-32201499a7c0", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 408, + "y": 612 + }, + "children": [ + "c99835ea-a71f-4259-9a55-a3a47c53ce4c", + "ecfdebd2-e48d-4501-8ffd-33771ea788cd", + "4f583aa3-2fce-482b-87e9-7a23cd10790f", + "2f80c20e-c2ca-4802-9975-b0face24b105" + ] + }, + "6fb0e1c1-6464-4b40-8bfa-883377fb7778": { + "id": "6fb0e1c1-6464-4b40-8bfa-883377fb7778", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "saveLimit", + "cmp": 0 + }, + "display": { + "x": 1296, + "y": 516 + } + }, + "716444a6-5f39-44f2-80c0-2181ca3d7689": { + "id": "716444a6-5f39-44f2-80c0-2181ca3d7689", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "saveLimit" + }, + "display": { + "x": 1284, + "y": 444 + } + }, + "4f583aa3-2fce-482b-87e9-7a23cd10790f": { + "id": "4f583aa3-2fce-482b-87e9-7a23cd10790f", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 500, + "maxTime": 3000 + }, + "display": { + "x": 636, + "y": 768 + } + }, + "2f80c20e-c2ca-4802-9975-b0face24b105": { + "id": "2f80c20e-c2ca-4802-9975-b0face24b105", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {}, + "display": { + "x": 612, + "y": 960 + } + }, + "e89733da-8e7f-48b9-a0ca-6c7f7b3e0afc": { + "id": "e89733da-8e7f-48b9-a0ca-6c7f7b3e0afc", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "maxGameNum", + "cmp": 4 + }, + "display": { + "x": 1344, + "y": 696 + } + }, + "bfc09d8b-40ef-4697-823e-f6c28371a18b": { + "id": "bfc09d8b-40ef-4697-823e-f6c28371a18b", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "maxGameNum", + "min": 5, + "max": 30 + }, + "display": { + "x": 1320, + "y": 612 + } + }, + "ecfdebd2-e48d-4501-8ffd-33771ea788cd": { + "id": "ecfdebd2-e48d-4501-8ffd-33771ea788cd", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 720, + "y": 624 + }, + "children": [ + "801fa819-f99c-4b29-8a4c-6b422614f5ea", + "aeb1db0a-ce87-4673-bfd2-47044ba43af8", + "f927fad5-6bab-4a2e-be7c-98939b76dd32", + "74dc3d66-3022-4aac-8d34-85a52a50f601" + ] + }, + "801fa819-f99c-4b29-8a4c-6b422614f5ea": { + "id": "801fa819-f99c-4b29-8a4c-6b422614f5ea", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 960, + "y": 540 + }, + "children": [ + "716444a6-5f39-44f2-80c0-2181ca3d7689", + "6fb0e1c1-6464-4b40-8bfa-883377fb7778" + ] + }, + "aeb1db0a-ce87-4673-bfd2-47044ba43af8": { + "id": "aeb1db0a-ce87-4673-bfd2-47044ba43af8", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 960, + "y": 696 + }, + "children": [ + "bfc09d8b-40ef-4697-823e-f6c28371a18b", + "e89733da-8e7f-48b9-a0ca-6c7f7b3e0afc" + ] + }, + "74dc3d66-3022-4aac-8d34-85a52a50f601": { + "id": "74dc3d66-3022-4aac-8d34-85a52a50f601", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "betCoin", + "cmp": 0 + }, + "display": { + "x": 1056, + "y": 1152 + } + }, + "ff0cfe0e-b25b-4e57-8350-a988ee16da04": { + "id": "ff0cfe0e-b25b-4e57-8350-a988ee16da04", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "betSrcCoin", + "min": 15, + "max": 35 + }, + "display": { + "x": 768, + "y": -744 + } + }, + "2600c6ff-388f-405d-802f-857a2bc5049e": { + "id": "2600c6ff-388f-405d-802f-857a2bc5049e", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "生成初始押注额度", + "properties": {}, + "display": { + "x": 516, + "y": -624 + }, + "children": [ + "44aa2c38-49cc-4b47-935c-478671025ebc", + "ff0cfe0e-b25b-4e57-8350-a988ee16da04", + "fca64ef6-59fe-459a-b17b-15f2cb444494", + "f02189b7-d510-4c72-9c90-a6d8d8b22618", + "95b19b79-ba48-4458-85d0-348e30cb89eb", + "a0925c1e-0a2b-4cf3-8ca2-c7b51c80d145", + "524d7dcd-ad9c-49d9-9112-8979a4e5178d" + ] + }, + "fca64ef6-59fe-459a-b17b-15f2cb444494": { + "id": "fca64ef6-59fe-459a-b17b-15f2cb444494", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "playerCoin" + }, + "display": { + "x": 756, + "y": -684 + } + }, + "95b19b79-ba48-4458-85d0-348e30cb89eb": { + "id": "95b19b79-ba48-4458-85d0-348e30cb89eb", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 804, + "y": -564 + } + }, + "524d7dcd-ad9c-49d9-9112-8979a4e5178d": { + "id": "524d7dcd-ad9c-49d9-9112-8979a4e5178d", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "betArea", + "min": 1, + "max": 3 + }, + "display": { + "x": 756, + "y": -444 + } + }, + "98e13cbc-ed04-4e85-8b06-4689e5432c2a": { + "id": "98e13cbc-ed04-4e85-8b06-4689e5432c2a", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 492, + "y": -24 + }, + "children": [ + "edc549af-53dc-4866-b6a8-c8d104f5eb5f", + "8ac94f1b-5ac2-484e-b47e-077f11116c1f" + ] + }, + "8ac94f1b-5ac2-484e-b47e-077f11116c1f": { + "id": "8ac94f1b-5ac2-484e-b47e-077f11116c1f", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 672, + "y": 36 + } + }, + "13c0d7af-9312-45e0-89be-bcf852972c7a": { + "id": "13c0d7af-9312-45e0-89be-bcf852972c7a", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 300, + "maxTime": 900 + }, + "display": { + "x": 1524, + "y": -432 + } + }, + "333c338a-edc1-46df-8640-ce69553ec829": { + "id": "333c338a-edc1-46df-8640-ce69553ec829", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 1332, + "y": -372 + }, + "children": [ + "18f20a87-f766-48c3-866b-d88a27b25f9e", + "28932c02-c37d-4060-8253-b10cd2c9d224", + "13c0d7af-9312-45e0-89be-bcf852972c7a", + "1297e23e-f652-4224-81b1-645a65bab464" + ] + }, + "f564c5ce-896f-46e3-90b9-3bea59defa88": { + "id": "f564c5ce-896f-46e3-90b9-3bea59defa88", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 1488, + "y": -228 + } + }, + "8cb03d04-efbb-45c4-87ec-8bc7d56dc073": { + "id": "8cb03d04-efbb-45c4-87ec-8bc7d56dc073", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 1056, + "y": -240 + }, + "children": [ + "3959a9c9-ea71-4034-b5f9-e3f014cc17fc", + "f564c5ce-896f-46e3-90b9-3bea59defa88" + ] + }, + "3959a9c9-ea71-4034-b5f9-e3f014cc17fc": { + "id": "3959a9c9-ea71-4034-b5f9-e3f014cc17fc", + "name": "Inverter", + "category": "decorator", + "title": "Inverter", + "description": "", + "properties": {}, + "display": { + "x": 1212, + "y": -312 + }, + "child": "333c338a-edc1-46df-8640-ce69553ec829" + }, + "4a212c84-5d1d-4e5d-8c0f-a9f9d11e439d": { + "id": "4a212c84-5d1d-4e5d-8c0f-a9f9d11e439d", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 200, + "maxTime": 600 + }, + "display": { + "x": 1524, + "y": -132 + } + }, + "c10ca763-66cf-4b6c-87d7-ca835f7974e9": { + "id": "c10ca763-66cf-4b6c-87d7-ca835f7974e9", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 1332, + "y": -96 + }, + "children": [ + "4a212c84-5d1d-4e5d-8c0f-a9f9d11e439d", + "11948c7f-5c40-4107-8d56-6125dd54e5e2" + ] + }, + "a9e5ea0d-ac6c-49e9-96d4-6581cdb7c470": { + "id": "a9e5ea0d-ac6c-49e9-96d4-6581cdb7c470", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 1476, + "y": 60 + } + }, + "8fa27d60-d1bf-4180-86fa-0f7df43964aa": { + "id": "8fa27d60-d1bf-4180-86fa-0f7df43964aa", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 1068, + "y": 24 + }, + "children": [ + "45e66071-e115-49e6-abc6-9e4e3451c183", + "a9e5ea0d-ac6c-49e9-96d4-6581cdb7c470" + ] + }, + "45e66071-e115-49e6-abc6-9e4e3451c183": { + "id": "45e66071-e115-49e6-abc6-9e4e3451c183", + "name": "Inverter", + "category": "decorator", + "title": "Inverter", + "description": "", + "properties": {}, + "display": { + "x": 1200, + "y": -60 + }, + "child": "c10ca763-66cf-4b6c-87d7-ca835f7974e9" + }, + "f02189b7-d510-4c72-9c90-a6d8d8b22618": { + "id": "f02189b7-d510-4c72-9c90-a6d8d8b22618", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "playerCoin" + }, + "display": { + "x": 828, + "y": -624 + } + }, + "2008f23e-56e8-4818-be5c-b2519e5234fa": { + "id": "2008f23e-56e8-4818-be5c-b2519e5234fa", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "takeCoinDiv", + "min": 20, + "max": 40 + }, + "display": { + "x": 1332, + "y": 768 + } + }, + "f927fad5-6bab-4a2e-be7c-98939b76dd32": { + "id": "f927fad5-6bab-4a2e-be7c-98939b76dd32", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 960, + "y": 816 + }, + "children": [ + "2008f23e-56e8-4818-be5c-b2519e5234fa", + "ccc49727-0ca1-4694-9fdd-c471621bf8ae", + "68ec252c-c055-4c2d-a1be-2985696ce689", + "1873d62c-2aa1-456b-8cbc-e56b2f2d1299", + "604b38aa-b2ca-40ac-9f89-1581ce12a281" + ] + }, + "ccc49727-0ca1-4694-9fdd-c471621bf8ae": { + "id": "ccc49727-0ca1-4694-9fdd-c471621bf8ae", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "takeCoin" + }, + "display": { + "x": 1320, + "y": 816 + } + }, + "604b38aa-b2ca-40ac-9f89-1581ce12a281": { + "id": "604b38aa-b2ca-40ac-9f89-1581ce12a281", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "takeCoin", + "cmp": 0 + }, + "display": { + "x": 1308, + "y": 1008 + } + }, + "68ec252c-c055-4c2d-a1be-2985696ce689": { + "id": "68ec252c-c055-4c2d-a1be-2985696ce689", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "takeCoinDiv" + }, + "display": { + "x": 1368, + "y": 876 + } + }, + "1873d62c-2aa1-456b-8cbc-e56b2f2d1299": { + "id": "1873d62c-2aa1-456b-8cbc-e56b2f2d1299", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 1332, + "y": 936 + } + }, + "1297e23e-f652-4224-81b1-645a65bab464": { + "id": "1297e23e-f652-4224-81b1-645a65bab464", + "name": "DVTBetCoin", + "category": "action", + "title": "DVTBetCoin(,)", + "description": "龙虎押注", + "properties": { + "gIPBetCoin": "betSrcCoin", + "gIPArea": "@0" + }, + "display": { + "x": 1548, + "y": -348 + } + }, + "11948c7f-5c40-4107-8d56-6125dd54e5e2": { + "id": "11948c7f-5c40-4107-8d56-6125dd54e5e2", + "name": "DVTBetCoin", + "category": "action", + "title": "DVTBetCoin(,)", + "description": "龙虎押注", + "properties": { + "gIPBetCoin": "betCoin", + "gIPArea": "betArea" + }, + "display": { + "x": 1548, + "y": -48 + } + }, + "edc549af-53dc-4866-b6a8-c8d104f5eb5f": { + "id": "edc549af-53dc-4866-b6a8-c8d104f5eb5f", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 672, + "y": -72 + } + }, + "44aa2c38-49cc-4b47-935c-478671025ebc": { + "id": "44aa2c38-49cc-4b47-935c-478671025ebc", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 708, + "y": -816 + } + }, + "a0925c1e-0a2b-4cf3-8ca2-c7b51c80d145": { + "id": "a0925c1e-0a2b-4cf3-8ca2-c7b51c80d145", + "name": "DVTCheckBetCoin", + "category": "action", + "title": "DVTCheckBetCoin(,)", + "description": "龙虎检查下注额度", + "properties": { + "gIPSrcCoin": "betSrcCoin", + "gINSaveCoin": "betCoin" + }, + "display": { + "x": 804, + "y": -504 + } + }, + "c99835ea-a71f-4259-9a55-a3a47c53ce4c": { + "id": "c99835ea-a71f-4259-9a55-a3a47c53ce4c", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 准备结算\n5 结算", + "properties": { + "state": 4 + }, + "display": { + "x": 636, + "y": 540 + } + }, + "18f20a87-f766-48c3-866b-d88a27b25f9e": { + "id": "18f20a87-f766-48c3-866b-d88a27b25f9e", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betCoin", + "gIPValue2": "@2" + }, + "display": { + "x": 1548, + "y": -552 + } + }, + "28932c02-c37d-4060-8253-b10cd2c9d224": { + "id": "28932c02-c37d-4060-8253-b10cd2c9d224", + "name": "DVTCheckBetCoin", + "category": "action", + "title": "DVTCheckBetCoin(,)", + "description": "龙虎检查下注额度", + "properties": { + "gIPSrcCoin": "betSrcCoin", + "gINSaveCoin": "betSrcCoin" + }, + "display": { + "x": 1596, + "y": -492 + } + } + }, + "display": { + "camera_x": 220.14000000315718, + "camera_y": 153.3199999993667, + "camera_z": 0.75, + "x": -60, + "y": 372 + }, + "custom_nodes": [ + { + "version": "0.3.0", + "scope": "node", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "key", + "min": 0, + "max": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 0, + "maxTime": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandomWeightComposite", + "category": "composite", + "title": "RandomWeightComposite()", + "description": "根据权重随机,选择一个子节点。\n权重使用|分割。\n需要注意子节点的顺序,个数需要和权重对应", + "properties": { + "weight": "\"\"" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckBool", + "category": "condition", + "title": "CheckBool()", + "description": "检查一个黑板的key值", + "properties": { + "keyName": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "key", + "value": 0, + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LogAction", + "category": "action", + "title": "LogAction(,)", + "description": "输出日志", + "properties": { + "info": "info", + "level": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetPct", + "category": "action", + "title": "RVBBetPct(,)", + "description": "红黑下注\ngIPpct 下注百分比,黑板key 支持@\ngIPArea 下注区域,黑板key 支持@", + "properties": { + "gIPpct": "key", + "gIPArea": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBLastWinArea", + "category": "action", + "title": "RVBLastWinArea()", + "description": "获得最后的下注结果保存到key,没有返回失败", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {} + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerLastWinOrLost", + "category": "condition", + "title": "CheckPlayerLastWinOrLost(,)", + "description": "检查玩家上次输赢情况\ngIPLResult 比较值 支持@\ncmp 比较", + "properties": { + "gIPLResult": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "key", + "gIPValue": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetCoin", + "category": "action", + "title": "RVBBetCoin(,)", + "description": "红黑押注\ngIPBetCoin 押注金额 支持@\ngIPArea 押注区域支持@", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBCheckBetCoin", + "category": "action", + "title": "RVBCheckBetCoin(,)", + "description": "修正押注金额,保存到黑板key\ngIPSrcCoin 押注金额支持@\ngINSaveCoin 保存后key", + "properties": { + "gIPSrcCoin": "key", + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBHistoryIsSame", + "category": "condition", + "title": "RVBHistoryIsSame()", + "description": "判定是上几局都是相同的结果", + "properties": { + "gIPNum": "key", + "num": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTHistoryIsSame", + "category": "condition", + "title": "DVTHistoryIsSame()", + "description": "判定是上几局都是相同的结果\ngIPNum 支持@", + "properties": { + "gIPNum": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTLastWinArea", + "category": "action", + "title": "DVTLastWinArea()", + "description": "龙虎最后获胜的区域保存到黑板", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTBetCoin", + "category": "action", + "title": "DVTBetCoin(,)", + "description": "龙虎押注", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTCheckBetCoin", + "category": "action", + "title": "DVTCheckBetCoin(,)", + "description": "龙虎检查下注额度", + "properties": { + "gIPSrcCoin": 0, + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + } + ] +} \ No newline at end of file diff --git a/data/botai/rvbfollowwin.json b/data/botai/rvbfollowwin.json new file mode 100644 index 0000000..8a415c4 --- /dev/null +++ b/data/botai/rvbfollowwin.json @@ -0,0 +1,1174 @@ +{ + "version": "0.3.0", + "scope": "tree", + "id": "3729efe7-b5eb-4656-8694-23a7f4d3b92d", + "title": "RVBFollowWinBot", + "description": "跟龙 倍投", + "root": "3868f9e0-f1f2-4927-9b75-f4049a3f5fa6", + "properties": {}, + "nodes": { + "32f44dae-b2da-4b7f-8e9b-a0594d9b9c7c": { + "id": "32f44dae-b2da-4b7f-8e9b-a0594d9b9c7c", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 696, + "y": -288 + } + }, + "8ee2e525-0e10-4339-9fc1-091059a33a3b": { + "id": "8ee2e525-0e10-4339-9fc1-091059a33a3b", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 276, + "y": -156 + }, + "children": [ + "32f44dae-b2da-4b7f-8e9b-a0594d9b9c7c", + "8289c2a3-9316-4a88-a2cd-b1f36d22d315", + "254e71dd-e4b5-45fd-9a43-812dfcf99f4e", + "3fe9e989-b8c9-4a07-b4af-45966df9aad7", + "87f04e22-3804-4713-8030-3367f2a3dc48", + "79dcac3e-9c14-4963-958f-82410069335b" + ] + }, + "fe47e8e1-19ef-448e-8c20-c9839229f1cf": { + "id": "fe47e8e1-19ef-448e-8c20-c9839229f1cf", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "betSrcCoin", + "min": 2, + "max": 6 + }, + "display": { + "x": 276, + "y": -528 + } + }, + "f60a1323-ca6a-43cc-bd26-ef5a3c5c750c": { + "id": "f60a1323-ca6a-43cc-bd26-ef5a3c5c750c", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 972, + "y": 48 + } + }, + "bec1e9bc-4be0-47ff-8a69-f2211bd68011": { + "id": "bec1e9bc-4be0-47ff-8a69-f2211bd68011", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 600, + "maxTime": 1200 + }, + "display": { + "x": 996, + "y": 156 + } + }, + "254e71dd-e4b5-45fd-9a43-812dfcf99f4e": { + "id": "254e71dd-e4b5-45fd-9a43-812dfcf99f4e", + "name": "RVBHistoryIsSame", + "category": "condition", + "title": "RVBHistoryIsSame()", + "description": "判定是上几局都是相同的结果", + "properties": { + "gIPNum": "sameNum", + "num": 2 + }, + "display": { + "x": 720, + "y": -180 + } + }, + "3fe9e989-b8c9-4a07-b4af-45966df9aad7": { + "id": "3fe9e989-b8c9-4a07-b4af-45966df9aad7", + "name": "RVBLastWinArea", + "category": "action", + "title": "RVBLastWinArea()", + "description": "获得最后的下注结果保存到key,没有返回失败", + "properties": { + "gINKey": "betArea" + }, + "display": { + "x": 696, + "y": -132 + } + }, + "e683afae-4710-4113-9c6a-ffde88d780a1": { + "id": "e683afae-4710-4113-9c6a-ffde88d780a1", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": -24, + "y": 996 + }, + "children": [ + "9bfd94ac-09b8-41b7-9898-62fa25e6e1ff", + "1bf7fa77-6cc7-4120-8862-61668a6768bc", + "e785463c-b082-403e-8b33-e2123551313d", + "383031e5-3af8-4b56-826a-76fff677d1c2" + ] + }, + "9bfd94ac-09b8-41b7-9898-62fa25e6e1ff": { + "id": "9bfd94ac-09b8-41b7-9898-62fa25e6e1ff", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 4 + }, + "display": { + "x": 216, + "y": 876 + } + }, + "b9d620f1-7c32-423b-bab4-dc50183a602d": { + "id": "b9d620f1-7c32-423b-bab4-dc50183a602d", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "saveLimit", + "cmp": 0 + }, + "display": { + "x": 864, + "y": 900 + } + }, + "17c1ea6f-6b58-45d3-9457-4ac747100654": { + "id": "17c1ea6f-6b58-45d3-9457-4ac747100654", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "saveLimit" + }, + "display": { + "x": 852, + "y": 828 + } + }, + "e785463c-b082-403e-8b33-e2123551313d": { + "id": "e785463c-b082-403e-8b33-e2123551313d", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 500, + "maxTime": 3500 + }, + "display": { + "x": 204, + "y": 1152 + } + }, + "383031e5-3af8-4b56-826a-76fff677d1c2": { + "id": "383031e5-3af8-4b56-826a-76fff677d1c2", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {}, + "display": { + "x": 168, + "y": 1296 + } + }, + "9501a1ea-d5d4-4437-b008-5901df5a3155": { + "id": "9501a1ea-d5d4-4437-b008-5901df5a3155", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "maxGameNum", + "cmp": 4 + }, + "display": { + "x": 912, + "y": 1080 + } + }, + "1a77bfb7-6ec1-4414-bcdf-7f5c8ea05e0a": { + "id": "1a77bfb7-6ec1-4414-bcdf-7f5c8ea05e0a", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "maxGameNum", + "min": 10, + "max": 40 + }, + "display": { + "x": 888, + "y": 996 + } + }, + "a0833ec6-4c79-491d-8983-58ccae4d0329": { + "id": "a0833ec6-4c79-491d-8983-58ccae4d0329", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "生成初始押注额度", + "properties": {}, + "display": { + "x": 36, + "y": -468 + }, + "children": [ + "5731b7b0-8447-43cf-8754-303d98a3634a", + "822d814e-a660-4d75-83ee-b06873791200", + "1df794f8-957a-4fdd-8057-b010928bf805", + "fe47e8e1-19ef-448e-8c20-c9839229f1cf", + "5caa26b4-ff66-4b35-8713-8de52405da42", + "86f7dc9c-ca22-4f66-9f5f-d75e3f0a8c02", + "45246284-428b-44b8-b976-169186544c9e", + "f37176cd-a3ec-4223-aebb-4a301c86b92a" + ] + }, + "822d814e-a660-4d75-83ee-b06873791200": { + "id": "822d814e-a660-4d75-83ee-b06873791200", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "needStartBet", + "value": 0, + "cmp": 2 + }, + "display": { + "x": 252, + "y": -624 + } + }, + "1df794f8-957a-4fdd-8057-b010928bf805": { + "id": "1df794f8-957a-4fdd-8057-b010928bf805", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue": "@1" + }, + "display": { + "x": 276, + "y": -576 + } + }, + "8ad87cb8-b5cc-456f-bf95-ba0d0b0b9cf4": { + "id": "8ad87cb8-b5cc-456f-bf95-ba0d0b0b9cf4", + "name": "RVBBetCoin", + "category": "action", + "title": "RVBBetCoin(,)", + "description": "红黑押注\ngIPBetCoin 押注金额 支持@\ngIPArea 押注区域支持@", + "properties": { + "gIPBetCoin": "betCoin", + "gIPArea": "betArea" + }, + "display": { + "x": 1020, + "y": 228 + } + }, + "f37176cd-a3ec-4223-aebb-4a301c86b92a": { + "id": "f37176cd-a3ec-4223-aebb-4a301c86b92a", + "name": "RVBCheckBetCoin", + "category": "action", + "title": "RVBCheckBetCoin(,)", + "description": "修正押注金额,保存到黑板key\ngIPSrcCoin 押注金额支持@\ngINSaveCoin 保存后key", + "properties": { + "gIPSrcCoin": "betSrcCoin", + "gINSaveCoin": "betSrcCoin" + }, + "display": { + "x": 324, + "y": -324 + } + }, + "87f04e22-3804-4713-8030-3367f2a3dc48": { + "id": "87f04e22-3804-4713-8030-3367f2a3dc48", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "betCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "needStartBet" + }, + "display": { + "x": 768, + "y": -84 + } + }, + "79dcac3e-9c14-4963-958f-82410069335b": { + "id": "79dcac3e-9c14-4963-958f-82410069335b", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue1": "needStartBet", + "gIPValue2": "@2" + }, + "display": { + "x": 756, + "y": -36 + } + }, + "19403a37-6769-4911-a71c-cb49f92a47b4": { + "id": "19403a37-6769-4911-a71c-cb49f92a47b4", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 144, + "y": 636 + }, + "children": [ + "69225c33-f1ab-4347-8071-620d2134cf31", + "858e1bb5-4a33-4dc5-8a84-2330d0669bf0", + "4e3753b8-309a-4976-984c-7ec00665ccf2" + ] + }, + "69225c33-f1ab-4347-8071-620d2134cf31": { + "id": "69225c33-f1ab-4347-8071-620d2134cf31", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 4 + }, + "display": { + "x": 360, + "y": 564 + } + }, + "858e1bb5-4a33-4dc5-8a84-2330d0669bf0": { + "id": "858e1bb5-4a33-4dc5-8a84-2330d0669bf0", + "name": "CheckPlayerLastWinOrLost", + "category": "condition", + "title": "CheckPlayerLastWinOrLost(,)", + "description": "检查玩家上次输赢情况\ngIPLResult 比较值 支持@\ncmp 比较", + "properties": { + "gIPLResult": "@1", + "cmp": 2 + }, + "display": { + "x": 432, + "y": 636 + } + }, + "4e3753b8-309a-4976-984c-7ec00665ccf2": { + "id": "4e3753b8-309a-4976-984c-7ec00665ccf2", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue": "@0" + }, + "display": { + "x": 420, + "y": 708 + } + }, + "5caa26b4-ff66-4b35-8713-8de52405da42": { + "id": "5caa26b4-ff66-4b35-8713-8de52405da42", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "playerCoin" + }, + "display": { + "x": 264, + "y": -480 + } + }, + "86f7dc9c-ca22-4f66-9f5f-d75e3f0a8c02": { + "id": "86f7dc9c-ca22-4f66-9f5f-d75e3f0a8c02", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "playerCoin" + }, + "display": { + "x": 336, + "y": -432 + } + }, + "45246284-428b-44b8-b976-169186544c9e": { + "id": "45246284-428b-44b8-b976-169186544c9e", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 312, + "y": -384 + } + }, + "1bf7fa77-6cc7-4120-8862-61668a6768bc": { + "id": "1bf7fa77-6cc7-4120-8862-61668a6768bc", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 288, + "y": 1008 + }, + "children": [ + "418a21fb-0971-4d1e-bbad-984453cde8bf", + "7024613f-625c-4dc8-8ebf-9f6b885d4142", + "3562d05e-c36f-422c-b9c0-44dd803c64c7", + "b2ecc51c-39f6-48c9-9176-586e2ac5f2ef" + ] + }, + "418a21fb-0971-4d1e-bbad-984453cde8bf": { + "id": "418a21fb-0971-4d1e-bbad-984453cde8bf", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 528, + "y": 924 + }, + "children": [ + "17c1ea6f-6b58-45d3-9457-4ac747100654", + "b9d620f1-7c32-423b-bab4-dc50183a602d" + ] + }, + "7024613f-625c-4dc8-8ebf-9f6b885d4142": { + "id": "7024613f-625c-4dc8-8ebf-9f6b885d4142", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 528, + "y": 1080 + }, + "children": [ + "1a77bfb7-6ec1-4414-bcdf-7f5c8ea05e0a", + "9501a1ea-d5d4-4437-b008-5901df5a3155" + ] + }, + "8289c2a3-9316-4a88-a2cd-b1f36d22d315": { + "id": "8289c2a3-9316-4a88-a2cd-b1f36d22d315", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "sameNum", + "min": 2, + "max": 4 + }, + "display": { + "x": 720, + "y": -228 + } + }, + "65cd19af-85ed-4007-b276-cd4784c9e2eb": { + "id": "65cd19af-85ed-4007-b276-cd4784c9e2eb", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 720, + "y": 96 + }, + "children": [ + "f60a1323-ca6a-43cc-bd26-ef5a3c5c750c", + "5c2c3259-96a7-4d01-85dd-9b89bbf95d9e", + "bec1e9bc-4be0-47ff-8a69-f2211bd68011", + "886ee374-f912-4bd0-8095-b3961096e536" + ] + }, + "886ee374-f912-4bd0-8095-b3961096e536": { + "id": "886ee374-f912-4bd0-8095-b3961096e536", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 804, + "y": 240 + }, + "children": [ + "8ad87cb8-b5cc-456f-bf95-ba0d0b0b9cf4", + "a8daa59d-2bba-4fc5-b0d8-9e8dbb6a3329" + ] + }, + "a8daa59d-2bba-4fc5-b0d8-9e8dbb6a3329": { + "id": "a8daa59d-2bba-4fc5-b0d8-9e8dbb6a3329", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betIsOk", + "gIPValue": "@1" + }, + "display": { + "x": 1008, + "y": 300 + } + }, + "5c2c3259-96a7-4d01-85dd-9b89bbf95d9e": { + "id": "5c2c3259-96a7-4d01-85dd-9b89bbf95d9e", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "betIsOk", + "value": 0, + "cmp": 2 + }, + "display": { + "x": 984, + "y": 96 + } + }, + "630af409-8ad9-44c6-8686-29a39b94d392": { + "id": "630af409-8ad9-44c6-8686-29a39b94d392", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betIsOk", + "gIPValue": "@0" + }, + "display": { + "x": 324, + "y": 312 + } + }, + "b2ecc51c-39f6-48c9-9176-586e2ac5f2ef": { + "id": "b2ecc51c-39f6-48c9-9176-586e2ac5f2ef", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "betCoin", + "cmp": 0 + }, + "display": { + "x": 600, + "y": 1488 + } + }, + "4cf9a0a2-32b6-4aff-826a-f7d6e69726c7": { + "id": "4cf9a0a2-32b6-4aff-826a-f7d6e69726c7", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 84, + "y": 348 + }, + "children": [ + "630af409-8ad9-44c6-8686-29a39b94d392", + "8992bffc-13af-4cb0-ab3b-fb37424be47e", + "9dc23b33-85ab-4010-85cc-bb61b1cb1b89" + ] + }, + "8992bffc-13af-4cb0-ab3b-fb37424be47e": { + "id": "8992bffc-13af-4cb0-ab3b-fb37424be47e", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 300, + "y": 384 + } + }, + "9dc23b33-85ab-4010-85cc-bb61b1cb1b89": { + "id": "9dc23b33-85ab-4010-85cc-bb61b1cb1b89", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 300, + "y": 456 + } + }, + "de240ce6-74f8-4c15-8f6f-f0486d98cf93": { + "id": "de240ce6-74f8-4c15-8f6f-f0486d98cf93", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 948, + "y": 372 + } + }, + "3868f9e0-f1f2-4927-9b75-f4049a3f5fa6": { + "id": "3868f9e0-f1f2-4927-9b75-f4049a3f5fa6", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": -360, + "y": 144 + }, + "children": [ + "a0833ec6-4c79-491d-8983-58ccae4d0329", + "3fb1e974-7d51-4a6f-9701-fe001c3bd3a3", + "19403a37-6769-4911-a71c-cb49f92a47b4", + "e683afae-4710-4113-9c6a-ffde88d780a1" + ] + }, + "3fb1e974-7d51-4a6f-9701-fe001c3bd3a3": { + "id": "3fb1e974-7d51-4a6f-9701-fe001c3bd3a3", + "name": "MemSequence", + "category": "composite", + "title": "MemSequence", + "description": "", + "properties": {}, + "display": { + "x": -48, + "y": 60 + }, + "children": [ + "8ee2e525-0e10-4339-9fc1-091059a33a3b", + "96caa228-3af2-4e17-846d-41975eff29eb", + "4cf9a0a2-32b6-4aff-826a-f7d6e69726c7" + ] + }, + "96caa228-3af2-4e17-846d-41975eff29eb": { + "id": "96caa228-3af2-4e17-846d-41975eff29eb", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 468, + "y": 192 + }, + "children": [ + "e85533fb-029e-4366-8c59-d98768b9d994", + "de240ce6-74f8-4c15-8f6f-f0486d98cf93" + ] + }, + "e85533fb-029e-4366-8c59-d98768b9d994": { + "id": "e85533fb-029e-4366-8c59-d98768b9d994", + "name": "Inverter", + "category": "decorator", + "title": "Inverter", + "description": "", + "properties": {}, + "display": { + "x": 588, + "y": 72 + }, + "child": "65cd19af-85ed-4007-b276-cd4784c9e2eb" + }, + "5731b7b0-8447-43cf-8754-303d98a3634a": { + "id": "5731b7b0-8447-43cf-8754-303d98a3634a", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 216, + "y": -672 + } + }, + "9c95a923-029b-49d7-bf78-48c9842dc0dc": { + "id": "9c95a923-029b-49d7-bf78-48c9842dc0dc", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "takeCoinDiv", + "min": 10, + "max": 30 + }, + "display": { + "x": 936, + "y": 1188 + } + }, + "3562d05e-c36f-422c-b9c0-44dd803c64c7": { + "id": "3562d05e-c36f-422c-b9c0-44dd803c64c7", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 528, + "y": 1224 + }, + "children": [ + "8b13cab6-11cb-496e-81db-3fb2c38113e1", + "9c95a923-029b-49d7-bf78-48c9842dc0dc", + "86c9f692-be00-4d13-88a2-289f80251c60", + "6fecd80b-3aa1-465e-a723-174c44c46213", + "2bd2caca-136a-4e2c-9822-722df79a15be" + ] + }, + "86c9f692-be00-4d13-88a2-289f80251c60": { + "id": "86c9f692-be00-4d13-88a2-289f80251c60", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "takeCoin" + }, + "display": { + "x": 924, + "y": 1236 + } + }, + "2bd2caca-136a-4e2c-9822-722df79a15be": { + "id": "2bd2caca-136a-4e2c-9822-722df79a15be", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "takeCoin", + "cmp": 0 + }, + "display": { + "x": 912, + "y": 1428 + } + }, + "8b13cab6-11cb-496e-81db-3fb2c38113e1": { + "id": "8b13cab6-11cb-496e-81db-3fb2c38113e1", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "takeCoinDiv" + }, + "display": { + "x": 972, + "y": 1140 + } + }, + "6fecd80b-3aa1-465e-a723-174c44c46213": { + "id": "6fecd80b-3aa1-465e-a723-174c44c46213", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 936, + "y": 1344 + } + } + }, + "display": { + "camera_x": 582.9299999917857, + "camera_y": -88.36499998209183, + "camera_z": 0.75, + "x": -480, + "y": 252 + }, + "custom_nodes": [ + { + "version": "0.3.0", + "scope": "node", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "key", + "min": 0, + "max": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 0, + "maxTime": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandomWeightComposite", + "category": "composite", + "title": "RandomWeightComposite()", + "description": "根据权重随机,选择一个子节点。\n权重使用|分割。\n需要注意子节点的顺序,个数需要和权重对应", + "properties": { + "weight": "\"\"" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckBool", + "category": "condition", + "title": "CheckBool()", + "description": "检查一个黑板的key值", + "properties": { + "keyName": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "key", + "value": 0, + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LogAction", + "category": "action", + "title": "LogAction(,)", + "description": "输出日志", + "properties": { + "info": "info", + "level": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetPct", + "category": "action", + "title": "RVBBetPct(,)", + "description": "红黑下注\ngIPpct 下注百分比,黑板key 支持@\ngIPArea 下注区域,黑板key 支持@", + "properties": { + "gIPpct": "key", + "gIPArea": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBLastWinArea", + "category": "action", + "title": "RVBLastWinArea()", + "description": "获得最后的下注结果保存到key,没有返回失败", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {} + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerLastWinOrLost", + "category": "condition", + "title": "CheckPlayerLastWinOrLost(,)", + "description": "检查玩家上次输赢情况\ngIPLResult 比较值 支持@\ncmp 比较", + "properties": { + "gIPLResult": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "key", + "gIPValue": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetCoin", + "category": "action", + "title": "RVBBetCoin(,)", + "description": "红黑押注\ngIPBetCoin 押注金额 支持@\ngIPArea 押注区域支持@", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBCheckBetCoin", + "category": "action", + "title": "RVBCheckBetCoin(,)", + "description": "修正押注金额,保存到黑板key\ngIPSrcCoin 押注金额支持@\ngINSaveCoin 保存后key", + "properties": { + "gIPSrcCoin": "key", + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBHistoryIsSame", + "category": "condition", + "title": "RVBHistoryIsSame()", + "description": "判定是上几局都是相同的结果", + "properties": { + "gIPNum": "key", + "num": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTHistoryIsSame", + "category": "condition", + "title": "DVTHistoryIsSame()", + "description": "判定是上几局都是相同的结果\ngIPNum 支持@", + "properties": { + "gIPNum": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTLastWinArea", + "category": "action", + "title": "DVTLastWinArea()", + "description": "龙虎最后获胜的区域保存到黑板", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTBetCoin", + "category": "action", + "title": "DVTBetCoin(,)", + "description": "龙虎押注", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTCheckBetCoin", + "category": "action", + "title": "DVTCheckBetCoin(,)", + "description": "龙虎检查下注额度", + "properties": { + "gIPSrcCoin": 0, + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + } + ] +} \ No newline at end of file diff --git a/data/botai/rvbinvertwin.json b/data/botai/rvbinvertwin.json new file mode 100644 index 0000000..6c35203 --- /dev/null +++ b/data/botai/rvbinvertwin.json @@ -0,0 +1,1285 @@ +{ + "version": "0.3.0", + "scope": "tree", + "id": "bcbcd98d-0a18-4edc-80a0-f1ac01fbb289", + "title": "RVBInvertWinBot", + "description": "反龙 倍投", + "root": "5e8ef189-1c68-4e2d-96a2-093a9260e4c5", + "properties": {}, + "nodes": { + "04a7e3aa-fbc7-4eee-855b-0be19910dbc2": { + "id": "04a7e3aa-fbc7-4eee-855b-0be19910dbc2", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 744, + "y": -240 + } + }, + "d82746db-e3c3-4c20-a798-f4929bb7bc58": { + "id": "d82746db-e3c3-4c20-a798-f4929bb7bc58", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 360, + "y": -84 + }, + "children": [ + "04a7e3aa-fbc7-4eee-855b-0be19910dbc2", + "7ee1ee6e-7a67-431d-b74a-86dcf4d7c736", + "9a735735-d5e2-4ad9-a25c-1aa3102a097c", + "22f65664-750a-4786-86f7-0b1a55caf32f", + "7eab985d-b081-4b8d-9e47-0f936888da5e", + "c10981f9-a77c-4d35-80f7-83108bd43a15", + "132af4ee-8feb-4c71-8702-0d34384b5a7c" + ] + }, + "22169c28-d742-4508-8753-3568224e6965": { + "id": "22169c28-d742-4508-8753-3568224e6965", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "betSrcCoin", + "min": 2, + "max": 6 + }, + "display": { + "x": 324, + "y": -480 + } + }, + "e78284a9-88a0-4db9-9cc7-4c481b5085df": { + "id": "e78284a9-88a0-4db9-9cc7-4c481b5085df", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 1056, + "y": 192 + } + }, + "509f2c7a-9091-429e-a713-750250e50aa8": { + "id": "509f2c7a-9091-429e-a713-750250e50aa8", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 600, + "maxTime": 1200 + }, + "display": { + "x": 1092, + "y": 336 + } + }, + "9a735735-d5e2-4ad9-a25c-1aa3102a097c": { + "id": "9a735735-d5e2-4ad9-a25c-1aa3102a097c", + "name": "RVBHistoryIsSame", + "category": "condition", + "title": "RVBHistoryIsSame()", + "description": "判定是上几局都是相同的结果", + "properties": { + "gIPNum": "sameNum", + "num": 3 + }, + "display": { + "x": 768, + "y": -132 + } + }, + "22f65664-750a-4786-86f7-0b1a55caf32f": { + "id": "22f65664-750a-4786-86f7-0b1a55caf32f", + "name": "RVBLastWinArea", + "category": "action", + "title": "RVBLastWinArea()", + "description": "获得最后的下注结果保存到key,没有返回失败", + "properties": { + "gINKey": "betArea" + }, + "display": { + "x": 744, + "y": -84 + } + }, + "bfd009ae-3e5c-4f60-8939-17d4216e65d7": { + "id": "bfd009ae-3e5c-4f60-8939-17d4216e65d7", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 24, + "y": 1044 + }, + "children": [ + "2099f74a-10b9-47fa-8fb6-7f09c56892c2", + "c9bfe3cf-4d62-48b5-8ee0-364b25ff174e", + "5f63726c-7922-4fcf-b393-05cf6e0c6bf7", + "cd38883a-38c9-4e1e-bc09-3dea72740355" + ] + }, + "2099f74a-10b9-47fa-8fb6-7f09c56892c2": { + "id": "2099f74a-10b9-47fa-8fb6-7f09c56892c2", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 4 + }, + "display": { + "x": 264, + "y": 924 + } + }, + "13e3c21b-919b-4608-8c4f-156c275b8f01": { + "id": "13e3c21b-919b-4608-8c4f-156c275b8f01", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "saveLimit", + "cmp": 0 + }, + "display": { + "x": 912, + "y": 948 + } + }, + "243c4715-ef1d-46c4-aa1a-7a1cea7640d8": { + "id": "243c4715-ef1d-46c4-aa1a-7a1cea7640d8", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "saveLimit" + }, + "display": { + "x": 900, + "y": 876 + } + }, + "5f63726c-7922-4fcf-b393-05cf6e0c6bf7": { + "id": "5f63726c-7922-4fcf-b393-05cf6e0c6bf7", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 500, + "maxTime": 3500 + }, + "display": { + "x": 252, + "y": 1200 + } + }, + "cd38883a-38c9-4e1e-bc09-3dea72740355": { + "id": "cd38883a-38c9-4e1e-bc09-3dea72740355", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {}, + "display": { + "x": 216, + "y": 1344 + } + }, + "1b9c36d2-95ac-401f-8da9-1cad33396832": { + "id": "1b9c36d2-95ac-401f-8da9-1cad33396832", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "maxGameNum", + "cmp": 4 + }, + "display": { + "x": 960, + "y": 1128 + } + }, + "ca9584e7-ec24-447c-811e-d986401ce76d": { + "id": "ca9584e7-ec24-447c-811e-d986401ce76d", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "maxGameNum", + "min": 40, + "max": 80 + }, + "display": { + "x": 936, + "y": 1044 + } + }, + "2be54f8d-7266-4246-86e8-8174fb4bf191": { + "id": "2be54f8d-7266-4246-86e8-8174fb4bf191", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "生成初始押注额度", + "properties": {}, + "display": { + "x": 84, + "y": -420 + }, + "children": [ + "191cc1aa-c2fd-41d6-aa56-1b9a440de6ba", + "34adecfc-97b9-4d6c-a62f-0397acffb5dd", + "1c3b2110-eb51-4aa5-bef8-cfa3960f5e80", + "22169c28-d742-4508-8753-3568224e6965", + "7045671b-03f0-4490-8f3f-1b5e5f4eca86", + "f519275f-63b3-4491-a588-72f36f9dbf17", + "c236ac94-5ed8-4c3e-8504-30d6d632aa6c", + "3c3872e0-36fc-496a-89a6-7dae8248f7f7" + ] + }, + "34adecfc-97b9-4d6c-a62f-0397acffb5dd": { + "id": "34adecfc-97b9-4d6c-a62f-0397acffb5dd", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "needStartBet", + "value": 0, + "cmp": 2 + }, + "display": { + "x": 300, + "y": -576 + } + }, + "1c3b2110-eb51-4aa5-bef8-cfa3960f5e80": { + "id": "1c3b2110-eb51-4aa5-bef8-cfa3960f5e80", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue": "@1" + }, + "display": { + "x": 324, + "y": -528 + } + }, + "2a1e554f-1b42-410d-874b-d3fc859f76fe": { + "id": "2a1e554f-1b42-410d-874b-d3fc859f76fe", + "name": "RVBBetCoin", + "category": "action", + "title": "RVBBetCoin(,)", + "description": "红黑押注\ngIPBetCoin 押注金额 支持@\ngIPArea 押注区域支持@", + "properties": { + "gIPBetCoin": "betCoin", + "gIPArea": "betArea" + }, + "display": { + "x": 1116, + "y": 408 + } + }, + "3c3872e0-36fc-496a-89a6-7dae8248f7f7": { + "id": "3c3872e0-36fc-496a-89a6-7dae8248f7f7", + "name": "RVBCheckBetCoin", + "category": "action", + "title": "RVBCheckBetCoin(,)", + "description": "修正押注金额,保存到黑板key\ngIPSrcCoin 押注金额支持@\ngINSaveCoin 保存后key", + "properties": { + "gIPSrcCoin": "betSrcCoin", + "gINSaveCoin": "betSrcCoin" + }, + "display": { + "x": 372, + "y": -276 + } + }, + "7eab985d-b081-4b8d-9e47-0f936888da5e": { + "id": "7eab985d-b081-4b8d-9e47-0f936888da5e", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "betCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "needStartBet" + }, + "display": { + "x": 816, + "y": -24 + } + }, + "c10981f9-a77c-4d35-80f7-83108bd43a15": { + "id": "c10981f9-a77c-4d35-80f7-83108bd43a15", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue1": "needStartBet", + "gIPValue2": "@2" + }, + "display": { + "x": 804, + "y": 24 + } + }, + "2e099a8f-9b75-4f55-a62c-80dbe1ea0c66": { + "id": "2e099a8f-9b75-4f55-a62c-80dbe1ea0c66", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 192, + "y": 684 + }, + "children": [ + "8590d78b-fa12-4811-87f2-8e60b63aa1c8", + "9be91e8d-2024-457f-9c4e-e9d6ba1eb89a", + "3de2a4dd-b7f7-476f-9f40-58f1588cddeb" + ] + }, + "8590d78b-fa12-4811-87f2-8e60b63aa1c8": { + "id": "8590d78b-fa12-4811-87f2-8e60b63aa1c8", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 4 + }, + "display": { + "x": 408, + "y": 612 + } + }, + "9be91e8d-2024-457f-9c4e-e9d6ba1eb89a": { + "id": "9be91e8d-2024-457f-9c4e-e9d6ba1eb89a", + "name": "CheckPlayerLastWinOrLost", + "category": "condition", + "title": "CheckPlayerLastWinOrLost(,)", + "description": "检查玩家上次输赢情况\ngIPLResult 比较值 支持@\ncmp 比较", + "properties": { + "gIPLResult": "@1", + "cmp": 2 + }, + "display": { + "x": 480, + "y": 684 + } + }, + "3de2a4dd-b7f7-476f-9f40-58f1588cddeb": { + "id": "3de2a4dd-b7f7-476f-9f40-58f1588cddeb", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "needStartBet", + "gIPValue": "@0" + }, + "display": { + "x": 468, + "y": 756 + } + }, + "7045671b-03f0-4490-8f3f-1b5e5f4eca86": { + "id": "7045671b-03f0-4490-8f3f-1b5e5f4eca86", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "playerCoin" + }, + "display": { + "x": 312, + "y": -432 + } + }, + "f519275f-63b3-4491-a588-72f36f9dbf17": { + "id": "f519275f-63b3-4491-a588-72f36f9dbf17", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "playerCoin" + }, + "display": { + "x": 384, + "y": -384 + } + }, + "c236ac94-5ed8-4c3e-8504-30d6d632aa6c": { + "id": "c236ac94-5ed8-4c3e-8504-30d6d632aa6c", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 360, + "y": -336 + } + }, + "c9bfe3cf-4d62-48b5-8ee0-364b25ff174e": { + "id": "c9bfe3cf-4d62-48b5-8ee0-364b25ff174e", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 336, + "y": 1056 + }, + "children": [ + "e31db30e-34af-4e2e-b65b-6be86e089141", + "9a2d8fb2-f8fa-4782-8c62-81da19d633a3", + "41e3bada-b468-4a60-9115-090e440bd49a", + "455c4049-1886-4ab0-8609-c9d3fd0d8263" + ] + }, + "e31db30e-34af-4e2e-b65b-6be86e089141": { + "id": "e31db30e-34af-4e2e-b65b-6be86e089141", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 576, + "y": 972 + }, + "children": [ + "243c4715-ef1d-46c4-aa1a-7a1cea7640d8", + "13e3c21b-919b-4608-8c4f-156c275b8f01" + ] + }, + "9a2d8fb2-f8fa-4782-8c62-81da19d633a3": { + "id": "9a2d8fb2-f8fa-4782-8c62-81da19d633a3", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 576, + "y": 1128 + }, + "children": [ + "ca9584e7-ec24-447c-811e-d986401ce76d", + "1b9c36d2-95ac-401f-8da9-1cad33396832" + ] + }, + "7ee1ee6e-7a67-431d-b74a-86dcf4d7c736": { + "id": "7ee1ee6e-7a67-431d-b74a-86dcf4d7c736", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "sameNum", + "min": 3, + "max": 5 + }, + "display": { + "x": 768, + "y": -180 + } + }, + "2c51e0ee-4d4f-43c2-8419-0d66ada2fdb1": { + "id": "2c51e0ee-4d4f-43c2-8419-0d66ada2fdb1", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 816, + "y": 276 + }, + "children": [ + "e78284a9-88a0-4db9-9cc7-4c481b5085df", + "3ef80a4a-aa41-4d47-b06f-847af6ee0e93", + "509f2c7a-9091-429e-a713-750250e50aa8", + "464528f0-4195-4946-8279-fb3bbc0b37e3" + ] + }, + "464528f0-4195-4946-8279-fb3bbc0b37e3": { + "id": "464528f0-4195-4946-8279-fb3bbc0b37e3", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 900, + "y": 420 + }, + "children": [ + "2a1e554f-1b42-410d-874b-d3fc859f76fe", + "af0c68f9-fc34-4a05-86bc-3f7d2d17830b" + ] + }, + "af0c68f9-fc34-4a05-86bc-3f7d2d17830b": { + "id": "af0c68f9-fc34-4a05-86bc-3f7d2d17830b", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betIsOk", + "gIPValue": "@1" + }, + "display": { + "x": 1104, + "y": 480 + } + }, + "3ef80a4a-aa41-4d47-b06f-847af6ee0e93": { + "id": "3ef80a4a-aa41-4d47-b06f-847af6ee0e93", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "betIsOk", + "value": 0, + "cmp": 2 + }, + "display": { + "x": 1080, + "y": 276 + } + }, + "b9901516-891a-496f-9d09-4905203f905d": { + "id": "b9901516-891a-496f-9d09-4905203f905d", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betIsOk", + "gIPValue": "@0" + }, + "display": { + "x": 372, + "y": 360 + } + }, + "455c4049-1886-4ab0-8609-c9d3fd0d8263": { + "id": "455c4049-1886-4ab0-8609-c9d3fd0d8263", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "betCoin", + "cmp": 0 + }, + "display": { + "x": 660, + "y": 1524 + } + }, + "99088e7a-2b9f-4a9f-8df3-b1bb39366142": { + "id": "99088e7a-2b9f-4a9f-8df3-b1bb39366142", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 132, + "y": 396 + }, + "children": [ + "b9901516-891a-496f-9d09-4905203f905d", + "9eefd3d3-d61e-46af-808e-cd298da3bef7", + "9575b0af-999d-413f-8b99-713dd3fa59d8" + ] + }, + "9eefd3d3-d61e-46af-808e-cd298da3bef7": { + "id": "9eefd3d3-d61e-46af-808e-cd298da3bef7", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 348, + "y": 432 + } + }, + "9575b0af-999d-413f-8b99-713dd3fa59d8": { + "id": "9575b0af-999d-413f-8b99-713dd3fa59d8", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 348, + "y": 504 + } + }, + "a7da2d4a-9556-4049-8855-b24190414a8b": { + "id": "a7da2d4a-9556-4049-8855-b24190414a8b", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 1044, + "y": 552 + } + }, + "5e8ef189-1c68-4e2d-96a2-093a9260e4c5": { + "id": "5e8ef189-1c68-4e2d-96a2-093a9260e4c5", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": -312, + "y": 192 + }, + "children": [ + "2be54f8d-7266-4246-86e8-8174fb4bf191", + "c3e8cb6f-4d62-47d3-af65-f876e4afcf44", + "2e099a8f-9b75-4f55-a62c-80dbe1ea0c66", + "bfd009ae-3e5c-4f60-8939-17d4216e65d7" + ] + }, + "c3e8cb6f-4d62-47d3-af65-f876e4afcf44": { + "id": "c3e8cb6f-4d62-47d3-af65-f876e4afcf44", + "name": "MemSequence", + "category": "composite", + "title": "MemSequence", + "description": "", + "properties": {}, + "display": { + "x": 0, + "y": 108 + }, + "children": [ + "d82746db-e3c3-4c20-a798-f4929bb7bc58", + "c7deb35f-1a13-4025-95eb-7a284ecd3385", + "99088e7a-2b9f-4a9f-8df3-b1bb39366142" + ] + }, + "c7deb35f-1a13-4025-95eb-7a284ecd3385": { + "id": "c7deb35f-1a13-4025-95eb-7a284ecd3385", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 564, + "y": 312 + }, + "children": [ + "4afdfe17-63c5-49f8-a97a-62a64b7f2dc6", + "a7da2d4a-9556-4049-8855-b24190414a8b" + ] + }, + "4afdfe17-63c5-49f8-a97a-62a64b7f2dc6": { + "id": "4afdfe17-63c5-49f8-a97a-62a64b7f2dc6", + "name": "Inverter", + "category": "decorator", + "title": "Inverter", + "description": "", + "properties": {}, + "display": { + "x": 684, + "y": 252 + }, + "child": "2c51e0ee-4d4f-43c2-8419-0d66ada2fdb1" + }, + "191cc1aa-c2fd-41d6-aa56-1b9a440de6ba": { + "id": "191cc1aa-c2fd-41d6-aa56-1b9a440de6ba", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 264, + "y": -624 + } + }, + "132af4ee-8feb-4c71-8702-0d34384b5a7c": { + "id": "132af4ee-8feb-4c71-8702-0d34384b5a7c", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 660, + "y": 96 + }, + "children": [ + "73a509d2-7eb1-4666-8a29-53c9a0fc0f4e", + "72e53829-3919-43fe-afc9-e3e02ede7ffe" + ] + }, + "73a509d2-7eb1-4666-8a29-53c9a0fc0f4e": { + "id": "73a509d2-7eb1-4666-8a29-53c9a0fc0f4e", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 996, + "y": 72 + }, + "children": [ + "b436f8d6-18cc-4f03-8b91-90d43c2969b8", + "941cfa1c-5228-41d3-b37e-eb1b35890235" + ] + }, + "b436f8d6-18cc-4f03-8b91-90d43c2969b8": { + "id": "b436f8d6-18cc-4f03-8b91-90d43c2969b8", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "betArea", + "value": 0, + "cmp": 2 + }, + "display": { + "x": 1260, + "y": -48 + } + }, + "941cfa1c-5228-41d3-b37e-eb1b35890235": { + "id": "941cfa1c-5228-41d3-b37e-eb1b35890235", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betArea", + "gIPValue": "@1" + }, + "display": { + "x": 1284, + "y": 12 + } + }, + "72e53829-3919-43fe-afc9-e3e02ede7ffe": { + "id": "72e53829-3919-43fe-afc9-e3e02ede7ffe", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 996, + "y": 120 + }, + "children": [ + "4f1b9b1c-ba0e-4647-8506-15158a24707e", + "0b7f9248-bd04-444f-85b1-cfd06be650ee" + ] + }, + "4f1b9b1c-ba0e-4647-8506-15158a24707e": { + "id": "4f1b9b1c-ba0e-4647-8506-15158a24707e", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "betArea", + "value": 1, + "cmp": 2 + }, + "display": { + "x": 1284, + "y": 60 + } + }, + "0b7f9248-bd04-444f-85b1-cfd06be650ee": { + "id": "0b7f9248-bd04-444f-85b1-cfd06be650ee", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "betArea", + "gIPValue": "@0" + }, + "display": { + "x": 1308, + "y": 120 + } + }, + "0da9990b-5d53-4bbe-8e9f-4d6b9066746d": { + "id": "0da9990b-5d53-4bbe-8e9f-4d6b9066746d", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "takeCoinDiv", + "min": 10, + "max": 30 + }, + "display": { + "x": 924, + "y": 1188 + } + }, + "41e3bada-b468-4a60-9115-090e440bd49a": { + "id": "41e3bada-b468-4a60-9115-090e440bd49a", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 576, + "y": 1236 + }, + "children": [ + "0da9990b-5d53-4bbe-8e9f-4d6b9066746d", + "20475fe6-09d0-4813-8cdc-1736deba8418", + "7ce22449-b59a-40be-8f1b-5bcf2ce0754e", + "d08a6179-81dd-4431-84ff-f623c888d4a8", + "7046f547-8d2e-43d3-a8b6-822386ae6e0e" + ] + }, + "20475fe6-09d0-4813-8cdc-1736deba8418": { + "id": "20475fe6-09d0-4813-8cdc-1736deba8418", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "takeCoin" + }, + "display": { + "x": 912, + "y": 1236 + } + }, + "7046f547-8d2e-43d3-a8b6-822386ae6e0e": { + "id": "7046f547-8d2e-43d3-a8b6-822386ae6e0e", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "takeCoin", + "cmp": 0 + }, + "display": { + "x": 900, + "y": 1428 + } + }, + "7ce22449-b59a-40be-8f1b-5bcf2ce0754e": { + "id": "7ce22449-b59a-40be-8f1b-5bcf2ce0754e", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "takeCoinDiv" + }, + "display": { + "x": 960, + "y": 1296 + } + }, + "d08a6179-81dd-4431-84ff-f623c888d4a8": { + "id": "d08a6179-81dd-4431-84ff-f623c888d4a8", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 924, + "y": 1356 + } + } + }, + "display": { + "camera_x": 616.7549999991315, + "camera_y": -272.9800000007963, + "camera_z": 0.75, + "x": -540, + "y": 180 + }, + "custom_nodes": [ + { + "version": "0.3.0", + "scope": "node", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "key", + "min": 0, + "max": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 0, + "maxTime": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandomWeightComposite", + "category": "composite", + "title": "RandomWeightComposite()", + "description": "根据权重随机,选择一个子节点。\n权重使用|分割。\n需要注意子节点的顺序,个数需要和权重对应", + "properties": { + "weight": "\"\"" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckBool", + "category": "condition", + "title": "CheckBool()", + "description": "检查一个黑板的key值", + "properties": { + "keyName": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "key", + "value": 0, + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LogAction", + "category": "action", + "title": "LogAction(,)", + "description": "输出日志", + "properties": { + "info": "info", + "level": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetPct", + "category": "action", + "title": "RVBBetPct(,)", + "description": "红黑下注\ngIPpct 下注百分比,黑板key 支持@\ngIPArea 下注区域,黑板key 支持@", + "properties": { + "gIPpct": "key", + "gIPArea": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBLastWinArea", + "category": "action", + "title": "RVBLastWinArea()", + "description": "获得最后的下注结果保存到key,没有返回失败", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {} + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerLastWinOrLost", + "category": "condition", + "title": "CheckPlayerLastWinOrLost(,)", + "description": "检查玩家上次输赢情况\ngIPLResult 比较值 支持@\ncmp 比较", + "properties": { + "gIPLResult": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "key", + "gIPValue": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetCoin", + "category": "action", + "title": "RVBBetCoin(,)", + "description": "红黑押注\ngIPBetCoin 押注金额 支持@\ngIPArea 押注区域支持@", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBCheckBetCoin", + "category": "action", + "title": "RVBCheckBetCoin(,)", + "description": "修正押注金额,保存到黑板key\ngIPSrcCoin 押注金额支持@\ngINSaveCoin 保存后key", + "properties": { + "gIPSrcCoin": "key", + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBHistoryIsSame", + "category": "condition", + "title": "RVBHistoryIsSame()", + "description": "判定是上几局都是相同的结果", + "properties": { + "gIPNum": "key", + "num": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTHistoryIsSame", + "category": "condition", + "title": "DVTHistoryIsSame()", + "description": "判定是上几局都是相同的结果\ngIPNum 支持@", + "properties": { + "gIPNum": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTLastWinArea", + "category": "action", + "title": "DVTLastWinArea()", + "description": "龙虎最后获胜的区域保存到黑板", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTBetCoin", + "category": "action", + "title": "DVTBetCoin(,)", + "description": "龙虎押注", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTCheckBetCoin", + "category": "action", + "title": "DVTCheckBetCoin(,)", + "description": "龙虎检查下注额度", + "properties": { + "gIPSrcCoin": 0, + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + } + ] +} \ No newline at end of file diff --git a/data/botai/rvbrandom.json b/data/botai/rvbrandom.json new file mode 100644 index 0000000..54fe92c --- /dev/null +++ b/data/botai/rvbrandom.json @@ -0,0 +1,1026 @@ +{ + "version": "0.3.0", + "scope": "tree", + "id": "7dc34556-b453-4e90-8fa4-468cb40c1a94", + "title": "RVBRandomBot", + "description": "随机下注", + "root": "61acd76e-6aed-4df1-8e46-a86644fd41d3", + "properties": {}, + "nodes": { + "7a63cc18-b09a-489b-98c9-e3aec5ebb761": { + "id": "7a63cc18-b09a-489b-98c9-e3aec5ebb761", + "name": "MemSequence", + "category": "composite", + "title": "MemSequence", + "description": "", + "properties": {}, + "display": { + "x": 312, + "y": -348 + }, + "children": [ + "636e84b3-e817-452f-874c-7f4146eef5ba", + "0db31a0d-b752-4850-8402-a2c8f95a3651", + "b716de05-b53b-4cb4-be2a-49a2961a38d5", + "82ef36d0-175c-4045-9aed-f900e51f649c" + ] + }, + "0db31a0d-b752-4850-8402-a2c8f95a3651": { + "id": "0db31a0d-b752-4850-8402-a2c8f95a3651", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 100, + "maxTime": 4000 + }, + "display": { + "x": 696, + "y": -420 + } + }, + "b716de05-b53b-4cb4-be2a-49a2961a38d5": { + "id": "b716de05-b53b-4cb4-be2a-49a2961a38d5", + "name": "RandomWeightComposite", + "category": "composite", + "title": "RandomWeightComposite()", + "description": "根据权重随机,选择一个子节点。\n权重使用|分割。\n需要注意子节点的顺序,个数需要和权重对应", + "properties": { + "weight": "10|100" + }, + "display": { + "x": 684, + "y": -264 + }, + "children": [ + "44b72066-4117-42fc-8c11-12e641ac7963", + "61296429-2d2f-4ea2-88f7-e0bbd6f881d3" + ] + }, + "61acd76e-6aed-4df1-8e46-a86644fd41d3": { + "id": "61acd76e-6aed-4df1-8e46-a86644fd41d3", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 108, + "y": 324 + }, + "children": [ + "7a63cc18-b09a-489b-98c9-e3aec5ebb761", + "a95b1a70-8eb6-41e3-b938-8d88cfb807de" + ] + }, + "a95b1a70-8eb6-41e3-b938-8d88cfb807de": { + "id": "a95b1a70-8eb6-41e3-b938-8d88cfb807de", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 360, + "y": 564 + }, + "children": [ + "397dc2cf-c281-4992-a858-069be6a1b791", + "db5bac79-6fb0-43c8-a119-09925c126e28", + "67ac5481-3e6f-4612-a33a-a431d09163ef", + "4176b141-6c22-47f0-b03f-de940e092514" + ] + }, + "397dc2cf-c281-4992-a858-069be6a1b791": { + "id": "397dc2cf-c281-4992-a858-069be6a1b791", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 4 + }, + "display": { + "x": 600, + "y": 444 + } + }, + "f3b1d188-97d4-4a39-9623-5f21eda87ca1": { + "id": "f3b1d188-97d4-4a39-9623-5f21eda87ca1", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "saveLimit", + "cmp": 0 + }, + "display": { + "x": 1248, + "y": 468 + } + }, + "1d3e262c-ec24-45af-8138-9a12d624edcc": { + "id": "1d3e262c-ec24-45af-8138-9a12d624edcc", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "saveLimit" + }, + "display": { + "x": 1236, + "y": 396 + } + }, + "67ac5481-3e6f-4612-a33a-a431d09163ef": { + "id": "67ac5481-3e6f-4612-a33a-a431d09163ef", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 500, + "maxTime": 3000 + }, + "display": { + "x": 588, + "y": 720 + } + }, + "4176b141-6c22-47f0-b03f-de940e092514": { + "id": "4176b141-6c22-47f0-b03f-de940e092514", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {}, + "display": { + "x": 564, + "y": 912 + } + }, + "451ea4cd-408b-48fe-852d-a38711db5357": { + "id": "451ea4cd-408b-48fe-852d-a38711db5357", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "maxGameNum", + "cmp": 4 + }, + "display": { + "x": 1296, + "y": 648 + } + }, + "32d3b272-ee17-45ef-8681-c8593701d96a": { + "id": "32d3b272-ee17-45ef-8681-c8593701d96a", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "maxGameNum", + "min": 50, + "max": 80 + }, + "display": { + "x": 1272, + "y": 564 + } + }, + "db5bac79-6fb0-43c8-a119-09925c126e28": { + "id": "db5bac79-6fb0-43c8-a119-09925c126e28", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 672, + "y": 576 + }, + "children": [ + "1efd066c-8ed8-4b1c-8ebd-257c45afafc5", + "62c3db0e-241c-4497-8b06-fecdf5e8d10e", + "e053f60d-7c4b-4810-925f-364a5a6f7f97", + "a9836e66-89c0-4805-bc00-d001854fb972" + ] + }, + "1efd066c-8ed8-4b1c-8ebd-257c45afafc5": { + "id": "1efd066c-8ed8-4b1c-8ebd-257c45afafc5", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 912, + "y": 492 + }, + "children": [ + "1d3e262c-ec24-45af-8138-9a12d624edcc", + "f3b1d188-97d4-4a39-9623-5f21eda87ca1" + ] + }, + "62c3db0e-241c-4497-8b06-fecdf5e8d10e": { + "id": "62c3db0e-241c-4497-8b06-fecdf5e8d10e", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 912, + "y": 648 + }, + "children": [ + "32d3b272-ee17-45ef-8681-c8593701d96a", + "451ea4cd-408b-48fe-852d-a38711db5357" + ] + }, + "a9836e66-89c0-4805-bc00-d001854fb972": { + "id": "a9836e66-89c0-4805-bc00-d001854fb972", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "betCoin", + "cmp": 0 + }, + "display": { + "x": 1008, + "y": 1104 + } + }, + "e6e7396f-2b1a-4d80-858a-51e5b7781d28": { + "id": "e6e7396f-2b1a-4d80-858a-51e5b7781d28", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "betSrcCoin", + "min": 15, + "max": 35 + }, + "display": { + "x": 720, + "y": -792 + } + }, + "636e84b3-e817-452f-874c-7f4146eef5ba": { + "id": "636e84b3-e817-452f-874c-7f4146eef5ba", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "生成初始押注额度", + "properties": {}, + "display": { + "x": 468, + "y": -672 + }, + "children": [ + "6354ee40-1eb7-4117-96c0-ca164c722f97", + "e6e7396f-2b1a-4d80-858a-51e5b7781d28", + "06b2fa81-958e-492d-844c-63ec253a45c6", + "1bcebd0c-d082-4dde-9f5d-f54162699ee7", + "982002cc-2646-41c3-84b6-8c610e1c087f", + "cc63113d-9572-43e7-8f23-f6ca0678b796", + "871ccb22-30c2-4d0a-9d52-534ad305de4b" + ] + }, + "cc63113d-9572-43e7-8f23-f6ca0678b796": { + "id": "cc63113d-9572-43e7-8f23-f6ca0678b796", + "name": "RVBCheckBetCoin", + "category": "action", + "title": "RVBCheckBetCoin(,)", + "description": "修正押注金额,保存到黑板key\ngIPSrcCoin 押注金额支持@\ngINSaveCoin 保存后key", + "properties": { + "gIPSrcCoin": "betSrcCoin", + "gINSaveCoin": "betCoin" + }, + "display": { + "x": 756, + "y": -552 + } + }, + "06b2fa81-958e-492d-844c-63ec253a45c6": { + "id": "06b2fa81-958e-492d-844c-63ec253a45c6", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "playerCoin" + }, + "display": { + "x": 708, + "y": -732 + } + }, + "982002cc-2646-41c3-84b6-8c610e1c087f": { + "id": "982002cc-2646-41c3-84b6-8c610e1c087f", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 756, + "y": -612 + } + }, + "6354ee40-1eb7-4117-96c0-ca164c722f97": { + "id": "6354ee40-1eb7-4117-96c0-ca164c722f97", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 648, + "y": -876 + } + }, + "871ccb22-30c2-4d0a-9d52-534ad305de4b": { + "id": "871ccb22-30c2-4d0a-9d52-534ad305de4b", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "betArea", + "min": 0, + "max": 2 + }, + "display": { + "x": 708, + "y": -492 + } + }, + "82ef36d0-175c-4045-9aed-f900e51f649c": { + "id": "82ef36d0-175c-4045-9aed-f900e51f649c", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 444, + "y": -72 + }, + "children": [ + "ef706ab5-b108-4475-97a3-c8336c48b451", + "01308bf4-dcb1-437f-810e-31d0487a4c9e" + ] + }, + "ef706ab5-b108-4475-97a3-c8336c48b451": { + "id": "ef706ab5-b108-4475-97a3-c8336c48b451", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 1 + }, + "display": { + "x": 636, + "y": -96 + } + }, + "01308bf4-dcb1-437f-810e-31d0487a4c9e": { + "id": "01308bf4-dcb1-437f-810e-31d0487a4c9e", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 624, + "y": -12 + } + }, + "c0da4159-f259-4881-9c52-1e41cc8aa75e": { + "id": "c0da4159-f259-4881-9c52-1e41cc8aa75e", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 300, + "maxTime": 900 + }, + "display": { + "x": 1464, + "y": -444 + } + }, + "25c0e6a3-b5b8-4be2-a168-83bde0188ba9": { + "id": "25c0e6a3-b5b8-4be2-a168-83bde0188ba9", + "name": "RVBBetCoin", + "category": "action", + "title": "RVBBetCoin(,)", + "description": "红黑押注\ngIPBetCoin 押注金额 支持@\ngIPArea 押注区域支持@", + "properties": { + "gIPBetCoin": "betCoin", + "gIPArea": "@2" + }, + "display": { + "x": 1500, + "y": -360 + } + }, + "e18e1e73-ff91-4a13-892c-78719aab101d": { + "id": "e18e1e73-ff91-4a13-892c-78719aab101d", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 1272, + "y": -408 + }, + "children": [ + "c0da4159-f259-4881-9c52-1e41cc8aa75e", + "25c0e6a3-b5b8-4be2-a168-83bde0188ba9" + ] + }, + "615b29db-284f-4b90-818c-2151ec030aac": { + "id": "615b29db-284f-4b90-818c-2151ec030aac", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 1440, + "y": -276 + } + }, + "44b72066-4117-42fc-8c11-12e641ac7963": { + "id": "44b72066-4117-42fc-8c11-12e641ac7963", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 1008, + "y": -288 + }, + "children": [ + "78a7aff1-616d-4372-9b03-1345ee67aed9", + "615b29db-284f-4b90-818c-2151ec030aac" + ] + }, + "78a7aff1-616d-4372-9b03-1345ee67aed9": { + "id": "78a7aff1-616d-4372-9b03-1345ee67aed9", + "name": "Inverter", + "category": "decorator", + "title": "Inverter", + "description": "", + "properties": {}, + "display": { + "x": 1140, + "y": -372 + }, + "child": "e18e1e73-ff91-4a13-892c-78719aab101d" + }, + "05965a4d-b80a-40f0-899e-da9291c589aa": { + "id": "05965a4d-b80a-40f0-899e-da9291c589aa", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 200, + "maxTime": 600 + }, + "display": { + "x": 1476, + "y": -180 + } + }, + "7f387e61-6dfb-4e92-8123-4f8a46dcfce6": { + "id": "7f387e61-6dfb-4e92-8123-4f8a46dcfce6", + "name": "RVBBetCoin", + "category": "action", + "title": "RVBBetCoin(,)", + "description": "红黑押注\ngIPBetCoin 押注金额 支持@\ngIPArea 押注区域支持@", + "properties": { + "gIPBetCoin": "betCoin", + "gIPArea": "betArea" + }, + "display": { + "x": 1512, + "y": -96 + } + }, + "6fc1821d-dba7-408a-8297-bdcff52b2750": { + "id": "6fc1821d-dba7-408a-8297-bdcff52b2750", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 1284, + "y": -144 + }, + "children": [ + "05965a4d-b80a-40f0-899e-da9291c589aa", + "7f387e61-6dfb-4e92-8123-4f8a46dcfce6" + ] + }, + "fb22c1ec-6b73-4e0c-8332-069407b31bb6": { + "id": "fb22c1ec-6b73-4e0c-8332-069407b31bb6", + "name": "Runner", + "category": "action", + "title": "Runner", + "description": "", + "properties": {}, + "display": { + "x": 1428, + "y": 12 + } + }, + "61296429-2d2f-4ea2-88f7-e0bbd6f881d3": { + "id": "61296429-2d2f-4ea2-88f7-e0bbd6f881d3", + "name": "Priority", + "category": "composite", + "title": "Priority", + "description": "", + "properties": {}, + "display": { + "x": 1020, + "y": -24 + }, + "children": [ + "555526d7-e9c7-46fd-892f-2dafa22ddc78", + "fb22c1ec-6b73-4e0c-8332-069407b31bb6" + ] + }, + "555526d7-e9c7-46fd-892f-2dafa22ddc78": { + "id": "555526d7-e9c7-46fd-892f-2dafa22ddc78", + "name": "Inverter", + "category": "decorator", + "title": "Inverter", + "description": "", + "properties": {}, + "display": { + "x": 1152, + "y": -108 + }, + "child": "6fc1821d-dba7-408a-8297-bdcff52b2750" + }, + "1bcebd0c-d082-4dde-9f5d-f54162699ee7": { + "id": "1bcebd0c-d082-4dde-9f5d-f54162699ee7", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "betSrcCoin", + "gIPValue1": "betSrcCoin", + "gIPValue2": "playerCoin" + }, + "display": { + "x": 780, + "y": -672 + } + }, + "a445b081-8aeb-4a8d-859e-337c2c599763": { + "id": "a445b081-8aeb-4a8d-859e-337c2c599763", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "takeCoinDiv", + "min": 5, + "max": 40 + }, + "display": { + "x": 1284, + "y": 720 + } + }, + "e053f60d-7c4b-4810-925f-364a5a6f7f97": { + "id": "e053f60d-7c4b-4810-925f-364a5a6f7f97", + "name": "Sequence", + "category": "composite", + "title": "Sequence", + "description": "", + "properties": {}, + "display": { + "x": 912, + "y": 768 + }, + "children": [ + "a445b081-8aeb-4a8d-859e-337c2c599763", + "04848730-ff32-4fde-b3a4-1fb1a39af240", + "be0f13cd-8aa5-4c15-8333-c69d4cd339ef", + "6cd3023a-d433-45a9-8bbe-a99a828d3be6", + "e47faeae-783f-4cca-8c91-91b7ac112009" + ] + }, + "04848730-ff32-4fde-b3a4-1fb1a39af240": { + "id": "04848730-ff32-4fde-b3a4-1fb1a39af240", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "takeCoin" + }, + "display": { + "x": 1272, + "y": 768 + } + }, + "e47faeae-783f-4cca-8c91-91b7ac112009": { + "id": "e47faeae-783f-4cca-8c91-91b7ac112009", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "takeCoin", + "cmp": 0 + }, + "display": { + "x": 1260, + "y": 960 + } + }, + "be0f13cd-8aa5-4c15-8333-c69d4cd339ef": { + "id": "be0f13cd-8aa5-4c15-8333-c69d4cd339ef", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "takeCoinDiv" + }, + "display": { + "x": 1320, + "y": 828 + } + }, + "6cd3023a-d433-45a9-8bbe-a99a828d3be6": { + "id": "6cd3023a-d433-45a9-8bbe-a99a828d3be6", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "takeCoin", + "gIPValue1": "takeCoin", + "gIPValue2": "@100" + }, + "display": { + "x": 1284, + "y": 888 + } + } + }, + "display": { + "camera_x": 285.7500000118962, + "camera_y": 135.66499998217478, + "camera_z": 0.75, + "x": -96, + "y": 324 + }, + "custom_nodes": [ + { + "version": "0.3.0", + "scope": "node", + "name": "RVBSceneState", + "category": "condition", + "title": "RVBSceneState()", + "description": "红黑场景状态判定\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandIntAction", + "category": "action", + "title": "RandIntAction(,,)", + "description": "随机获得一个[min,max)的整数,保存到黑板的index key中", + "properties": { + "index": "key", + "min": 0, + "max": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandWait", + "category": "action", + "title": "RandWait(,)", + "description": "节点暂停[minTime,maxTime)毫秒", + "properties": { + "minTime": 0, + "maxTime": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RandomWeightComposite", + "category": "composite", + "title": "RandomWeightComposite()", + "description": "根据权重随机,选择一个子节点。\n权重使用|分割。\n需要注意子节点的顺序,个数需要和权重对应", + "properties": { + "weight": "\"\"" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckBool", + "category": "condition", + "title": "CheckBool()", + "description": "检查一个黑板的key值", + "properties": { + "keyName": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckInt", + "category": "condition", + "title": "CheckInt(,,)", + "description": "检查黑板的一个值和待比较值\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "keyName": "key", + "value": 0, + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LogAction", + "category": "action", + "title": "LogAction(,)", + "description": "输出日志", + "properties": { + "info": "info", + "level": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetPct", + "category": "action", + "title": "RVBBetPct(,)", + "description": "红黑下注\ngIPpct 下注百分比,黑板key 支持@\ngIPArea 下注区域,黑板key 支持@", + "properties": { + "gIPpct": "key", + "gIPArea": 1 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBLastWinArea", + "category": "action", + "title": "RVBLastWinArea()", + "description": "获得最后的下注结果保存到key,没有返回失败", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "LeaveGame", + "category": "action", + "title": "LeaveGame", + "description": "离开游戏", + "properties": {} + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerCoin", + "category": "condition", + "title": "CheckPlayerCoin(,)", + "description": "检查用户金币\ngIPCoin 支持@ 用户需要比较的金币\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPCoin": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetOutLimitCoin", + "category": "action", + "title": "GetOutLimitCoin()", + "description": "获得玩家游戏踢出限制\ngINKey 保存到黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerGameNum", + "category": "condition", + "title": "CheckPlayerGameNum(,)", + "description": "检查用户游戏次数\ngIPGameNum支持@ 用户需要游戏次数\ncmp 比较\t\n 0 //小于\n 1 //小于等于\n 2 //等于\n 3 //大于\n 4 //大于等于", + "properties": { + "gIPGameNum": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "CheckPlayerLastWinOrLost", + "category": "condition", + "title": "CheckPlayerLastWinOrLost(,)", + "description": "检查玩家上次输赢情况\ngIPLResult 比较值 支持@\ncmp 比较", + "properties": { + "gIPLResult": "key", + "cmp": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntAction", + "category": "action", + "title": "SetIntAction(,)", + "description": "设置int参数值\ngINKey 黑版key值\ngIPValue 设置的值,支持@", + "properties": { + "gINKey": "key", + "gIPValue": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBBetCoin", + "category": "action", + "title": "RVBBetCoin(,)", + "description": "红黑押注\ngIPBetCoin 押注金额 支持@\ngIPArea 押注区域支持@", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBCheckBetCoin", + "category": "action", + "title": "RVBCheckBetCoin(,)", + "description": "修正押注金额,保存到黑板key\ngIPSrcCoin 押注金额支持@\ngINSaveCoin 保存后key", + "properties": { + "gIPSrcCoin": "key", + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntMulti", + "category": "action", + "title": "SetIntMulti(,,)", + "description": "设置乘法,保存数值\ngINKey 保存黑版key\ngIPValue1 v1 支持@\ngIPValue2 v2 支持@", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerCoin", + "category": "action", + "title": "GetPlayerCoin()", + "description": "得到玩家金币\ngINKey 保存key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "SetIntDiv", + "category": "action", + "title": "SetIntDiv(,,)", + "description": "设定除法保存数据到黑板\ngINKey \ngIPValue1\ngIPValue2", + "properties": { + "gINKey": "key", + "gIPValue1": 0, + "gIPValue2": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "RVBHistoryIsSame", + "category": "condition", + "title": "RVBHistoryIsSame()", + "description": "判定是上几局都是相同的结果", + "properties": { + "gIPNum": "key", + "num": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "GetPlayerTakeCoin", + "category": "action", + "title": "GetPlayerTakeCoin()", + "description": "获得玩家入场携带金币\ngINKey 保存黑板key", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTHistoryIsSame", + "category": "condition", + "title": "DVTHistoryIsSame()", + "description": "判定是上几局都是相同的结果\ngIPNum 支持@", + "properties": { + "gIPNum": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTLastWinArea", + "category": "action", + "title": "DVTLastWinArea()", + "description": "龙虎最后获胜的区域保存到黑板", + "properties": { + "gINKey": "key" + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTBetCoin", + "category": "action", + "title": "DVTBetCoin(,)", + "description": "龙虎押注", + "properties": { + "gIPBetCoin": "key", + "gIPArea": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTCheckBetCoin", + "category": "action", + "title": "DVTCheckBetCoin(,)", + "description": "龙虎检查下注额度", + "properties": { + "gIPSrcCoin": 0, + "gINSaveCoin": 0 + } + }, + { + "version": "0.3.0", + "scope": "node", + "name": "DVTSceneState", + "category": "condition", + "title": "DVTSceneState()", + "description": "龙虎状态检查\n0 准备押注\n1 押注\n2 准备开牌\n3 开牌\n4 结算", + "properties": { + "state": 0 + } + } + ] +} \ No newline at end of file diff --git a/data/clientparam.json b/data/clientparam.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/data/clientparam.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/data/clubniceid.json b/data/clubniceid.json new file mode 100644 index 0000000..2512581 --- /dev/null +++ b/data/clubniceid.json @@ -0,0 +1 @@ +{"1000000":true,"1100000":true,"1100111":true,"1100222":true,"1100333":true,"1100444":true,"1100555":true,"1100666":true,"1100777":true,"1100888":true,"1100999":true,"1110000":true,"1111000":true,"1111100":true,"1111110":true,"1111111":true,"1111112":true,"1111113":true,"1111114":true,"1111115":true,"1111116":true,"1111117":true,"1111118":true,"1111119":true,"1111122":true,"1111133":true,"1111144":true,"1111155":true,"1111166":true,"1111177":true,"1111188":true,"1111199":true,"1111222":true,"1111333":true,"1111444":true,"1111555":true,"1111666":true,"1111777":true,"1111888":true,"1111999":true,"1112222":true,"1113333":true,"1114444":true,"1115555":true,"1116666":true,"1117777":true,"1118888":true,"1119999":true,"1122000":true,"1122111":true,"1122222":true,"1122333":true,"1122444":true,"1122555":true,"1122666":true,"1122777":true,"1122888":true,"1122999":true,"1133000":true,"1133111":true,"1133222":true,"1133333":true,"1133444":true,"1133555":true,"1133666":true,"1133777":true,"1133888":true,"1133999":true,"1144000":true,"1144111":true,"1144222":true,"1144333":true,"1144444":true,"1144555":true,"1144666":true,"1144777":true,"1144888":true,"1144999":true,"1155000":true,"1155111":true,"1155222":true,"1155333":true,"1155444":true,"1155555":true,"1155666":true,"1155777":true,"1155888":true,"1155999":true,"1166000":true,"1166111":true,"1166222":true,"1166333":true,"1166444":true,"1166555":true,"1166666":true,"1166777":true,"1166888":true,"1166999":true,"1177000":true,"1177111":true,"1177222":true,"1177333":true,"1177444":true,"1177555":true,"1177666":true,"1177777":true,"1177888":true,"1177999":true,"1188000":true,"1188111":true,"1188222":true,"1188333":true,"1188444":true,"1188555":true,"1188666":true,"1188777":true,"1188888":true,"1188999":true,"1199000":true,"1199111":true,"1199222":true,"1199333":true,"1199444":true,"1199555":true,"1199666":true,"1199777":true,"1199888":true,"1199999":true,"1222222":true,"1234567":true,"1333333":true,"1444444":true,"1555555":true,"1666666":true,"1777777":true,"1888888":true,"1999999":true,"2000000":true,"2111111":true,"2200000":true,"2200111":true,"2200222":true,"2200333":true,"2200444":true,"2200555":true,"2200666":true,"2200777":true,"2200888":true,"2200999":true,"2211000":true,"2211111":true,"2211222":true,"2211333":true,"2211444":true,"2211555":true,"2211666":true,"2211777":true,"2211888":true,"2211999":true,"2220000":true,"2221111":true,"2222000":true,"2222111":true,"2222200":true,"2222211":true,"2222220":true,"2222221":true,"2222222":true,"2222223":true,"2222224":true,"2222225":true,"2222226":true,"2222227":true,"2222228":true,"2222229":true,"2222233":true,"2222244":true,"2222255":true,"2222266":true,"2222277":true,"2222288":true,"2222299":true,"2222333":true,"2222444":true,"2222555":true,"2222666":true,"2222777":true,"2222888":true,"2222999":true,"2223333":true,"2224444":true,"2225555":true,"2226666":true,"2227777":true,"2228888":true,"2229999":true,"2233000":true,"2233111":true,"2233222":true,"2233333":true,"2233444":true,"2233555":true,"2233666":true,"2233777":true,"2233888":true,"2233999":true,"2244000":true,"2244111":true,"2244222":true,"2244333":true,"2244444":true,"2244555":true,"2244666":true,"2244777":true,"2244888":true,"2244999":true,"2255000":true,"2255111":true,"2255222":true,"2255333":true,"2255444":true,"2255555":true,"2255666":true,"2255777":true,"2255888":true,"2255999":true,"2266000":true,"2266111":true,"2266222":true,"2266333":true,"2266444":true,"2266555":true,"2266666":true,"2266777":true,"2266888":true,"2266999":true,"2277000":true,"2277111":true,"2277222":true,"2277333":true,"2277444":true,"2277555":true,"2277666":true,"2277777":true,"2277888":true,"2277999":true,"2288000":true,"2288111":true,"2288222":true,"2288333":true,"2288444":true,"2288555":true,"2288666":true,"2288777":true,"2288888":true,"2288999":true,"2299000":true,"2299111":true,"2299222":true,"2299333":true,"2299444":true,"2299555":true,"2299666":true,"2299777":true,"2299888":true,"2299999":true,"2333333":true,"2345678":true,"2444444":true,"2555555":true,"2666666":true,"2777777":true,"2888888":true,"2999999":true,"3000000":true,"3111111":true,"3222222":true,"3300000":true,"3300111":true,"3300222":true,"3300333":true,"3300444":true,"3300555":true,"3300666":true,"3300777":true,"3300888":true,"3300999":true,"3311000":true,"3311111":true,"3311222":true,"3311333":true,"3311444":true,"3311555":true,"3311666":true,"3311777":true,"3311888":true,"3311999":true,"3322000":true,"3322111":true,"3322222":true,"3322333":true,"3322444":true,"3322555":true,"3322666":true,"3322777":true,"3322888":true,"3322999":true,"3330000":true,"3331111":true,"3332222":true,"3333000":true,"3333111":true,"3333222":true,"3333300":true,"3333311":true,"3333322":true,"3333330":true,"3333331":true,"3333332":true,"3333333":true,"3333334":true,"3333335":true,"3333336":true,"3333337":true,"3333338":true,"3333339":true,"3333344":true,"3333355":true,"3333366":true,"3333377":true,"3333388":true,"3333399":true,"3333444":true,"3333555":true,"3333666":true,"3333777":true,"3333888":true,"3333999":true,"3334444":true,"3335555":true,"3336666":true,"3337777":true,"3338888":true,"3339999":true,"3344000":true,"3344111":true,"3344222":true,"3344333":true,"3344444":true,"3344555":true,"3344666":true,"3344777":true,"3344888":true,"3344999":true,"3355000":true,"3355111":true,"3355222":true,"3355333":true,"3355444":true,"3355555":true,"3355666":true,"3355777":true,"3355888":true,"3355999":true,"3366000":true,"3366111":true,"3366222":true,"3366333":true,"3366444":true,"3366555":true,"3366666":true,"3366777":true,"3366888":true,"3366999":true,"3377000":true,"3377111":true,"3377222":true,"3377333":true,"3377444":true,"3377555":true,"3377666":true,"3377777":true,"3377888":true,"3377999":true,"3388000":true,"3388111":true,"3388222":true,"3388333":true,"3388444":true,"3388555":true,"3388666":true,"3388777":true,"3388888":true,"3388999":true,"3399000":true,"3399111":true,"3399222":true,"3399333":true,"3399444":true,"3399555":true,"3399666":true,"3399777":true,"3399888":true,"3399999":true,"3444444":true,"3456789":true,"3555555":true,"3666666":true,"3777777":true,"3888888":true,"3999999":true,"4000000":true,"4111111":true,"4222222":true,"4333333":true,"4400000":true,"4400111":true,"4400222":true,"4400333":true,"4400444":true,"4400555":true,"4400666":true,"4400777":true,"4400888":true,"4400999":true,"4411000":true,"4411111":true,"4411222":true,"4411333":true,"4411444":true,"4411555":true,"4411666":true,"4411777":true,"4411888":true,"4411999":true,"4422000":true,"4422111":true,"4422222":true,"4422333":true,"4422444":true,"4422555":true,"4422666":true,"4422777":true,"4422888":true,"4422999":true,"4433000":true,"4433111":true,"4433222":true,"4433333":true,"4433444":true,"4433555":true,"4433666":true,"4433777":true,"4433888":true,"4433999":true,"4440000":true,"4441111":true,"4442222":true,"4443333":true,"4444000":true,"4444111":true,"4444222":true,"4444333":true,"4444400":true,"4444411":true,"4444422":true,"4444433":true,"4444440":true,"4444441":true,"4444442":true,"4444443":true,"4444444":true,"4444445":true,"4444446":true,"4444447":true,"4444448":true,"4444449":true,"4444455":true,"4444466":true,"4444477":true,"4444488":true,"4444499":true,"4444555":true,"4444666":true,"4444777":true,"4444888":true,"4444999":true,"4445555":true,"4446666":true,"4447777":true,"4448888":true,"4449999":true,"4455000":true,"4455111":true,"4455222":true,"4455333":true,"4455444":true,"4455555":true,"4455666":true,"4455777":true,"4455888":true,"4455999":true,"4466000":true,"4466111":true,"4466222":true,"4466333":true,"4466444":true,"4466555":true,"4466666":true,"4466777":true,"4466888":true,"4466999":true,"4477000":true,"4477111":true,"4477222":true,"4477333":true,"4477444":true,"4477555":true,"4477666":true,"4477777":true,"4477888":true,"4477999":true,"4488000":true,"4488111":true,"4488222":true,"4488333":true,"4488444":true,"4488555":true,"4488666":true,"4488777":true,"4488888":true,"4488999":true,"4499000":true,"4499111":true,"4499222":true,"4499333":true,"4499444":true,"4499555":true,"4499666":true,"4499777":true,"4499888":true,"4499999":true,"4555555":true,"4666666":true,"4777777":true,"4888888":true,"4999999":true,"5000000":true,"5111111":true,"5222222":true,"5333333":true,"5444444":true,"5500000":true,"5500111":true,"5500222":true,"5500333":true,"5500444":true,"5500555":true,"5500666":true,"5500777":true,"5500888":true,"5500999":true,"5511000":true,"5511111":true,"5511222":true,"5511333":true,"5511444":true,"5511555":true,"5511666":true,"5511777":true,"5511888":true,"5511999":true,"5522000":true,"5522111":true,"5522222":true,"5522333":true,"5522444":true,"5522555":true,"5522666":true,"5522777":true,"5522888":true,"5522999":true,"5533000":true,"5533111":true,"5533222":true,"5533333":true,"5533444":true,"5533555":true,"5533666":true,"5533777":true,"5533888":true,"5533999":true,"5544000":true,"5544111":true,"5544222":true,"5544333":true,"5544444":true,"5544555":true,"5544666":true,"5544777":true,"5544888":true,"5544999":true,"5550000":true,"5551111":true,"5552222":true,"5553333":true,"5554444":true,"5555000":true,"5555111":true,"5555222":true,"5555333":true,"5555444":true,"5555500":true,"5555511":true,"5555522":true,"5555533":true,"5555544":true,"5555550":true,"5555551":true,"5555552":true,"5555553":true,"5555554":true,"5555555":true,"5555556":true,"5555557":true,"5555558":true,"5555559":true,"5555566":true,"5555577":true,"5555588":true,"5555599":true,"5555666":true,"5555777":true,"5555888":true,"5555999":true,"5556666":true,"5557777":true,"5558888":true,"5559999":true,"5566000":true,"5566111":true,"5566222":true,"5566333":true,"5566444":true,"5566555":true,"5566666":true,"5566777":true,"5566888":true,"5566999":true,"5577000":true,"5577111":true,"5577222":true,"5577333":true,"5577444":true,"5577555":true,"5577666":true,"5577777":true,"5577888":true,"5577999":true,"5588000":true,"5588111":true,"5588222":true,"5588333":true,"5588444":true,"5588555":true,"5588666":true,"5588777":true,"5588888":true,"5588999":true,"5599000":true,"5599111":true,"5599222":true,"5599333":true,"5599444":true,"5599555":true,"5599666":true,"5599777":true,"5599888":true,"5599999":true,"5666666":true,"5777777":true,"5888888":true,"5999999":true,"6000000":true,"6111111":true,"6222222":true,"6333333":true,"6444444":true,"6543210":true,"6555555":true,"6600000":true,"6600111":true,"6600222":true,"6600333":true,"6600444":true,"6600555":true,"6600666":true,"6600777":true,"6600888":true,"6600999":true,"6611000":true,"6611111":true,"6611222":true,"6611333":true,"6611444":true,"6611555":true,"6611666":true,"6611777":true,"6611888":true,"6611999":true,"6622000":true,"6622111":true,"6622222":true,"6622333":true,"6622444":true,"6622555":true,"6622666":true,"6622777":true,"6622888":true,"6622999":true,"6633000":true,"6633111":true,"6633222":true,"6633333":true,"6633444":true,"6633555":true,"6633666":true,"6633777":true,"6633888":true,"6633999":true,"6644000":true,"6644111":true,"6644222":true,"6644333":true,"6644444":true,"6644555":true,"6644666":true,"6644777":true,"6644888":true,"6644999":true,"6655000":true,"6655111":true,"6655222":true,"6655333":true,"6655444":true,"6655555":true,"6655666":true,"6655777":true,"6655888":true,"6655999":true,"6660000":true,"6661111":true,"6662222":true,"6663333":true,"6664444":true,"6665555":true,"6666000":true,"6666111":true,"6666222":true,"6666333":true,"6666444":true,"6666555":true,"6666600":true,"6666611":true,"6666622":true,"6666633":true,"6666644":true,"6666655":true,"6666660":true,"6666661":true,"6666662":true,"6666663":true,"6666664":true,"6666665":true,"6666666":true,"6666667":true,"6666668":true,"6666669":true,"6666677":true,"6666688":true,"6666699":true,"6666777":true,"6666888":true,"6666999":true,"6667777":true,"6668888":true,"6669999":true,"6677000":true,"6677111":true,"6677222":true,"6677333":true,"6677444":true,"6677555":true,"6677666":true,"6677777":true,"6677888":true,"6677999":true,"6688000":true,"6688111":true,"6688222":true,"6688333":true,"6688444":true,"6688555":true,"6688666":true,"6688777":true,"6688888":true,"6688999":true,"6699000":true,"6699111":true,"6699222":true,"6699333":true,"6699444":true,"6699555":true,"6699666":true,"6699777":true,"6699888":true,"6699999":true,"6777777":true,"6888888":true,"6999999":true,"7000000":true,"7111111":true,"7222222":true,"7333333":true,"7444444":true,"7555555":true,"7654321":true,"7666666":true,"7700000":true,"7700111":true,"7700222":true,"7700333":true,"7700444":true,"7700555":true,"7700666":true,"7700777":true,"7700888":true,"7700999":true,"7711000":true,"7711111":true,"7711222":true,"7711333":true,"7711444":true,"7711555":true,"7711666":true,"7711777":true,"7711888":true,"7711999":true,"7722000":true,"7722111":true,"7722222":true,"7722333":true,"7722444":true,"7722555":true,"7722666":true,"7722777":true,"7722888":true,"7722999":true,"7733000":true,"7733111":true,"7733222":true,"7733333":true,"7733444":true,"7733555":true,"7733666":true,"7733777":true,"7733888":true,"7733999":true,"7744000":true,"7744111":true,"7744222":true,"7744333":true,"7744444":true,"7744555":true,"7744666":true,"7744777":true,"7744888":true,"7744999":true,"7755000":true,"7755111":true,"7755222":true,"7755333":true,"7755444":true,"7755555":true,"7755666":true,"7755777":true,"7755888":true,"7755999":true,"7766000":true,"7766111":true,"7766222":true,"7766333":true,"7766444":true,"7766555":true,"7766666":true,"7766777":true,"7766888":true,"7766999":true,"7770000":true,"7771111":true,"7772222":true,"7773333":true,"7774444":true,"7775555":true,"7776666":true,"7777000":true,"7777111":true,"7777222":true,"7777333":true,"7777444":true,"7777555":true,"7777666":true,"7777700":true,"7777711":true,"7777722":true,"7777733":true,"7777744":true,"7777755":true,"7777766":true,"7777770":true,"7777771":true,"7777772":true,"7777773":true,"7777774":true,"7777775":true,"7777776":true,"7777777":true,"7777778":true,"7777779":true,"7777788":true,"7777799":true,"7777888":true,"7777999":true,"7778888":true,"7779999":true,"7788000":true,"7788111":true,"7788222":true,"7788333":true,"7788444":true,"7788555":true,"7788666":true,"7788777":true,"7788888":true,"7788999":true,"7799000":true,"7799111":true,"7799222":true,"7799333":true,"7799444":true,"7799555":true,"7799666":true,"7799777":true,"7799888":true,"7799999":true,"7888888":true,"7999999":true,"8000000":true,"8111111":true,"8222222":true,"8333333":true,"8444444":true,"8555555":true,"8666666":true,"8765432":true,"8777777":true,"8800000":true,"8800111":true,"8800222":true,"8800333":true,"8800444":true,"8800555":true,"8800666":true,"8800777":true,"8800888":true,"8800999":true,"8811000":true,"8811111":true,"8811222":true,"8811333":true,"8811444":true,"8811555":true,"8811666":true,"8811777":true,"8811888":true,"8811999":true,"8822000":true,"8822111":true,"8822222":true,"8822333":true,"8822444":true,"8822555":true,"8822666":true,"8822777":true,"8822888":true,"8822999":true,"8833000":true,"8833111":true,"8833222":true,"8833333":true,"8833444":true,"8833555":true,"8833666":true,"8833777":true,"8833888":true,"8833999":true,"8844000":true,"8844111":true,"8844222":true,"8844333":true,"8844444":true,"8844555":true,"8844666":true,"8844777":true,"8844888":true,"8844999":true,"8855000":true,"8855111":true,"8855222":true,"8855333":true,"8855444":true,"8855555":true,"8855666":true,"8855777":true,"8855888":true,"8855999":true,"8866000":true,"8866111":true,"8866222":true,"8866333":true,"8866444":true,"8866555":true,"8866666":true,"8866777":true,"8866888":true,"8866999":true,"8877000":true,"8877111":true,"8877222":true,"8877333":true,"8877444":true,"8877555":true,"8877666":true,"8877777":true,"8877888":true,"8877999":true,"8880000":true,"8881111":true,"8882222":true,"8883333":true,"8884444":true,"8885555":true,"8886666":true,"8887777":true,"8888000":true,"8888111":true,"8888222":true,"8888333":true,"8888444":true,"8888555":true,"8888666":true,"8888777":true,"8888800":true,"8888811":true,"8888822":true,"8888833":true,"8888844":true,"8888855":true,"8888866":true,"8888877":true,"8888880":true,"8888881":true,"8888882":true,"8888883":true,"8888884":true,"8888885":true,"8888886":true,"8888887":true,"8888888":true,"8888889":true,"8888899":true,"8888999":true,"8889999":true,"8899000":true,"8899111":true,"8899222":true,"8899333":true,"8899444":true,"8899555":true,"8899666":true,"8899777":true,"8899888":true,"8899999":true,"8999999":true,"9000000":true,"9111111":true,"9222222":true,"9333333":true,"9444444":true,"9555555":true,"9666666":true,"9777777":true,"9876543":true,"9888888":true,"9900000":true,"9900111":true,"9900222":true,"9900333":true,"9900444":true,"9900555":true,"9900666":true,"9900777":true,"9900888":true,"9900999":true,"9911000":true,"9911111":true,"9911222":true,"9911333":true,"9911444":true,"9911555":true,"9911666":true,"9911777":true,"9911888":true,"9911999":true,"9922000":true,"9922111":true,"9922222":true,"9922333":true,"9922444":true,"9922555":true,"9922666":true,"9922777":true,"9922888":true,"9922999":true,"9933000":true,"9933111":true,"9933222":true,"9933333":true,"9933444":true,"9933555":true,"9933666":true,"9933777":true,"9933888":true,"9933999":true,"9944000":true,"9944111":true,"9944222":true,"9944333":true,"9944444":true,"9944555":true,"9944666":true,"9944777":true,"9944888":true,"9944999":true,"9955000":true,"9955111":true,"9955222":true,"9955333":true,"9955444":true,"9955555":true,"9955666":true,"9955777":true,"9955888":true,"9955999":true,"9966000":true,"9966111":true,"9966222":true,"9966333":true,"9966444":true,"9966555":true,"9966666":true,"9966777":true,"9966888":true,"9966999":true,"9977000":true,"9977111":true,"9977222":true,"9977333":true,"9977444":true,"9977555":true,"9977666":true,"9977777":true,"9977888":true,"9977999":true,"9988000":true,"9988111":true,"9988222":true,"9988333":true,"9988444":true,"9988555":true,"9988666":true,"9988777":true,"9988888":true,"9988999":true,"9990000":true,"9991111":true,"9992222":true,"9993333":true,"9994444":true,"9995555":true,"9996666":true,"9997777":true,"9998888":true,"9999000":true,"9999111":true,"9999222":true,"9999333":true,"9999444":true,"9999555":true,"9999666":true,"9999777":true,"9999888":true,"9999900":true,"9999911":true,"9999922":true,"9999933":true,"9999944":true,"9999955":true,"9999966":true,"9999977":true,"9999988":true,"9999990":true,"9999991":true,"9999992":true,"9999993":true,"9999994":true,"9999995":true,"9999996":true,"9999997":true,"9999998":true,"9999999":true} \ No newline at end of file diff --git a/data/fishingparam.json b/data/fishingparam.json new file mode 100644 index 0000000..9ca7252 --- /dev/null +++ b/data/fishingparam.json @@ -0,0 +1,60 @@ +{ + "Wa":100000, + "Ramax":1.02, + "Ramin":0.97, + "Hmax_chu":20000, + "Hmin_chu":-15000, + "Beta_chu":0.001, + "Alpha_chu":0.0015, + "Hmax_zho":50000, + "Hmin_zho":-50000, + "Beta_zho":0.001, + "Alpha_zho":0.001, + "Hmax_gao":100000, + "Hmin_gao":-150000, + "Beta_gao":0.0005, + "Alpha_gao":0.0005, + "R1":1, + "Theta":0.5, + "P1":10000, + "Rp1":1.01, + "P2":30000, + "Rp2":1.001, + "Rp3":1, + "D1":2000, + "Rd1":1.01, + "D2":5000, + "Rd2":1.001, + "Rd3":1, + "Tmin":0, + "R2":1, + "Rtmin":0.5, + "Rtmin2":0, + "Delta_chu":0.00003, + "Delta_zho":0.00001, + "Delta_gao":0.00001, + "JackpotRate":0.01, + "JackpotOne":3, + "JackpotTwo":5, + "JackpotThreeRate":12, + "JackpotFourRate":80, + "JackpotD1":5, + "JackpotD2":3, + "JackpotD3":2, + "JackpotD4":1, + "JackpotBate1":500000, + "JackpotBate2":5000000, + "JackpotBate3":50000000, + "JackpotCoin1":5000, + "JackpotCoin2":50000, + "JackpotCoin3":500000, + "PranaRatio": 0.01, + "PranaECoin":2000, + "PranaMCoin":20000, + "PranaHCoin":200000, + "FishDealY1":15, + "FishDealY2":13, + "FishDealY3":10, + "FishDealY4":0, + "SignRate": 30 +} \ No newline at end of file diff --git a/data/fishpath/path.json b/data/fishpath/path.json new file mode 100644 index 0000000..f630728 --- /dev/null +++ b/data/fishpath/path.json @@ -0,0 +1 @@ +{"count":3,"pools":[{"id":-1,"type":2,"scatter":0,"s_obj":{"helix":0,"h_obj":{"offset":0},"custom":0,"c_obj":{"start":0,"offset":0}},"move":0,"m_obj":{"sx":0,"sy":0,"ex":0,"ey":0,"sp":0},"points":[{"x":-464,"y":-77,"stay":0},{"x":354,"y":1175,"stay":100},{"x":1352,"y":1038,"stay":50},{"x":897,"y":-374,"stay":50}],"stay":200,"length":3986}],"maxId":3,"lastEdit":1} \ No newline at end of file diff --git a/data/gameconfig/angeruncle.json b/data/gameconfig/angeruncle.json new file mode 100644 index 0000000..baa0c61 --- /dev/null +++ b/data/gameconfig/angeruncle.json @@ -0,0 +1,17 @@ +{ + "GameName":"Angeruncle", + "GameId": 606, + "GameMode":[0], + "SceneType":[1,2,3,99], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/avengers.json b/data/gameconfig/avengers.json new file mode 100644 index 0000000..94a853a --- /dev/null +++ b/data/gameconfig/avengers.json @@ -0,0 +1,17 @@ +{ + "GameName":"复仇者联盟", + "GameId":302, + "GameMode":[0], + "SceneType":[1,2,3,4], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/baccarat.json b/data/gameconfig/baccarat.json new file mode 100644 index 0000000..99a04a4 --- /dev/null +++ b/data/gameconfig/baccarat.json @@ -0,0 +1,19 @@ +{ + "GameName":"百家乐", + "GameId":103, + "GameMode":[0], + "SceneType":[1], + "CanForceStart":false, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":false, + "PerGameTakeCard":100, + "ViewLogCnt":-1, + "BetState":0, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/blackjack.json b/data/gameconfig/blackjack.json new file mode 100644 index 0000000..899b561 --- /dev/null +++ b/data/gameconfig/blackjack.json @@ -0,0 +1,17 @@ +{ + "GameName":"二十一点", + "GameId":206, + "GameMode":[0], + "SceneType":[1,2,3,4,99], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":5, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/caishen.json b/data/gameconfig/caishen.json new file mode 100644 index 0000000..45540b1 --- /dev/null +++ b/data/gameconfig/caishen.json @@ -0,0 +1,17 @@ +{ + "GameName":"财神", + "GameId":301, + "GameMode":[0], + "SceneType":[1,2,3,4], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/candy.json b/data/gameconfig/candy.json new file mode 100644 index 0000000..508d477 --- /dev/null +++ b/data/gameconfig/candy.json @@ -0,0 +1,17 @@ +{ + "GameName":"糖果", + "GameId":601, + "GameMode":[0], + "SceneType":[1], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/caothap.json b/data/gameconfig/caothap.json new file mode 100644 index 0000000..8c8af4e --- /dev/null +++ b/data/gameconfig/caothap.json @@ -0,0 +1,17 @@ +{ + "GameName":"CaoThap", + "GameId":605, + "GameMode":[0], + "SceneType":[1], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/chesstitians.json b/data/gameconfig/chesstitians.json new file mode 100644 index 0000000..f6cc8eb --- /dev/null +++ b/data/gameconfig/chesstitians.json @@ -0,0 +1,17 @@ +{ + "GameName":"Chess", + "GameId":501, + "GameMode":[0], + "SceneType":[1,2], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":2, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/chesstitians_cambodian.json b/data/gameconfig/chesstitians_cambodian.json new file mode 100644 index 0000000..bc9b70b --- /dev/null +++ b/data/gameconfig/chesstitians_cambodian.json @@ -0,0 +1,17 @@ +{ + "GameName":"ChessCambodian", + "GameId":521, + "GameMode":[0], + "SceneType":[1,2], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":2, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/chesstitians_cambodian_robot.json b/data/gameconfig/chesstitians_cambodian_robot.json new file mode 100644 index 0000000..94dcd95 --- /dev/null +++ b/data/gameconfig/chesstitians_cambodian_robot.json @@ -0,0 +1,17 @@ +{ + "GameName":"ChessCambodianRobot", + "GameId":522, + "GameMode":[0], + "SceneType":[1,2], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":2, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/chesstitians_makruk.json b/data/gameconfig/chesstitians_makruk.json new file mode 100644 index 0000000..a62e2d8 --- /dev/null +++ b/data/gameconfig/chesstitians_makruk.json @@ -0,0 +1,17 @@ +{ + "GameName":"ChessMakruk", + "GameId":511, + "GameMode":[0], + "SceneType":[1,2], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":2, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/dezhoupoker.json b/data/gameconfig/dezhoupoker.json new file mode 100644 index 0000000..e3db9d6 --- /dev/null +++ b/data/gameconfig/dezhoupoker.json @@ -0,0 +1,17 @@ +{ + "GameName":"德州扑克", + "GameId":201, + "GameMode":[0], + "SceneType":[1,2,3,99], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/dragonvstiger.json b/data/gameconfig/dragonvstiger.json new file mode 100644 index 0000000..3d0d27b --- /dev/null +++ b/data/gameconfig/dragonvstiger.json @@ -0,0 +1,18 @@ +{ + "GameName":"106", + "GameId":12, + "GameMode":[0], + "CanForceStart":false, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":false, + "PerGameTakeCard":100, + "ViewLogCnt":-1, + "BetState":0, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/easterisland.json b/data/gameconfig/easterisland.json new file mode 100644 index 0000000..087e548 --- /dev/null +++ b/data/gameconfig/easterisland.json @@ -0,0 +1,17 @@ +{ + "GameName":"复活岛", + "GameId":303, + "GameMode":[0], + "SceneType":[1,2,3,4], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/fishing-5.json b/data/gameconfig/fishing-5.json new file mode 100644 index 0000000..a16b528 --- /dev/null +++ b/data/gameconfig/fishing-5.json @@ -0,0 +1,17 @@ +{ + "GameName":"捕鱼", + "GameId":402, + "GameMode":[0], + "SceneType":[1,2,3,4], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/fishing.json b/data/gameconfig/fishing.json new file mode 100644 index 0000000..ae3545d --- /dev/null +++ b/data/gameconfig/fishing.json @@ -0,0 +1,17 @@ +{ + "GameName":"捕鱼", + "GameId":401, + "GameMode":[0], + "SceneType":[1,2,3,4], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/fruits.json b/data/gameconfig/fruits.json new file mode 100644 index 0000000..1a15d62 --- /dev/null +++ b/data/gameconfig/fruits.json @@ -0,0 +1,17 @@ +{ + "GameName":"水果拉霸", + "GameId":306, + "GameMode":[0], + "SceneType":[1,2,3,4], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/hundredyxx.json b/data/gameconfig/hundredyxx.json new file mode 100644 index 0000000..24afe1f --- /dev/null +++ b/data/gameconfig/hundredyxx.json @@ -0,0 +1,18 @@ +{ + "GameName":"鱼虾蟹", + "GameId":102, + "GameMode":[0], + "CanForceStart":false, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":false, + "PerGameTakeCard":100, + "ViewLogCnt":40, + "BetState":1, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/iceage.json b/data/gameconfig/iceage.json new file mode 100644 index 0000000..9e82aab --- /dev/null +++ b/data/gameconfig/iceage.json @@ -0,0 +1,17 @@ +{ + "GameName":"冰河世纪", + "GameId":304, + "GameMode":[0], + "SceneType":[1,2,3], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/luckydice.json b/data/gameconfig/luckydice.json new file mode 100644 index 0000000..e4224cc --- /dev/null +++ b/data/gameconfig/luckydice.json @@ -0,0 +1,17 @@ +{ + "GameName":"幸运骰子", + "GameId":604, + "GameMode":[0], + "SceneType":[1], + "CanForceStart":true, + "MinPlayerCnt":9, + "DefaultPlayerCnt":9, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/minipoker.json b/data/gameconfig/minipoker.json new file mode 100644 index 0000000..19d175f --- /dev/null +++ b/data/gameconfig/minipoker.json @@ -0,0 +1,17 @@ +{ + "GameName":"MiniPoker", + "GameId":602, + "GameMode":[0], + "SceneType":[1], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/richblessed.json b/data/gameconfig/richblessed.json new file mode 100644 index 0000000..2daa4a3 --- /dev/null +++ b/data/gameconfig/richblessed.json @@ -0,0 +1,17 @@ +{ + "GameName":"多财多福", + "GameId":307, + "GameMode":[0], + "SceneType":[1,2,3,4], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/rollcoin.json b/data/gameconfig/rollcoin.json new file mode 100644 index 0000000..a7738d9 --- /dev/null +++ b/data/gameconfig/rollcoin.json @@ -0,0 +1,18 @@ +{ + "GameName":"奔驰宝马", + "GameId":108, + "GameMode":[0], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "ViewLogCnt":20, + "BetState":1, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/rollpoint.json b/data/gameconfig/rollpoint.json new file mode 100644 index 0000000..c900070 --- /dev/null +++ b/data/gameconfig/rollpoint.json @@ -0,0 +1,18 @@ +{ + "GameName":"骰宝", + "GameId":104, + "GameMode":[0], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "ViewLogCnt":40, + "BetState":1, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/roulette.json b/data/gameconfig/roulette.json new file mode 100644 index 0000000..ca2e6bc --- /dev/null +++ b/data/gameconfig/roulette.json @@ -0,0 +1,19 @@ +{ + "GameName":"轮盘", + "GameId":105, + "GameMode":[0], + "SceneType": [1], + "CanForceStart":false, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":false, + "PerGameTakeCard":100, + "ViewLogCnt":72, + "BetState":1, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/samloc.json b/data/gameconfig/samloc.json new file mode 100644 index 0000000..0cc9be0 --- /dev/null +++ b/data/gameconfig/samloc.json @@ -0,0 +1,17 @@ +{ + "GameName":"SamLoc", + "GameId":230, + "GameMode":[0], + "SceneType":[1,2,3,99], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":5, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/smallrocket.json b/data/gameconfig/smallrocket.json new file mode 100644 index 0000000..5ec06ce --- /dev/null +++ b/data/gameconfig/smallrocket.json @@ -0,0 +1,17 @@ +{ + "GameName":"smallrocket", + "GameId":607, + "GameMode":[0], + "SceneType":[1,2,3,99], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":100000, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tala.json b/data/gameconfig/tala.json new file mode 100644 index 0000000..5d83ec6 --- /dev/null +++ b/data/gameconfig/tala.json @@ -0,0 +1,17 @@ +{ + "GameName":"TaLa", + "GameId":220, + "GameMode":[0], + "SceneType":[1,2,3,99], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tamquoc.json b/data/gameconfig/tamquoc.json new file mode 100644 index 0000000..cbe4194 --- /dev/null +++ b/data/gameconfig/tamquoc.json @@ -0,0 +1,17 @@ +{ + "GameName":"百战成神", + "GameId":305, + "GameMode":[0], + "SceneType":[1,2,3], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/thirteen4.json b/data/gameconfig/thirteen4.json new file mode 100644 index 0000000..53f42c9 --- /dev/null +++ b/data/gameconfig/thirteen4.json @@ -0,0 +1,22 @@ +{ + "GameName":"十三张", + "GameId":211, + "GameMode":[0], + "SceneType":[1,2,3,4,5,6], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":7, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + {"Name":"PlayerNum", "AliasName":"pn", "Desc":"人数选项,0四人1八人", "Min":0, "Max":1, "Default":0, "Value":[4,8], "CustomIndex":1 }, + {"Name":"BaiPai", "AliasName":"bp", "Desc":"摆牌方式,0自动1手动", "Min":0, "Max":1, "Default":0, "CustomIndex":-1 }, + {"Name":"Time", "AliasName":"t", "Desc":"摆牌时间", "Min":30, "Max":90, "Default":30, "CustomIndex":-1 }, + {"Name":"Base", "AliasName":"b", "Desc":"底分选项", "Min":50, "Max":50000, "Default":50, "CustomIndex":6 }, + {"Name":"LaiZi", "AliasName":"lz", "Desc":"癞子,0没有1有", "Min":0, "Max":1, "Default":0, "CustomIndex":-1 } + ] +} \ No newline at end of file diff --git a/data/gameconfig/thirteen8.json b/data/gameconfig/thirteen8.json new file mode 100644 index 0000000..df2a27e --- /dev/null +++ b/data/gameconfig/thirteen8.json @@ -0,0 +1,22 @@ +{ + "GameName":"十三张", + "GameId":212, + "GameMode":[0], + "SceneType":[1,2,3,4,5,6], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":8, + "MaxIndex":7, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + {"Name":"PlayerNum", "AliasName":"pn", "Desc":"人数选项,0四人1八人", "Min":0, "Max":1, "Default":0, "Value":[4,8], "CustomIndex":1 }, + {"Name":"BaiPai", "AliasName":"bp", "Desc":"摆牌方式,0自动1手动", "Min":0, "Max":1, "Default":0, "CustomIndex":-1 }, + {"Name":"Time", "AliasName":"t", "Desc":"摆牌时间", "Min":30, "Max":90, "Default":30, "CustomIndex":-1 }, + {"Name":"Base", "AliasName":"b", "Desc":"底分选项", "Min":50, "Max":50000, "Default":50, "CustomIndex":-1 }, + {"Name":"LaiZi", "AliasName":"lz", "Desc":"癞子,0没有1有", "Min":0, "Max":1, "Default":0, "CustomIndex":-1 } + ] +} \ No newline at end of file diff --git a/data/gameconfig/thirteenfree.json b/data/gameconfig/thirteenfree.json new file mode 100644 index 0000000..addd243 --- /dev/null +++ b/data/gameconfig/thirteenfree.json @@ -0,0 +1,22 @@ +{ + "GameName":"十三张", + "GameId":213, + "GameMode":[0], + "SceneType":[1,2,3], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":8, + "MaxIndex":7, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + {"Name":"PlayerNum", "AliasName":"pn", "Desc":"人数选项,0四人1八人", "Min":0, "Max":1, "Default":0, "Value":[4,8], "CustomIndex":1 }, + {"Name":"BaiPai", "AliasName":"bp", "Desc":"摆牌方式,0自动1手动", "Min":0, "Max":1, "Default":0, "CustomIndex":-1 }, + {"Name":"Time", "AliasName":"t", "Desc":"摆牌时间", "Min":30, "Max":90, "Default":30, "CustomIndex":-1 }, + {"Name":"Base", "AliasName":"b", "Desc":"底分选项", "Min":50, "Max":50000, "Default":50, "CustomIndex":-1 }, + {"Name":"LaiZi", "AliasName":"lz", "Desc":"癞子,0没有1有", "Min":0, "Max":1, "Default":0, "CustomIndex":-1 } + ] +} \ No newline at end of file diff --git a/data/gameconfig/thirteenfreelaizi.json b/data/gameconfig/thirteenfreelaizi.json new file mode 100644 index 0000000..866bf22 --- /dev/null +++ b/data/gameconfig/thirteenfreelaizi.json @@ -0,0 +1,22 @@ +{ + "GameName":"十三张", + "GameId":214, + "GameMode":[0], + "SceneType":[1,2,3], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":8, + "MaxIndex":7, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + {"Name":"PlayerNum", "AliasName":"pn", "Desc":"人数选项,0四人1八人", "Min":0, "Max":1, "Default":0, "Value":[4,8], "CustomIndex":1 }, + {"Name":"BaiPai", "AliasName":"bp", "Desc":"摆牌方式,0自动1手动", "Min":0, "Max":1, "Default":0, "CustomIndex":-1 }, + {"Name":"Time", "AliasName":"t", "Desc":"摆牌时间", "Min":30, "Max":90, "Default":30, "CustomIndex":-1 }, + {"Name":"Base", "AliasName":"b", "Desc":"底分选项", "Min":50, "Max":50000, "Default":50, "CustomIndex":-1 }, + {"Name":"LaiZi", "AliasName":"lz", "Desc":"癞子,0没有1有", "Min":0, "Max":1, "Default":0, "CustomIndex":-1 } + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlen.json b/data/gameconfig/tienlen.json new file mode 100644 index 0000000..9b2bdb5 --- /dev/null +++ b/data/gameconfig/tienlen.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLen", + "GameId":207, + "GameMode":[0], + "SceneType":[1,2,3,99], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlen_m.json b/data/gameconfig/tienlen_m.json new file mode 100644 index 0000000..6411cc8 --- /dev/null +++ b/data/gameconfig/tienlen_m.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLen_m", + "GameId":807, + "GameMode":[0], + "SceneType":[1], + "CanForceStart":true, + "MinPlayerCnt":4, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlen_m_toend.json b/data/gameconfig/tienlen_m_toend.json new file mode 100644 index 0000000..86cf29a --- /dev/null +++ b/data/gameconfig/tienlen_m_toend.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLen_yl_toend_m", + "GameId":808, + "GameMode":[0], + "SceneType":[1], + "CanForceStart":true, + "MinPlayerCnt":4, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlen_toend.json b/data/gameconfig/tienlen_toend.json new file mode 100644 index 0000000..aa7b7e2 --- /dev/null +++ b/data/gameconfig/tienlen_toend.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLen_toend", + "GameId":209, + "GameMode":[0], + "SceneType":[1,2,3,99], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlen_yl.json b/data/gameconfig/tienlen_yl.json new file mode 100644 index 0000000..3fb7382 --- /dev/null +++ b/data/gameconfig/tienlen_yl.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLen_yl", + "GameId":208, + "GameMode":[0], + "SceneType":[1,2,3,99], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlen_yl_toend.json b/data/gameconfig/tienlen_yl_toend.json new file mode 100644 index 0000000..c898ab9 --- /dev/null +++ b/data/gameconfig/tienlen_yl_toend.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLen_yl_toend", + "GameId":210, + "GameMode":[0], + "SceneType":[1,2,3,99], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlenrank.json b/data/gameconfig/tienlenrank.json new file mode 100644 index 0000000..d7d25b0 --- /dev/null +++ b/data/gameconfig/tienlenrank.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLenRank", + "GameId":242, + "GameMode":[0], + "SceneType":[1,2,3,4,5,6], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":false, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlenrank_toend.json b/data/gameconfig/tienlenrank_toend.json new file mode 100644 index 0000000..c9c5018 --- /dev/null +++ b/data/gameconfig/tienlenrank_toend.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLenSelect", + "GameId":246, + "GameMode":[0], + "SceneType":[1,2,3,4,5,6], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":false, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlenrank_yl.json b/data/gameconfig/tienlenrank_yl.json new file mode 100644 index 0000000..4bfbfd3 --- /dev/null +++ b/data/gameconfig/tienlenrank_yl.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLenRank_yl", + "GameId":243, + "GameMode":[0], + "SceneType":[1,2,3,4,5,6], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":false, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlenrank_yl_toend.json b/data/gameconfig/tienlenrank_yl_toend.json new file mode 100644 index 0000000..ba5eb90 --- /dev/null +++ b/data/gameconfig/tienlenrank_yl_toend.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLenSelect", + "GameId":247, + "GameMode":[0], + "SceneType":[1,2,3,4,5,6], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":false, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlenselect.json b/data/gameconfig/tienlenselect.json new file mode 100644 index 0000000..e26efbb --- /dev/null +++ b/data/gameconfig/tienlenselect.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLenSelect", + "GameId":240, + "GameMode":[0], + "SceneType":[1,2,3,4,5,6], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlenselect_toend.json b/data/gameconfig/tienlenselect_toend.json new file mode 100644 index 0000000..5019e14 --- /dev/null +++ b/data/gameconfig/tienlenselect_toend.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLenSelect", + "GameId":244, + "GameMode":[0], + "SceneType":[1,2,3,4,5,6], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlenselect_yl.json b/data/gameconfig/tienlenselect_yl.json new file mode 100644 index 0000000..04f0d6b --- /dev/null +++ b/data/gameconfig/tienlenselect_yl.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLenSelect_yl", + "GameId":241, + "GameMode":[0], + "SceneType":[1,2,3,4,5,6], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/tienlenselect_yl_toend.json b/data/gameconfig/tienlenselect_yl_toend.json new file mode 100644 index 0000000..0572d7c --- /dev/null +++ b/data/gameconfig/tienlenselect_yl_toend.json @@ -0,0 +1,17 @@ +{ + "GameName":"TienLenSelect", + "GameId":245, + "GameMode":[0], + "SceneType":[1,2,3,4,5,6], + "CanForceStart":true, + "MinPlayerCnt":2, + "DefaultPlayerCnt":4, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gameconfig/xhj.json b/data/gameconfig/xhj.json new file mode 100644 index 0000000..76cdb74 --- /dev/null +++ b/data/gameconfig/xhj.json @@ -0,0 +1,17 @@ +{ + "GameName":"小火箭", + "GameId":901, + "GameMode":[4], + "SceneType":[1,7], + "CanForceStart":true, + "MinPlayerCnt":1, + "DefaultPlayerCnt":1, + "MaxIndex":0, + "TimeFreeStart":0, + "TimeFreeEnd":0, + "DependentPlayerCnt":true, + "EnterAfterStart":true, + "PerGameTakeCard":100, + "Params":[ + ] +} \ No newline at end of file diff --git a/data/gamedata.json b/data/gamedata.json new file mode 100644 index 0000000..8c26b33 --- /dev/null +++ b/data/gamedata.json @@ -0,0 +1 @@ +{"ReplayCode":148} \ No newline at end of file diff --git a/data/gameparam.json b/data/gameparam.json new file mode 100644 index 0000000..01c9755 --- /dev/null +++ b/data/gameparam.json @@ -0,0 +1,26 @@ +{ + "NewPlayerCoin":1000000, + "UpgradeAccountGiveCoin":0, + "LogBatchWriteCount":1024, + "LogBatchWriteInterval":1, + "VerifyClientVersion":true, + "SrvMaintain":false, + "WhiteHttpAddr": [], + "HundredScenePreCreate":true, + "WriteEventLog": true, + "SpreadAccountQPT":100, + "FakeVerifyCode":"123456", + "SameIpNoLimit": true, + "SamePlaceLimit":5, + "GameConfigGroupUseRobot":true, + "UseEtcd":true, + "PlayerWatchNum": 2, + "CgAddr":"http://127.0.0.1:8091/", + "ThirdPltTransferMaxTry":1, + "MatchSeasonRankMaxNum":50, + "RobotInviteInitInterval": 1, + "RobotInviteIntervalMax": 1, + "ClosePreCreateRoom": false, + "AgoraAddress": "http://47.105.78.29:8081", + "InviteUrl": "http://47.105.78.29:8000/" +} \ No newline at end of file diff --git a/data/gmac.json b/data/gmac.json new file mode 100644 index 0000000..c487526 --- /dev/null +++ b/data/gmac.json @@ -0,0 +1,9 @@ +{ + "InviteRobot":1, + "AgentCreateRoom":2, + "SpecialCareOf":20, + "SpecailCareOfIds":[], + "LuYiTingLevel": 20, + "ChangeCardLevel": 10, + "WhiteList":[] +} \ No newline at end of file diff --git a/data/i18n/en.json b/data/i18n/en.json new file mode 100644 index 0000000..a30a691 --- /dev/null +++ b/data/i18n/en.json @@ -0,0 +1,9 @@ +{ + "RankReward_1_1": "Grandmaster rank", + "RankReward_1_2": "King rank", + "RankReward_1_3": "Master tier", + "RankReward_1_4": "Diamond rank", + "RankReward_1_5": "Platinum tier", + "RankReward_1_6": "Gold tier", + "RankReward_1_7": "Silver tier" +} \ No newline at end of file diff --git a/data/i18n/hk.json b/data/i18n/hk.json new file mode 100644 index 0000000..cf4d818 --- /dev/null +++ b/data/i18n/hk.json @@ -0,0 +1,9 @@ +{ + "RankReward_1_1": "ចំណាត់ថ្នាក់អ្នកជំនាញ", + "RankReward_1_2": "ចំណាត់ថ្នាក់ស្តេច", + "RankReward_1_3": "ចំណាត់ថ្នាក់អ្នកខ្លាំង", + "RankReward_1_4": "ចំណាត់ថ្នាក់ពេជ្រ", + "RankReward_1_5": "ចំណាត់ថ្នាក់ផ្លាទីន", + "RankReward_1_6": "ចំណាត់ថ្នាក់មាស", + "RankReward_1_7": "ចំណាត់ថ្នាក់ប្រាក់" +} \ No newline at end of file diff --git a/data/i18n/languages.json b/data/i18n/languages.json new file mode 100644 index 0000000..1dad26b --- /dev/null +++ b/data/i18n/languages.json @@ -0,0 +1,11 @@ +{ + "Example": "{\"zh\":\"系统\",\"vi\":\"GM\",\"en\":\"GM\",\"kh\":\"GM\"}", + "BlackListLimit1Args": "{\"zh\":\"用户账号异常(%v),请联系客服\",\"vi\":\"Tài khoản bất thường (%v), vui lòng liên hệ bộ phận chăm sóc khách hàng\",\"en\":\"The user account is abnormal (%v), please contact customer service\",\"kh\":\"គណនីមិនប្រក្រតី (%v) សូមទាក់ទងផ្នែកបម្រើអតិថិជន\"}", + "BlackListLimit2Args": "{\"zh\":\"用户账号异常(%v:%v),请联系客服\",\"vi\":\"Tài khoản bất thường (%v:%v), vui lòng liên hệ bộ phận chăm sóc khách hàng\",\"en\":\"The user account is abnormal (%v:%v), please contact customer service\",\"kh\":\"គណនីមិនប្រក្រតី (%v:%v) សូមទាក់ទងផ្នែកបម្រើអតិថិជន\"}", + "GiftMail": "{\"zh\":\"玩家%v给您赠送了礼物,请注意查收\",\"vi\":\"Người chơi%vđã tặng quà cho bạn, hãy chú ý kiểm tra\",\"en\":\"Player%vgave you a gift, please pay attention to check\",\"kh\":\"អ្នកលេង%vបានផ្តល់អំណោយដល់អ្នក សូមយកចិត្តទុកដាក់ពិនិត្យ\"}", + "GiftMailTitle": "{\"zh\":\"玩家赠送\",\"vi\":\"quà tặng bạn bè\",\"en\":\"Player gift\",\"kh\":\"អំណោយអ្នកលេង\"}", + "RankAwardTitle": "{\"zh\":\"赛季奖励-%v\",\"vi\":\"Hạng bạc-%v\",\"en\":\"Season rewards-%v\",\"kh\":\"រង្វាន់រដូវកាល-%v\"}", + "RankAward": "{\"zh\":\"您上赛季有未领取的奖励\",\"vi\":\"Bạn có phần thưởng chưa được nhận từ mùa giải trước\",\"en\":\"You have unclaimed rewards from last season\",\"kh\":\"អ្នកមិនទាន់បានយករង្វាន់តាំងពីរដូវកាលមុន\"}", + "MatchAwardTitle": "{\"zh\":\"话费充值兑换码\",\"vi\":\"Mã nạp tiền ĐT\",\"en\":\"Phone recharge code\",\"kh\":\"កូដបញ្ចូលទូរស័ព្ទ\"}", + "MatchAward": "{\"zh\":\"恭喜您获得电话预付卡“%v$”话费充值奖励,兑换码:%v,请尽快使用\",\"vi\":\"Chúc mừng bạn đã nhận được Thẻ trả trước ĐT “%v$” phần thưởng nạp tiền tín dụng ĐT, mã đổi thưởng %v xin sử dụng ngay lập tức\",\"en\":\"Congratulations, you have received the phone prepaid card “%v$” mobile credit top-up reward, redemption code: %v please use it immediately.\",\"kh\":\"សូមអបអរសាទរ អ្នកទទួលបានរង្វាន់កាតបញ្ចូលទូរស័ព្ទ កាតទូរស័ព្ទបង់ប្រាក់ជាមុន “%v$”លេខកូដដោះដូរ %v សូមប្រើវាភ្លាមៗ\"}" +} \ No newline at end of file diff --git a/data/i18n/vi.json b/data/i18n/vi.json new file mode 100644 index 0000000..52d47d0 --- /dev/null +++ b/data/i18n/vi.json @@ -0,0 +1,9 @@ +{ + "RankReward_1_1": "Cấp bậc đại kiện tướng", + "RankReward_1_2": "cấp bậc vua", + "RankReward_1_3": "Bậc chính", + "RankReward_1_4": "Xếp hạng kim cương", + "RankReward_1_5": "Hạng bạch kim", + "RankReward_1_6": "hạng vàng", + "RankReward_1_7": "Hạng bạc" +} \ No newline at end of file diff --git a/data/i18n/zh.json b/data/i18n/zh.json new file mode 100644 index 0000000..cf19aa0 --- /dev/null +++ b/data/i18n/zh.json @@ -0,0 +1,9 @@ +{ + "RankReward_1_1": "宗师段位", + "RankReward_1_2": "王者段位", + "RankReward_1_3": "大师段位", + "RankReward_1_4": "钻石段位", + "RankReward_1_5": "铂金段位", + "RankReward_1_6": "黄金段位", + "RankReward_1_7": "白银段位" +} \ No newline at end of file diff --git a/data/icon_rob.json b/data/icon_rob.json new file mode 100644 index 0000000..c45c4ff --- /dev/null +++ b/data/icon_rob.json @@ -0,0 +1,2006 @@ +{ + "Boy": [ + "56f38cab447b2935c3c0dc6d.jpg", + "56f4b00b447b2935c3c0dc79.jpg", + "56fb476a447b291d5f5c1e6f.jpg", + "56fe4610d8ce2e57ec197c99.jpg", + "56fe5069d8ce2e57ec197ca1.jpg", + "570614e0d8ce2e5848f9e485.jpg", + "57062c90d8ce2e5848f9e498.jpg", + "57063349d8ce2e5848f9e49f.jpg", + "57063c8bd8ce2e0671f02357.jpg", + "57063da1d8ce2e0671f02358.jpg", + "57065230d8ce2e0671f02365.jpg", + "5707c426d8ce2e76642372fb.jpg", + "571195af447b295700a8d9d7.jpg", + "5712eba4447b295700a8da09.jpg", + "57147ca5447b295700a8da36.jpg", + "5714a3ba447b295700a8da3c.jpg", + "57165a97447b295700a8da7c.jpg", + "5717402bd8ce2e2b6479d1c7.jpg", + "57183328447b295700a8daa4.jpg", + "5718f0e0447b295b2e1ea906.jpg", + "571c9c4cd8ce2e1215893cd7.jpg", + "571e28d5447b295b2e1ea99d.jpg", + "571f1ed6d8ce2e568399892c.jpg", + "57218d49d8ce2e70ab837481.jpg", + "5723266fd8ce2e5f9cf2fa59.jpg", + "57234e11d8ce2e451b11f78e.jpg", + "572407b5d8ce2e451b11f7cc.jpg", + "572549e9d8ce2e451b11f820.jpg", + "57259de7d8ce2e451b11f82f.jpg", + "57260b5dd8ce2e451b11f860.jpg", + "57289987d8ce2e79a639c639.jpg", + "5729d6e0d8ce2e79a639c690.jpg", + "5729e0ded8ce2e79a639c691.jpg", + "572b916dd8ce2e73d54e48d1.jpg", + "572c06c4d8ce2e73d54e4913.jpg", + "572c102ed8ce2e73d54e4926.jpg", + "572c108dd8ce2e73d54e4928.jpg", + "572c14b9447b2902004eeaad.jpg", + "572c179b447b2902004eeab4.jpg", + "572c28ea447b2902004eeac6.jpg", + "572c3b7f447b2902004eead9.jpg", + "572c6498447b2947f9e016b9.jpg", + "572c6d86447b2947f9e016ca.jpg", + "572cb47ed8ce2e2718b2c3a1.jpg", + "572cee76d8ce2e2718b2c3c6.jpg", + "572cfa1a447b2947f9e01768.jpg", + "572d19e3447b2947f9e01774.jpg", + "572d313b447b2947f9e01782.jpg", + "572d4280d8ce2e2718b2c3f6.jpg", + "572d64a2447b2947f9e017c9.jpg", + "572db92a447b2947f9e01841.jpg", + "572dd9fc447b2947f9e01878.jpg", + "572ddbbfd8ce2e2718b2c4d0.jpg", + "572dddf1447b2947f9e0187e.jpg", + "572e70b4447b2947f9e01917.jpg", + "572ed00dd8ce2e2718b2c5b9.jpg", + "572edebed8ce2e2718b2c5c9.jpg", + "572ef117d8ce2e2718b2c5dd.jpg", + "572efa2bd8ce2e095064a2ee.jpg", + "572f26ffd8ce2e095064a358.jpg", + "572f3591d8ce2e095064a377.jpg", + "572f3ea8d8ce2e095064a391.jpg", + "572f4f32d8ce2e095064a3bd.jpg", + "572f51f6d8ce2e095064a3c3.jpg", + "572fd293d8ce2e095064a43e.jpg", + "5730af9a447b2951b3f9538a.jpg", + "5730e29d447b2951b3f953c3.jpg", + "5730eb67447b2951b3f953c9.jpg", + "57312939447b2951b3f953f4.jpg", + "57318d10447b2951b3f95462.jpg", + "5731d4fd447b2951b3f954c2.jpg", + "5731d8a5447b2951b3f954c6.jpg", + "573232e3447b2951b3f95538.jpg", + "5733095e447b2951b3f955ed.jpg", + "57335ceb447b2951b3f9565e.jpg", + "57347262447b2951b3f9571a.jpg", + "573478ea447b2951b3f95726.jpg", + "5734d002447b2951b3f9577f.jpg", + "5735d25b447b2951b3f95836.jpg", + "5736abd7447b2951b3f958ed.jpg", + "5736b9b5447b2951b3f95904.jpg", + "5736cfc9447b2951b3f95924.jpg", + "5737c7a1447b2951b3f95a0a.jpg", + "5738be9dd8ce2e5a150773b0.jpg", + "57394886d8ce2e5a150773e4.jpg", + "573950e8d8ce2e5a150773e8.jpg", + "5739a6d2d8ce2e5a15077424.jpg", + "5739bb0dd8ce2e5a1507743e.jpg", + "573a3768d8ce2e5a1507748a.jpg", + "573a41c8d8ce2e5a1507748c.jpg", + "573a7f96d8ce2e5a150774a4.jpg", + "573b1e1cd8ce2e40a76e482d.jpg", + "573b337cd8ce2e40a76e4847.jpg", + "573c7c6ad8ce2e03f3c17be9.jpg", + "573d8717d8ce2e03f3c17c79.jpg", + "573f1a67d8ce2e1255ba6c8c.jpg", + "57401e77d8ce2e1255ba6d42.jpg", + "5740267ed8ce2e1255ba6d4e.jpg", + "57405751d8ce2e1255ba6d89.jpg", + "57406e68d8ce2e1255ba6da4.jpg", + "5740f8a1d8ce2e1255ba6ddb.jpg", + "5741610fd8ce2e1255ba6e2d.jpg", + "5741976ed8ce2e1255ba6e61.jpg", + "574263f5d8ce2e1255ba6edb.jpg", + "57432f64d8ce2e1255ba6f97.jpg", + "5743e608d8ce2e1255ba7008.jpg", + "5743fbd5d8ce2e1255ba7017.jpg", + "57446761d8ce2e1255ba7087.jpg", + "5745d2a0d8ce2e1255ba718e.jpg", + "574652cbd8ce2e1255ba71b3.jpg", + "57466ac6d8ce2e1255ba71c5.jpg", + "57469912d8ce2e1255ba71eb.jpg", + "5746afdad8ce2e1255ba71fc.jpg", + "5746d384d8ce2e1255ba7222.jpg", + "5746fe33d8ce2e1255ba724f.jpg", + "57472d4dd8ce2e1255ba7276.jpg", + "57483cf6d8ce2e666572b6aa.jpg", + "57485a7dd8ce2e666572b6c3.jpg", + "5749043ed8ce2e666572b72e.jpg", + "5749c103d8ce2e666572b7ee.jpg", + "574c4ecad8ce2e695199eb46.jpg", + "574d2353d8ce2e695199eba2.jpg", + "574dc1a6d8ce2e62899ab306.jpg", + "574dfb4ad8ce2e62899ab313.jpg", + "574ec0edd8ce2e39d1e48cfa.jpg", + "574ffc29d8ce2e39d1e48d85.jpg", + "575115e7d8ce2e42b54da5be.jpg", + "5751ff1ad8ce2e42b54da659.jpg", + "57545249d8ce2e42b54da818.jpg", + "575548f2d8ce2e42b54da89c.jpg", + "5756cd28d8ce2e42b54da97c.jpg", + "5756d98bd8ce2e42b54da987.jpg", + "5758e66ed8ce2e42b54daaaf.jpg", + "5758e996d8ce2e42b54daab1.jpg", + "57590d2ed8ce2e42b54daad3.jpg", + "575b46a7d8ce2e42b54dac83.jpg", + "575b737ad8ce2e42b54dac97.jpg", + "575bc554d8ce2e42b54dace0.jpg", + "575bc9acd8ce2e42b54dace3.jpg", + "575c6cd1d8ce2e42b54dad63.jpg", + "575d6902d8ce2e42b54dae0c.jpg", + "575e5c20d8ce2e42b54dae74.jpg", + "575e9500d8ce2e42b54dae97.jpg", + "575ec0d8d8ce2e42b54daeba.jpg", + "575ed03fd8ce2e42b54daec0.jpg", + "575fdcb9d8ce2e42b54daf43.jpg", + "576052e7d8ce2e42b54daf92.jpg", + "5760a733d8ce2e42b54dafb6.jpg", + "57616be5d8ce2e42b54db04e.jpg", + "57618a5bd8ce2e42b54db063.jpg", + "57627bbed8ce2e0988fbaf4e.jpg", + "57629feed8ce2e2ad3b21af6.jpg", + "5763f7bfd8ce2e2ad3b21bb9.jpg", + "5764cd18d8ce2e2ad3b21c36.jpg", + "5765cd88d8ce2e2ad3b21cbf.jpg", + "57668c08d8ce2e2ad3b21d6b.jpg", + "57675a91d8ce2e2ad3b21dd5.jpg", + "5767fc6cd8ce2e087fed2789.jpg", + "57680ce7d8ce2e087fed2799.jpg", + "57691ad9d8ce2e42d7a95260.jpg", + "576989d5d8ce2e48a8f66876.jpg", + "5769e97cd8ce2e48a8f66893.jpg", + "576afe67d8ce2e48a8f66955.jpg", + "576b0256d8ce2e48a8f66957.jpg", + "576be18cd8ce2e48a8f66a37.jpg", + "576ce45dd8ce2e48a8f66b1f.jpg", + "576dc3e0d8ce2e48a8f66c0a.jpg", + "576de84cd8ce2e48a8f66c2e.jpg", + "576e7401d8ce2e48a8f66cfe.jpg", + "576e9cf6d8ce2e48a8f66d3e.jpg", + "576ef1fbd8ce2e48a8f66d6c.jpg", + "576fc7e7d8ce2e48a8f66e69.jpg", + "5770d597d8ce2e48a8f66f67.jpg", + "5770e355d8ce2e48a8f66f7e.jpg", + "5771f594d8ce2e48a8f670a6.jpg", + "57729159d8ce2e48a8f67188.jpg", + "57733d89d8ce2e48a8f67205.jpg", + "5773ed6bd8ce2e48a8f6733c.jpg", + "57752208d8ce2e48a8f674aa.jpg", + "5775b0a6d8ce2e48a8f67526.jpg", + "5777a99ed8ce2e48a8f6786b.jpg", + "57782410d8ce2e48a8f67932.jpg", + "5778668dd8ce2e48a8f67985.jpg", + "577a88c5d8ce2e48a8f67dab.jpg", + "577a911ed8ce2e48a8f67db2.jpg", + "577cb74fd8ce2e48a8f68082.jpg", + "577cffe2d8ce2e48a8f6810c.jpg", + "577dddd5d8ce2e48a8f681c8.jpg", + "57809d35d8ce2e48a8f68513.jpg", + "5780bcc9d8ce2e48a8f68543.jpg", + "5780ce04d8ce2e48a8f6855d.jpg", + "578124dfd8ce2e48a8f685d7.jpg", + "57826d26d8ce2e48a8f68737.jpg", + "5783a7f4d8ce2e48a8f68872.jpg", + "57858325d8ce2e48a8f68a13.jpg", + "5785a139d8ce2e48a8f68a2d.jpg", + "57860e2cd8ce2e48a8f68ad0.jpg", + "578755d5d8ce2e48a8f68c15.jpg", + "5788a4a1d8ce2e48a8f68d72.jpg", + "57898c8fd8ce2e48a8f68e3a.jpg", + "578a6c27d8ce2e48a8f68f7e.jpg", + "578ba0a9d8ce2e48a8f690e8.jpg", + "578baa73d8ce2e48a8f690f5.jpg", + "578d125fd8ce2e48a8f69258.jpg", + "578d7adfd8ce2e48a8f6928f.jpg", + "57903489d8ce2e48a8f69556.jpg", + "57937ebcd8ce2e48a8f698ec.jpg", + "57943eb4d8ce2e48a8f69988.jpg", + "57955ee2d8ce2e48a8f69aba.jpg", + "5795a151d8ce2e48a8f69b12.jpg", + "57962d6cd8ce2e48a8f69bd9.jpg", + "579765bbd8ce2e48a8f69ced.jpg", + "57987ec6d8ce2e48a8f69dd9.jpg", + "5798be2ed8ce2e48a8f69e29.jpg", + "57996abfd8ce2e48a8f69ea7.jpg", + "579a020dd8ce2e48a8f69f70.jpg", + "579a5890d8ce2e48a8f69fc8.jpg", + "579a967ed8ce2e48a8f69fe4.jpg", + "579c3f3cd8ce2e48a8f6a190.jpg", + "579cc98bd8ce2e48a8f6a251.jpg", + "579f69e9d8ce2e48a8f6a66f.jpg", + "579fc415d8ce2e48a8f6a6d1.jpg", + "579fcbffd8ce2e48a8f6a6d9.jpg", + "579fd076d8ce2e48a8f6a6e2.jpg", + "579ff1a3d8ce2e48a8f6a70f.jpg", + "57a04a49d8ce2e48a8f6a79f.jpg", + "57a0acf7d8ce2e48a8f6a880.jpg", + "57a103f3d8ce2e48a8f6a8fd.jpg", + "57a18404d8ce2e48a8f6a9ab.jpg", + "57a1c704d8ce2e48a8f6aa3a.jpg", + "57a1d903d8ce2e48a8f6aa61.jpg", + "57a3396ad8ce2e48a8f6acb1.jpg", + "57a3dc9bd8ce2e48a8f6ad9d.jpg", + "57a3df1fd8ce2e48a8f6ada1.jpg", + "57a408ead8ce2e48a8f6adee.jpg", + "57a4fc9ad8ce2e48a8f6afea.jpg", + "57a5e67cd8ce2e48a8f6b1e3.jpg", + "57a6121fd8ce2e48a8f6b26b.jpg", + "57a6f33bd8ce2e48a8f6b439.jpg", + "57a7254bd8ce2e48a8f6b4c5.jpg", + "57a7291fd8ce2e48a8f6b4d9.jpg", + "57a8294dd8ce2e56214b2cc4.jpg", + "57a834d5d8ce2e56214b2ce2.jpg", + "57a9e516d8ce2e56214b30f5.jpg", + "57a9f7bed8ce2e56214b312e.jpg", + "57a9fe54d8ce2e56214b313f.jpg", + "57aa9faad8ce2e56214b329f.jpg", + "57aabebdd8ce2e56214b3311.jpg", + "57abea8ad8ce2e56214b36d6.jpg", + "57acee70d8ce2e56214b38a9.jpg", + "57ad77dad8ce2e56214b3963.jpg", + "57adab2ed8ce2e56214b39bb.jpg", + "57ae700bd8ce2e56214b3a7c.jpg", + "57aec6d1d8ce2e56214b3afe.jpg", + "57aeddcfd8ce2e56214b3b21.jpg", + "57af2edbd8ce2e56214b3ba8.jpg", + "57afc39ed8ce2e56214b3c24.jpg", + "57afe57ed8ce2e56214b3c4f.jpg", + "57afefa4d8ce2e56214b3c60.jpg", + "57b057d9d8ce2e56214b3d03.jpg", + "57b0696ed8ce2e56214b3d28.jpg", + "57b0ec18d8ce2e56214b3da6.jpg", + "57b17e6dd8ce2e56214b3e5c.jpg", + "57b52406d8ce2e55a85f57f4.jpg", + "57b6fa20d8ce2e1e7e88e2ec.jpg", + "57b70268d8ce2e1e7e88e2fd.jpg", + "57b80f90d8ce2e1e7e88e454.jpg", + "57b81f7cd8ce2e1e7e88e472.jpg", + "57bb4f02d8ce2e1e7e88e8f0.jpg", + "57bbc035d8ce2e1e7e88e954.jpg", + "57bbc75bd8ce2e1e7e88e962.jpg", + "57bc0856d8ce2e1e7e88e9d1.jpg", + "57bc0b1fd8ce2e1e7e88e9d5.jpg", + "57bc4099d8ce2e1e7e88ea3d.jpg", + "57bc617dd8ce2e1e7e88ea7c.jpg", + "57bd2e30d8ce2e1e7e88eb41.jpg", + "57bdb9c3d8ce2e12c9b5128e.jpg", + "57be161cd8ce2e12c9b512dd.jpg", + "57bf0bd1d8ce2e12c9b51441.jpg", + "57bfc98cd8ce2e12c9b51503.jpg", + "57bff60ad8ce2e12c9b51557.jpg", + "57c0566cd8ce2e12c9b51612.jpg", + "57c1300ed8ce2e12c9b516e1.jpg", + "57c15a81d8ce2e12c9b51719.jpg", + "57c1b3d1d8ce2e12c9b517a2.jpg", + "57c282b7d8ce2e12c9b5186e.jpg", + "57c2972ed8ce2e12c9b51893.jpg", + "57c2c5bcd8ce2e12c9b518d7.jpg", + "57c2d27bd8ce2e12c9b518e5.jpg", + "57c5730dd8ce2e12c9b51bbc.jpg", + "57c66336d8ce2e12c9b51cbf.jpg", + "57c702aad8ce2e3496374af7.jpg", + "57c7f4c0d8ce2e3d365bdbc3.jpg", + "57c8e7ecd8ce2e3d365bdcdc.jpg", + "57c9175fd8ce2e3d365bdd11.jpg", + "57c96768d8ce2e3d365bdd88.jpg", + "57c969e1d8ce2e3d365bdd91.jpg", + "57cb2e79d8ce2e3d365bdfc0.jpg", + "57cb8171d8ce2e3d365bdff4.jpg", + "57cb8cecd8ce2e3d365be002.jpg", + "57cbc5b5d8ce2e3d365be058.jpg", + "57cd5752d8ce2e3d365be247.jpg", + "57cdae38d8ce2e3d365be2db.jpg", + "57ce357cd8ce2e3d365be346.jpg", + "57ce4964d8ce2e3d365be359.jpg", + "57ceb9e7d8ce2e3d365be3ff.jpg", + "57cec001d8ce2e3d365be406.jpg", + "57cf04fcd8ce2e3d365be46f.jpg", + "57d01e81d8ce2e3d365be59b.jpg", + "57d0c9c6d8ce2e3d365be63e.jpg", + "57d0e9f2d8ce2e3d365be65f.jpg", + "57d1110cd8ce2e3d365be685.jpg", + "57d370b1d8ce2e3dd0de6531.jpg", + "57d42b3ed8ce2e63f3a61f2a.jpg", + "57d53069d8ce2e63f3a6205a.jpg", + "57d6b7e5d8ce2e63f3a62205.jpg", + "57d6bbdfd8ce2e63f3a6220a.jpg", + "57d7aa5fd8ce2e63f3a622ea.jpg", + "57dc83581f204d4eeceb07c3.jpg", + "57dcc4531f204d4eeceb081a.jpg", + "57dd53e31f204d560534fd5d.jpg", + "57dddf841f204d560534fdda.jpg", + "57de8ffad8ce2e34d4e10e53.jpg", + "57decf4cd8ce2e34d4e10e85.jpg", + "57df6737d8ce2e34d4e10ef5.jpg", + "57df77fed8ce2e34d4e10f09.jpg", + "57df8f08d8ce2e34d4e10f24.jpg", + "57e0c51fd8ce2e34d4e1103b.jpg", + "57e125ebd8ce2e1fc4c60558.jpg", + "57e25004d8ce2e2fb1384615.jpg", + "57e26d0ed8ce2e2fb138463c.jpg", + "57e2a8ccd8ce2e2fb1384692.jpg", + "57e3b354d8ce2e2fb1384755.jpg", + "57e3d37bd8ce2e2fb138477c.jpg", + "57e526fbd8ce2e2fb138488c.jpg", + "57e52771d8ce2e2fb138488e.jpg", + "57e54f17d8ce2e2fb13848de.jpg", + "57e5b107d8ce2e2fb1384917.jpg", + "57e6140dd8ce2e2fb138495c.jpg", + "57e713b6d8ce2e2fb1384a95.jpg", + "57e7790ed8ce2e2fb1384b1b.jpg", + "57e77a0ad8ce2e2fb1384b1e.jpg", + "57e7b761d8ce2e2fb1384b65.jpg", + "57e7c155d8ce2e2fb1384b6f.jpg", + "57e7cf7ed8ce2e2fb1384b82.jpg", + "57e7f3c4d8ce2e2fb1384baf.jpg", + "57e7f7e6d8ce2e2fb1384bb1.jpg", + "57e8a818d8ce2e50eafe65ab.jpg", + "57e8e26cd8ce2e50eafe65df.jpg", + "57e92aa9d8ce2e50eafe6706.jpg", + "57e93200d8ce2e50eafe6731.jpg", + "57e9367cd8ce2e50eafe674b.jpg", + "57e95e9dd8ce2e50eafe67b8.jpg", + "57e97e87d8ce2e50eafe67ed.jpg", + "57e9c287d8ce2e50eafe688c.jpg", + "57e9e28dd8ce2e50eafe690a.jpg", + "57e9eb8ed8ce2e50eafe69d2.jpg", + "57e9ff76d8ce2e50eafe6bba.jpg", + "57ea12f8d8ce2e50eafe6ce9.jpg", + "57ea2707d8ce2e50eafe6dd6.jpg", + "57ea2992d8ce2e50eafe6df2.jpg", + "57ea2dcdd8ce2e50eafe6e1e.jpg", + "57ea325bd8ce2e50eafe6e41.jpg", + "57ea328fd8ce2e50eafe6e45.jpg", + "57ea42d8d8ce2e50eafe6f02.jpg", + "57ea57a5d8ce2e26874804f5.jpg", + "57ea57ebd8ce2e26874804f7.jpg", + "57ea5b18d8ce2e2687480528.jpg", + "57ea6349d8ce2e26874805b1.jpg", + "57ea63b6d8ce2e26874805b9.jpg", + "57ea66c7d8ce2e26874805e7.jpg", + "57ea918bd8ce2e26874807a2.jpg", + "57eaa861d8ce2e26874807f4.jpg", + "57eaf904d8ce2e26874808a4.jpg", + "57eb0c0fd8ce2e26874808ff.jpg", + "57eb23d1d8ce2e2687480960.jpg", + "57ebc60fd8ce2e667c645522.jpg", + "57ebcd03d8ce2e667c645538.jpg", + "57ec516bd8ce2e667c6455dd.jpg", + "57ed2ae8d8ce2e667c645764.jpg", + "57eebccdd8ce2e797d5bce2c.jpg", + "57ef1407d8ce2e797d5bce6c.jpg", + "57ef1f62d8ce2e797d5bce83.jpg", + "57ef2a80d8ce2e797d5bce96.jpg", + "57eff77cd8ce2e797d5bcfbb.jpg", + "57f0194cd8ce2e797d5bcfcb.jpg", + "57f0bc0dd8ce2e797d5bd088.jpg", + "57f0bc1dd8ce2e797d5bd089.jpg", + "57f0bc3dd8ce2e797d5bd08a.jpg", + "57f12a71d8ce2e797d5bd156.jpg", + "57f14be8d8ce2e797d5bd17f.jpg", + "57f2141ad8ce2e797d5bd280.jpg", + "57f23c6fd8ce2e797d5bd2b7.jpg", + "57f2e1c8d8ce2e797d5bd384.jpg", + "57f314fbd8ce2e797d5bd3ec.jpg", + "57f32b4ad8ce2e797d5bd426.jpg", + "57f32c83d8ce2e797d5bd42b.jpg", + "57f3562cd8ce2e797d5bd4b6.jpg", + "57f39713d8ce2e797d5bd5a0.jpg", + "57f3af02d8ce2e797d5bd610.jpg", + "57f3b3f7d8ce2e797d5bd623.jpg", + "57f3cc16d8ce2e797d5bd696.jpg", + "57f3e085d8ce2e797d5bd6df.jpg", + "57f3e0c6d8ce2e797d5bd6e1.jpg", + "57f3ecc5d8ce2e797d5bd6f6.jpg", + "57f436a4d8ce2e797d5bd749.jpg", + "57f43a25d8ce2e797d5bd754.jpg", + "57f44a2ad8ce2e797d5bd774.jpg", + "57f45bf2d8ce2e797d5bd791.jpg", + "57f48b6ed8ce2e797d5bd83a.jpg", + "57f49c2ad8ce2e797d5bd87b.jpg", + "57f4ff98d8ce2e797d5bd9f1.jpg", + "57f51432d8ce2e797d5bda57.jpg", + "57f51682d8ce2e797d5bda63.jpg", + "57f54584d8ce2e797d5bdad1.jpg", + "57f55672d8ce2e797d5bdaef.jpg", + "57f58ebed8ce2e797d5bdb35.jpg", + "57f603a5d8ce2e797d5bdcb3.jpg", + "57f6339dd8ce2e797d5bdd6d.jpg", + "57f636acd8ce2e797d5bdd7b.jpg", + "57f63783d8ce2e797d5bdd7d.jpg", + "57f65b52d8ce2e797d5bde31.jpg", + "57f6e49cd8ce2e797d5bdf28.jpg", + "57f6f838d8ce2e797d5bdf58.jpg", + "57f6fdb5d8ce2e797d5bdf68.jpg", + "57f71075d8ce2e797d5bdfa1.jpg", + "57f71795d8ce2e797d5bdfb9.jpg", + "57f737b3d8ce2e797d5be02d.jpg", + "57f75b62d8ce2e797d5be0a9.jpg", + "57f78de1d8ce2e797d5be167.jpg", + "57f7a2d6d8ce2e797d5be1cc.jpg", + "57f7d643d8ce2e797d5be25a.jpg", + "57f7db03d8ce2e797d5be266.jpg", + "57f83c3ed8ce2e797d5be2c7.jpg", + "57f89a22d8ce2e797d5be332.jpg", + "57f9219ed8ce2e797d5be41e.jpg", + "57f93637d8ce2e797d5be430.jpg", + "57faf21ad8ce2e797d5be5cc.jpg", + "57fb1155d8ce2e4249352404.jpg", + "57fb736cd8ce2e424935249d.jpg", + "57fb897ed8ce2e42493524ca.jpg", + "57fbb2c8d8ce2e4249352516.jpg", + "57fc2c16d8ce2e4249352575.jpg", + "57fc4e9cd8ce2e424935258d.jpg", + "57fc6907d8ce2e437cc3df93.jpg", + "57fc8c25d8ce2e437cc3dfd1.jpg", + "57fca7fad8ce2e437cc3dffa.jpg", + "57fda2b9d8ce2e437cc3e18f.jpg", + "57fe24e8d8ce2e437cc3e287.jpg", + "57fe4b95d8ce2e437cc3e30f.jpg", + "57fe5c04d8ce2e437cc3e336.jpg", + "57ff3335d8ce2e437cc3e41d.jpg", + "57ff8941d8ce2e437cc3e4bb.jpg", + "57ffbe98d8ce2e437cc3e515.jpg", + "58002154d8ce2e437cc3e562.jpg", + "5800613dd8ce2e437cc3e5c1.jpg", + "58006b45d8ce2e437cc3e5d5.jpg", + "580070e8d8ce2e437cc3e5e7.jpg", + "58007140d8ce2e437cc3e5e8.jpg", + "5800a28fd8ce2e437cc3e658.jpg", + "5800be9ed8ce2e437cc3e697.jpg", + "5800cc14d8ce2e437cc3e6bb.jpg", + "5801494dd8ce2e437cc3e774.jpg", + "5801ea17d8ce2e437cc3e882.jpg", + "58020702d8ce2e437cc3e8c5.jpg", + "58021cbdd8ce2e437cc3e8f4.jpg", + "58022e2bd8ce2e437cc3e92c.jpg", + "5802b6f9d8ce2e437cc3e9d6.jpg", + "5802d641d8ce2e437cc3e9fc.jpg", + "58031992d8ce2e437cc3ea6c.jpg", + "58033288d8ce2e437cc3ea8e.jpg", + "58034788d8ce2e437cc3eab0.jpg", + "58035b08d8ce2e437cc3ead3.jpg", + "58039206d8ce2e437cc3eb48.jpg", + "5803b36dd8ce2e437cc3eb76.jpg", + "58044a86d8ce2e437cc3ebea.jpg", + "58045427d8ce2e437cc3ebf8.jpg", + "5804c3e5d8ce2e437cc3ecb3.jpg", + "580737f3d8ce2e437cc3ef8a.jpg", + "58074950d8ce2e437cc3efa3.jpg", + "58076119d8ce2e437cc3efd0.jpg", + "580762fbd8ce2e437cc3efd5.jpg", + "580788fed8ce2e437cc3f00e.jpg", + "58084b3fd8ce2e437cc3f0a7.jpg", + "5808ab06d8ce2e437cc3f123.jpg", + "5808b02ed8ce2e437cc3f130.jpg", + "5809941cd8ce2e437cc3f20a.jpg", + "5809ef08d8ce2e437cc3f283.jpg", + "5809f5a1d8ce2e437cc3f290.jpg", + "580acce4d8ce2e437cc3f349.jpg", + "580b66ced8ce2e437cc3f400.jpg", + "580befc3d8ce2e437cc3f483.jpg", + "580c8407d8ce2e437cc3f540.jpg", + "580c8aa9d8ce2e437cc3f54d.jpg", + "580cb3d3d8ce2e437cc3f58d.jpg", + "580cc629d8ce2e437cc3f59b.jpg", + "580d6a11d8ce2e437cc3f5ff.jpg", + "580d97c7d8ce2e437cc3f620.jpg", + "580eda11d8ce2e437cc3f710.jpg", + "580eea2ad8ce2e437cc3f725.jpg", + "580ef97cd8ce2e437cc3f733.jpg", + "580f0cd9d8ce2e437cc3f74e.jpg", + "581013a2d8ce2e437cc3f81e.jpg", + "5811f6dad8ce2e2489cbe5ff.jpg", + "58120e34d8ce2e2489cbe61a.jpg", + "58124483d8ce2e2489cbe635.jpg", + "58134f69d8ce2e2489cbe6f2.jpg", + "581450f7d8ce2e2489cbe7ad.jpg", + "5814980dd8ce2e2489cbe7ec.jpg", + "5814b5e3d8ce2e2489cbe80a.jpg", + "5816b1b1d8ce2e2489cbe94f.jpg", + "58174195d8ce2e2489cbe9ce.jpg", + "58184f74d8ce2e2489cbea5e.jpg", + "5819c0d1d8ce2e2489cbeb41.jpg", + "5819e9a0d8ce2e2489cbeb73.jpg", + "581a58d2d8ce2e2489cbebb6.jpg", + "581ae0d9d8ce2e2489cbebf6.jpg", + "581b1910d8ce2e2489cbec21.jpg", + "581b2ac4d8ce2e2489cbec35.jpg", + "581b4f8dd8ce2e2489cbec53.jpg", + "581c895bd8ce2e2489cbed16.jpg", + "581d5640d8ce2e6724acf556.jpg", + "581d8fe4d8ce2e6724acf586.jpg", + "581df2d3d8ce2e6724acf5e3.jpg", + "581f12a6d8ce2e6724acf6a7.jpg", + "581f3700d8ce2e6724acf6ce.jpg", + "581fe27ad8ce2e6724acf71d.jpg", + "58201023d8ce2e6724acf764.jpg", + "58201b66d8ce2e6724acf77e.jpg", + "5820df07d8ce2e6724acf895.jpg", + "5821680ed8ce2e6724acf8f4.jpg", + "5821afe9d8ce2e6724acf934.jpg", + "5821d3f9d8ce2e6724acf967.jpg", + "5822fc71d8ce2e6724acfa4b.jpg", + "582306e8d8ce2e6724acfa65.jpg", + "58242b18d8ce2e6724acfbbb.jpg", + "5824448ed8ce2e6724acfbf6.jpg", + "58248a54d8ce2e6724acfc90.jpg", + "5824a340d8ce2e6724acfcb0.jpg", + "58257332d8ce2e6724acfd48.jpg", + "58267b06d8ce2e6724acfe68.jpg", + "5826c082d8ce2e6724acfebf.jpg", + "5826dd5fd8ce2e6724acfeea.jpg", + "58270447d8ce2e6724acff15.jpg", + "5827131ad8ce2e6724acff2d.jpg", + "58271f40d8ce2e6724acff42.jpg", + "58273d86d8ce2e6724acff70.jpg", + "58273e43d8ce2e6724acff73.jpg", + "582754d4d8ce2e6724acff83.jpg", + "58277c87d8ce2e6724acff92.jpg", + "582793add8ce2e6724acff9c.jpg", + "58285524d8ce2e6724ad007f.jpg", + "58285f04d8ce2e6724ad0089.jpg", + "58292218d8ce2e6724ad0104.jpg", + "582998eed8ce2e6724ad017a.jpg", + "5829d1ecd8ce2e6724ad01d1.jpg", + "582a3c75d8ce2e6724ad020e.jpg", + "582a3fd9d8ce2e6724ad020f.jpg", + "582a8c1ed8ce2e6724ad0245.jpg", + "582ab4f4d8ce2e6724ad0268.jpg", + "582b2929d8ce2e43e610f43f.jpg", + "582b3cebd8ce2e43e610f44f.jpg", + "582b4ca1d8ce2e43e610f455.jpg", + "582baf7dd8ce2e43e610f47d.jpg", + "582bd156d8ce2e43e610f494.jpg", + "582bf860d8ce2e43e610f4b4.jpg", + "582c5384d8ce2e0ae89b8464.jpg", + "582d17ecd8ce2e0ae89b850d.jpg", + "582d631bd8ce2e0ae89b855a.jpg", + "582d65ced8ce2e0ae89b8560.jpg", + "582e27eed8ce2e0ae89b864f.jpg", + "582eea65d8ce2e0ae89b8736.jpg", + "582f1fd9d8ce2e0ae89b879f.jpg", + "582fddeed8ce2e0ae89b8841.jpg", + "582fe154d8ce2e0ae89b8848.jpg", + "582fff4fd8ce2e2dee175f06.jpg", + "58303201d8ce2e2dee175f54.jpg", + "58303460d8ce2e2dee175f5a.jpg", + "58303800d8ce2e2dee175f62.jpg", + "58303c82d8ce2e2dee175f6d.jpg", + "58304d68d8ce2e2dee175f9a.jpg", + "583067f1d8ce2e2dee175fe1.jpg", + "58308e49d8ce2e2dee17600d.jpg", + "58312709d8ce2e2dee1760a9.jpg", + "58319422d8ce2e2dee176190.jpg", + "5831db12d8ce2e2dee17620e.jpg", + "58320132d8ce2e2dee176236.jpg", + "58327067d8ce2e2dee1762d5.jpg", + "58327aedd8ce2e2dee1762f2.jpg", + "58328e47d8ce2e2dee17632d.jpg", + "58329e2fd8ce2e2dee176363.jpg", + "5832a034d8ce2e2dee17636b.jpg", + "5832aafed8ce2e2dee176388.jpg", + "5832db80d8ce2e2dee176421.jpg", + "5832e582d8ce2e2dee176447.jpg", + "5832f56fd8ce2e2dee17648d.jpg", + "5832f7f7d8ce2e2dee17649a.jpg", + "583333ced8ce2e2dee176555.jpg", + "58333c26d8ce2e2dee176565.jpg", + "58333de0d8ce2e2dee17656e.jpg", + "5833c331d8ce2e2dee17661c.jpg", + "5833cc19d8ce2e2dee176632.jpg", + "5833dc0ed8ce2e2dee176655.jpg", + "5833df03d8ce2e2dee17665e.jpg", + "5833df66d8ce2e2dee17665f.jpg", + "5833fa68d8ce2e2dee176696.jpg", + "58340348d8ce2e2dee1766aa.jpg", + "583416afd8ce2e2dee1766e0.jpg", + "58342b04d8ce2e2dee176737.jpg", + "58343622d8ce2e2dee176762.jpg", + "58344d5ad8ce2e2dee1767ba.jpg", + "5834722ed8ce2e2dee176825.jpg", + "5834972fd8ce2e2dee17685d.jpg", + "5834a1bed8ce2e2dee176865.jpg", + "5834a538d8ce2e2dee176868.jpg", + "58352a49d8ce2e2dee176928.jpg", + "583573b6d8ce2e2dee1769ec.jpg", + "58357bc3d8ce2e2dee176a0e.jpg", + "58357e12d8ce2e2dee176a1b.jpg", + "583598b9d8ce2e2dee176a7e.jpg", + "5835c9acd8ce2e2dee176b0a.jpg", + "5836452cd8ce2e2dee176b72.jpg", + "58365fd3d8ce2e2dee176ba7.jpg", + "58365ffad8ce2e2dee176ba9.jpg", + "5836a689d8ce2e2dee176c4b.jpg", + "5836e2b2d8ce2e2dee176d01.jpg", + "5836eea6d8ce2e2dee176d34.jpg", + "583731dbd8ce2e2dee176de3.jpg", + "58376129d8ce2e2dee176e06.jpg", + "5837b95bd8ce2e2dee176e5d.jpg", + "5837f47dd8ce2e2dee176edc.jpg", + "5838165ed8ce2e2dee176f42.jpg", + "58385625d8ce2e2dee177040.jpg", + "58385ab1d8ce2e2dee177052.jpg", + "583862b6d8ce2e2dee17705d.jpg", + "5838bc1ad8ce2e2dee1770b7.jpg", + "5838cb5cd8ce2e2dee1770c6.jpg", + "5838e1a1d8ce2e2dee1770eb.jpg", + "5838e202d8ce2e2dee1770ed.jpg", + "58391620d8ce2e2dee177177.jpg", + "58396c68d8ce2e2dee17726b.jpg", + "58398309d8ce2e2dee1772bb.jpg", + "5839b4d5d8ce2e2dee177364.jpg", + "583a3520d8ce2e2dee1773d1.jpg", + "583a3e89d8ce2e2dee1773e0.jpg", + "583a63a1d8ce2e2dee177412.jpg", + "583a6f15d8ce2e2dee177422.jpg", + "583ab57fd8ce2e2dee17746e.jpg", + "583ace98d8ce2e2dee177498.jpg", + "583b9b9fd8ce2e2dee177561.jpg", + "583c1816d8ce2e53ebc88c6f.jpg", + "583ca1cad8ce2e53ebc88d2e.jpg", + "583cfabbd8ce2e53ebc88d5b.jpg", + "583d5d6ad8ce2e53ebc88dd7.jpg", + "583db52ad8ce2e53ebc88e40.jpg", + "583de4d8d8ce2e53ebc88e56.jpg", + "583f5d03d8ce2e53ebc88f63.jpg", + "583fce68d8ce2e53ebc88fa0.jpg", + "583fe78dd8ce2e53ebc88fba.jpg", + "58410e4bd8ce2e53ebc890c4.jpg", + "58413be3d8ce2e53ebc890ee.jpg", + "58414d48d8ce2e53ebc89103.jpg", + "5841644fd8ce2e53ebc8912c.jpg", + "58417069d8ce2e53ebc89146.jpg", + "58417241d8ce2e53ebc89149.jpg", + "58425805d8ce2e53ebc891ef.jpg", + "5842979ad8ce2e53ebc89240.jpg", + "58429ba9d8ce2e53ebc89243.jpg", + "5842c50ad8ce2e53ebc89296.jpg", + "58435e85d8ce2e53ebc89318.jpg", + "5843e8b1d8ce2e53ebc893e2.jpg", + "5844df33d8ce2e53ebc894c0.jpg", + "58452a2ad8ce2e53ebc89500.jpg", + "58456ff3d8ce2e53ebc89592.jpg", + "5845df2ad8ce2e53ebc895eb.jpg", + "584697edd8ce2e560b57fe53.jpg", + "5846e485d8ce2e560b57fedb.jpg", + "58474a1ad8ce2e560b57ff1f.jpg", + "58477ffdd8ce2e560b57ffa7.jpg", + "584781fcd8ce2e560b57ffb6.jpg", + "5847a2ded8ce2e560b580072.jpg", + "5847b045d8ce2e560b5800a3.jpg", + "5847b2d0d8ce2e560b5800b0.jpg", + "5847bb6ed8ce2e560b5800e2.jpg", + "5847d651d8ce2e560b580152.jpg", + "5847d8f2d8ce2e560b58015e.jpg", + "5847e2f8d8ce2e560b580185.jpg", + "5847e919d8ce2e560b5801a7.jpg", + "584803e3d8ce2e560b58024b.jpg", + "58480ceed8ce2e560b58027e.jpg", + "58481813d8ce2e560b5802be.jpg", + "58481c26d8ce2e560b5802d9.jpg", + "5848213ad8ce2e560b5802f9.jpg", + "58483017d8ce2e560b580345.jpg", + "58487149d8ce2e560b5803a9.jpg", + "584878a0d8ce2e560b5803af.jpg", + "5848a5ecd8ce2e560b5803d6.jpg", + "5848c501d8ce2e560b5803f9.jpg", + "5848c99cd8ce2e560b5803fc.jpg", + "5848e249d8ce2e560b580426.jpg", + "5848f623d8ce2e560b580442.jpg", + "58492e46d8ce2e560b5804d1.jpg", + "584942c1d8ce2e560b580536.jpg", + "58494397d8ce2e560b580539.jpg", + "58494459d8ce2e560b580543.jpg", + "584945fad8ce2e560b58054d.jpg", + "584950b0d8ce2e560b58058a.jpg", + "58495ea5d8ce2e560b5805e1.jpg", + "5849675bd8ce2e560b580627.jpg", + "584967a5d8ce2e560b58062a.jpg", + "58497110d8ce2e560b58065c.jpg", + "58498c6bd8ce2e560b5806d6.jpg", + "5849e1f0d8ce2e560b58074b.jpg", + "584a1217d8ce2e560b58079e.jpg", + "584a1295d8ce2e560b5807a0.jpg", + "584a130fd8ce2e560b5807a1.jpg", + "584a1941d8ce2e560b5807a9.jpg", + "584a1a6dd8ce2e560b5807ab.jpg", + "584a1accd8ce2e560b5807ac.jpg", + "584a30d9d8ce2e560b5807f5.jpg", + "584a444dd8ce2e560b580837.jpg", + "584a6b09d8ce2e560b5808b2.jpg", + "584a6f71d8ce2e560b5808c4.jpg", + "584a8e8dd8ce2e560b58094a.jpg", + "584a96e6d8ce2e560b580984.jpg", + "584a9f9bd8ce2e560b5809c8.jpg", + "584aa925d8ce2e560b580a0c.jpg", + "584aae56d8ce2e560b580a31.jpg", + "584aaf94d8ce2e560b580a42.jpg", + "584acdcbd8ce2e560b580af2.jpg", + "584b17b4d8ce2e560b580b6f.jpg", + "584b1ee7d8ce2e560b580b76.jpg", + "584b41abd8ce2e560b580ba4.jpg", + "584b4295d8ce2e560b580ba8.jpg", + "584b58e2d8ce2e560b580be0.jpg", + "584bba4ed8ce2e560b580db7.jpg", + "584bc9cfd8ce2e560b580e1c.jpg", + "584bcd8fd8ce2e560b580e33.jpg", + "584bd8c4d8ce2e560b580e86.jpg", + "584bfd94d8ce2e560b580f9b.jpg", + "584bfe71d8ce2e560b580fa5.jpg", + "584c0607d8ce2e560b580fd6.jpg", + "584c1c71d8ce2e560b581068.jpg", + "584c4994d8ce2e560b5810d8.jpg", + "584c7152d8ce2e560b581105.jpg", + "584cb954d8ce2e560b5811cc.jpg", + "584ce333d8ce2e560b5812a0.jpg", + "584d30a1d8ce2e560b581434.jpg", + "584d32b5d8ce2e560b581443.jpg", + "584d46e0d8ce2e560b5814dd.jpg", + "584d5665d8ce2e560b581536.jpg", + "584d5df5d8ce2e560b581567.jpg", + "584d7272d8ce2e560b5815c0.jpg", + "584d7bc8d8ce2e560b5815dc.jpg", + "584da9e0d8ce2e560b581629.jpg", + "584de72dd8ce2e560b581670.jpg", + "584e2f88d8ce2e560b5816fd.jpg", + "584e4334d8ce2e560b58173f.jpg", + "584e4590d8ce2e560b58174d.jpg", + "584e5098d8ce2e560b58176b.jpg", + "584e8cddd8ce2e560b58184c.jpg", + "584ead8dd8ce2e560b581906.jpg", + "584ebb08d8ce2e560b58193e.jpg", + "584f8183d8ce2e560b581aa2.jpg", + "584f8739d8ce2e560b581ab7.jpg", + "584f9193d8ce2e560b581ae1.jpg", + "584fa640d8ce2e560b581b1d.jpg", + "584fd86ad8ce2e560b581be7.jpg", + "584fdbdfd8ce2e560b581c0b.jpg", + "584fe82cd8ce2e560b581c5d.jpg", + "58500131d8ce2e560b581cf1.jpg", + "58501c73d8ce2e560b581d5c.jpg", + "58503806d8ce2e560b581d93.jpg", + "5850760cd8ce2e560b581dc6.jpg", + "585093f3d8ce2e560b581de4.jpg", + "5850af2ed8ce2e560b581e1f.jpg", + "5850cb06d8ce2e560b581e63.jpg", + "5850fafbd8ce2e560b581eff.jpg", + "585117d4d8ce2e560b581f77.jpg", + "585121d4d8ce2e560b581fac.jpg", + "58514d9ad8ce2e560b58209b.jpg", + "58514dfdd8ce2e560b58209e.jpg", + "5851533ad8ce2e560b5820b9.jpg", + "585155e8d8ce2e560b5820c2.jpg", + "5851787ed8ce2e560b58211e.jpg", + "5851ea58d8ce2e560b58219a.jpg", + "58520d5ad8ce2e560b5821d8.jpg", + "58521ebad8ce2e560b58220b.jpg", + "58534cefd8ce2e0f74b9620f.jpg", + "58538629d8ce2e0f74b9629f.jpg", + "585393b3d8ce2e0f74b962c5.jpg", + "5853a7b6d8ce2e0f74b962ff.jpg", + "5853a7f4d8ce2e0f74b96300.jpg", + "5853b2b7d8ce2e0f74b9632e.jpg", + "5853dbf9d8ce2e0f74b96408.jpg", + "5853f8b3d8ce2e0f74b964c2.jpg", + "5853fa67d8ce2e0f74b964cf.jpg", + "58540b6bd8ce2e0f74b96517.jpg", + "58541226d8ce2e0f74b96529.jpg", + "5854c87ad8ce2e0f74b966d6.jpg", + "5854cba6d8ce2e0f74b966e5.jpg", + "58550972d8ce2e0f74b96825.jpg", + "5855119dd8ce2e0f74b96854.jpg", + "58552286d8ce2e0f74b968d6.jpg", + "585536f5d8ce2e0f74b96967.jpg", + "58554241d8ce2e0f74b969be.jpg", + "5855452ad8ce2e0f74b969db.jpg", + "585552b0d8ce2e0f74b96a29.jpg", + "58556f91d8ce2e0f74b96a89.jpg", + "58557c20d8ce2e0f74b96a9e.jpg", + "5855d04bd8ce2e0f74b96af2.jpg", + "5855fcb6d8ce2e0f74b96b93.jpg", + "58562c0bd8ce2e0f74b96c76.jpg", + "58563974d8ce2e0f74b96caf.jpg", + "585647e4d8ce2e0f74b96d03.jpg", + "58565e37d8ce2e0f74b96d72.jpg", + "585666a1d8ce2e0f74b96dad.jpg", + "585667c3d8ce2e0f74b96dba.jpg", + "58567517d8ce2e0f74b96e21.jpg", + "58568afcd8ce2e0f74b96ead.jpg", + "58568ed1d8ce2e0f74b96ec2.jpg", + "5856a5e0d8ce2e0f74b96f33.jpg", + "58572907d8ce2e0f74b96feb.jpg", + "58575c4fd8ce2e0f74b97072.jpg", + "58575ea0d8ce2e0f74b97079.jpg", + "5857663bd8ce2e0f74b9709c.jpg", + "58577752d8ce2e0f74b970d6.jpg", + "58579043d8ce2e0f74b97122.jpg", + "5857aaaed8ce2e0f74b9719e.jpg", + "5857caebd8ce2e0f74b97265.jpg", + "5857ef62d8ce2e0f74b97354.jpg", + "5857f1c3d8ce2e0f74b9735f.jpg", + "58586878d8ce2e0f74b97449.jpg", + "5858d8acd8ce2e0f74b97586.jpg", + "5858ee66d8ce2e0f74b975d5.jpg", + "5858f64fd8ce2e0f74b97602.jpg", + "58590722d8ce2e0f74b9765c.jpg", + "5859215ad8ce2e0f74b976fb.jpg", + "585928c3d8ce2e0f74b97725.jpg", + "5859368ed8ce2e0f74b9777e.jpg", + "58595b33d8ce2e0f74b9782a.jpg", + "58598517d8ce2e0f74b97868.jpg", + "5859fb73d8ce2e0f74b9793d.jpg", + "585a2927d8ce2e0f74b97a05.jpg", + "585a29f3d8ce2e0f74b97a07.jpg", + "585a4711d8ce2e0f74b97a7e.jpg", + "585a8c14d8ce2e0f74b97c45.jpg", + "585b16d8d8ce2e0f74b97d85.jpg", + "585b4e72d8ce2e17d0494609.jpg", + "585b6006d8ce2e17d049464c.jpg", + "585b6788d8ce2e4488224d46.jpg", + "585bb182d8ce2e4488224e5b.jpg", + "585bb3ddd8ce2e4488224e65.jpg", + "585bb6d5d8ce2e4488224e78.jpg", + "585bd55ad8ce2e4488224f2e.jpg", + "585bf0aad8ce2e4488224faa.jpg", + "585bf39ad8ce2e4488224fb2.jpg", + "585bf7ffd8ce2e4488224fbf.jpg", + "585c09f6d8ce2e4488224fe2.jpg", + "585c6d2cd8ce2e4488225040.jpg", + "585c92d7d8ce2e4488225080.jpg", + "585cc78bd8ce2e448822513a.jpg", + "585cfcd1d8ce2e5419a83f97.jpg", + "585d1538d8ce2e5419a8402f.jpg", + "585d1b7fd8ce2e5419a8405c.jpg", + "585d26e4d8ce2e5419a840ae.jpg", + "585d4f1ad8ce2e5419a84156.jpg", + "585d6381d8ce2e5419a84175.jpg", + "585d6db7d8ce2e5419a84181.jpg", + "585d905dd8ce2e5419a841a8.jpg", + "585da707d8ce2e5419a841b9.jpg", + "585daeccd8ce2e5419a841c4.jpg", + "585db2dcd8ce2e5419a841c8.jpg", + "585dc344d8ce2e5419a841f5.jpg", + "585e1a35d8ce2e5419a84356.jpg", + "585e1afbd8ce2e5419a8435a.jpg", + "585e1b1ad8ce2e5419a8435d.jpg", + "585e1b7ad8ce2e5419a84361.jpg", + "585e554fd8ce2e5419a844aa.jpg", + "585e6354d8ce2e5419a8450a.jpg", + "585e7425d8ce2e5419a84578.jpg", + "585e83d2d8ce2e5419a845c6.jpg", + "585e8482d8ce2e5419a845cb.jpg", + "585eb56ed8ce2e5419a8466f.jpg", + "585f243bd8ce2e5419a8473a.jpg", + "585f2f24d8ce2e5419a8475f.jpg", + "585f30c3d8ce2e5419a84765.jpg", + "585f5532d8ce2e5419a84812.jpg", + "585f7286d8ce2e5419a848cd.jpg", + "585f7739d8ce2e5419a848e2.jpg", + "585f7cbcd8ce2e5419a84907.jpg", + "585f7ce9d8ce2e5419a84908.jpg", + "585f8f4cd8ce2e5419a84961.jpg", + "585f93b1d8ce2e5419a84979.jpg", + "585fa374d8ce2e5419a849d9.jpg", + "585fa48cd8ce2e5419a849e4.jpg", + "585fc8a7d8ce2e5419a84ada.jpg", + "585fdce7d8ce2e5419a84b43.jpg", + "585fe18bd8ce2e5419a84b5b.jpg", + "5860180ad8ce2e5419a84bd1.jpg", + "58607bb8d8ce2e5419a84d0f.jpg", + "58608f5ad8ce2e5419a84dc0.jpg", + "58609380d8ce2e5419a84df4.jpg", + "58609a85d8ce2e5419a84e4d.jpg", + "58609bbcd8ce2e5419a84e5d.jpg", + "5860ac53d8ce2e5419a84f1d.jpg", + "5860ad94d8ce2e5419a84f2a.jpg", + "5860ce69d8ce2e5419a85064.jpg", + "5860daf9d8ce2e5419a85114.jpg", + "5860f3e0d8ce2e5419a852f3.jpg", + "5860facfd8ce2e5419a8538a.jpg", + "586113d9d8ce2e5419a855c2.jpg", + "5861171ad8ce2e5419a85601.jpg", + "58613a2fd8ce2e5419a85792.jpg", + "586149add8ce2e5419a857db.jpg", + "58619358d8ce2e5419a85877.jpg", + "5861c455d8ce2e5419a858e1.jpg", + "5861e785d8ce2e15a51c10f1.jpg", + "5861f4b9d8ce2e15a51c1158.jpg", + "586223c0d8ce2e15a51c1257.jpg", + "586230b7d8ce2e15a51c12ac.jpg", + "586242ccd8ce2e15a51c134c.jpg", + "5862497ad8ce2e15a51c1377.jpg", + "58626608d8ce2e15a51c1495.jpg", + "58628460d8ce2e15a51c1586.jpg", + "58628539d8ce2e15a51c158c.jpg", + "5862978dd8ce2e15a51c15da.jpg", + "5862fdd8d8ce2e15a51c1684.jpg", + "5863372ed8ce2e15a51c1718.jpg", + "5863607fd8ce2e15a51c17b5.jpg", + "586371b1d8ce2e15a51c17ee.jpg", + "58637dc8d8ce2e15a51c181f.jpg", + "5863e6f5d8ce2e15a51c1aca.jpg", + "58648348d8ce2e15a51c1bc9.jpg", + "5864f35dd8ce2e15a51c1d83.jpg", + "5864f481d8ce2e15a51c1d8c.jpg", + "5865e05ed8ce2e15a51c2024.jpg", + "5866120fd8ce2e15a51c20d1.jpg", + "586640e3d8ce2e15a51c21cd.jpg", + "58665f55d8ce2e15a51c22c9.jpg", + "58666304d8ce2e15a51c22e6.jpg", + "5866f1fed8ce2e15a51c2465.jpg", + "5867360bd8ce2e15a51c25a6.jpg", + "586749f8d8ce2e15a51c261e.jpg", + "58674d4bd8ce2e15a51c2630.jpg", + "58676b38d8ce2e15a51c26e1.jpg", + "58678331d8ce2e15a51c276a.jpg", + "5867a235d8ce2e15a51c2859.jpg", + "586879c4d8ce2e15a51c2b52.jpg", + "5868a6e9d8ce2e15a51c2c93.jpg", + "5868b620d8ce2e15a51c2d0a.jpg", + "5868f049d8ce2e15a51c2ef7.jpg", + "5868f346d8ce2e15a51c2f1a.jpg", + "5868f678d8ce2e15a51c2f40.jpg", + "586903c9d8ce2e15a51c2fcc.jpg", + "58690c15d8ce2e15a51c3015.jpg", + "58693505d8ce2e15a51c30e0.jpg", + "58694167d8ce2e15a51c3106.jpg", + "586989efd8ce2e15a51c3165.jpg", + "5869a9b3d8ce2e15a51c31cf.jpg", + "5869d301d8ce2e15a51c32bd.jpg", + "5869f72cd8ce2e15a51c339d.jpg", + "586a614fd8ce2e7a9fe1a6bc.jpg", + "586a6680d8ce2e7a9fe1a6de.jpg", + "586a67a5d8ce2e7a9fe1a6e4.jpg", + "586ae7f7d8ce2e7a9fe1a800.jpg", + "586af319d8ce2e7a9fe1a817.jpg", + "586b74e2d8ce2e7a9fe1a9e1.jpg", + "586b9ac6d8ce2e7a9fe1aacc.jpg", + "586ba89ad8ce2e7a9fe1ab3b.jpg", + "586c6a65d8ce2e7a9fe1ad23.jpg", + "586c74e2d8ce2e7a9fe1ad5b.jpg", + "586c8779d8ce2e7a9fe1adad.jpg", + "586c9b19d8ce2e7a9fe1ae0f.jpg", + "586ca788d8ce2e7a9fe1ae4b.jpg", + "586ca937d8ce2e7a9fe1ae54.jpg", + "586cccf2d8ce2e7a9fe1af16.jpg", + "586cd4c7d8ce2e7a9fe1af37.jpg", + "586cd5ccd8ce2e7a9fe1af3f.jpg", + "586cdd22d8ce2e7a9fe1af6e.jpg", + "586cf0a3d8ce2e7a9fe1affe.jpg", + "586cf3ccd8ce2e7a9fe1b018.jpg", + "586cfd15d8ce2e7a9fe1b05d.jpg", + "586d2636d8ce2e7a9fe1b135.jpg", + "586d5439d8ce2e7a9fe1b189.jpg", + "586d9591d8ce2e7a9fe1b1e6.jpg", + "586dc814d8ce2e7a9fe1b27f.jpg", + "586dcacad8ce2e7a9fe1b28a.jpg", + "586de07cd8ce2e7a9fe1b2fa.jpg", + "586e0a0ad8ce2e7a9fe1b3b7.jpg", + "586e105bd8ce2e7a9fe1b3dd.jpg", + "586e3bb7d8ce2e7a9fe1b52a.jpg", + "586e3eedd8ce2e7a9fe1b549.jpg", + "586e40b4d8ce2e7a9fe1b55b.jpg", + "586e5381d8ce2e7a9fe1b5e3.jpg", + "586e547ad8ce2e7a9fe1b5e7.jpg", + "586e5bb8d8ce2e7a9fe1b60b.jpg", + "586e61d2d8ce2e7a9fe1b633.jpg", + "586e8003d8ce2e7a9fe1b688.jpg", + "586e8145d8ce2e7a9fe1b68e.jpg" + ], + "Girl": [ + "5766a453d8ce2e2ad3b21d89.jpg", + "57681a0cd8ce2e087fed27a1.jpg", + "57682c2ad8ce2e087fed27a8.jpg", + "57702ec6d8ce2e48a8f66ed9.jpg", + "5770a434d8ce2e48a8f66f24.jpg", + "5770e7a8d8ce2e48a8f66f84.jpg", + "57725cb0d8ce2e48a8f67131.jpg", + "57735585d8ce2e48a8f67235.jpg", + "5779f3a5d8ce2e48a8f67c42.jpg", + "577a68a8d8ce2e48a8f67d65.jpg", + "577c531ed8ce2e48a8f67fe8.jpg", + "577cb49dd8ce2e48a8f6807f.jpg", + "577ce986d8ce2e48a8f680e2.jpg", + "577e717ad8ce2e48a8f682d1.jpg", + "577e7464d8ce2e48a8f682d7.jpg", + "577f6f5fd8ce2e48a8f683ca.jpg", + "577fee98d8ce2e48a8f68474.jpg", + "5780ba59d8ce2e48a8f68540.jpg", + "57834f08d8ce2e48a8f687f1.jpg", + "57838c54d8ce2e48a8f68840.jpg", + "578406c9d8ce2e48a8f688b5.jpg", + "57841180d8ce2e48a8f688b9.jpg", + "5785a08bd8ce2e48a8f68a2c.jpg", + "5785b995d8ce2e48a8f68a4c.jpg", + "57869e69d8ce2e48a8f68b57.jpg", + "5787487fd8ce2e48a8f68bfe.jpg", + "5787aad6d8ce2e48a8f68c97.jpg", + "5788d053d8ce2e48a8f68da9.jpg", + "578d60e0d8ce2e48a8f69279.jpg", + "578d63bfd8ce2e48a8f6927d.jpg", + "578df06dd8ce2e48a8f6931e.jpg", + "578e32c7d8ce2e48a8f69394.jpg", + "578f47e5d8ce2e48a8f69499.jpg", + "578ff0f2d8ce2e48a8f6952d.jpg", + "579321efd8ce2e48a8f6986b.jpg", + "5795a964d8ce2e48a8f69b1f.jpg", + "57988efbd8ce2e48a8f69deb.jpg", + "579972cbd8ce2e48a8f69eb1.jpg", + "5799d563d8ce2e48a8f69f2a.jpg", + "579ac8d9d8ce2e48a8f6a019.jpg", + "579c5e6bd8ce2e48a8f6a1b1.jpg", + "579caf9ad8ce2e48a8f6a226.jpg", + "579e0a0bd8ce2e48a8f6a405.jpg", + "579e6515d8ce2e48a8f6a4a1.jpg", + "579fbac5d8ce2e48a8f6a6c4.jpg", + "57a1de1dd8ce2e48a8f6aa6c.jpg", + "57a24d22d8ce2e48a8f6ab2c.jpg", + "57a3058ad8ce2e48a8f6ac34.jpg", + "57a451ebd8ce2e48a8f6ae8c.jpg", + "57a46f51d8ce2e48a8f6aed1.jpg", + "57a53216d8ce2e48a8f6b03d.jpg", + "57a583ead8ce2e48a8f6b0ec.jpg", + "57a61d8ed8ce2e48a8f6b294.jpg", + "57a63d43d8ce2e48a8f6b2c3.jpg", + "57a71dd2d8ce2e48a8f6b4a8.jpg", + "57a7370cd8ce2e48a8f6b50a.jpg", + "57a89e91d8ce2e56214b2e22.jpg", + "57a979afd8ce2e56214b2fb9.jpg", + "57a9b371d8ce2e56214b3056.jpg", + "57aae0c7d8ce2e56214b3387.jpg", + "57ab4687d8ce2e56214b3528.jpg", + "57ac1d98d8ce2e56214b3764.jpg", + "57ac6e8ed8ce2e56214b3813.jpg", + "57acd875d8ce2e56214b389c.jpg", + "57acf7b7d8ce2e56214b38ae.jpg", + "57ad18bfd8ce2e56214b38cb.jpg", + "57ad58f1d8ce2e56214b3926.jpg", + "57ad993ed8ce2e56214b3997.jpg", + "57ae1c0ad8ce2e56214b3a49.jpg", + "57ae4b71d8ce2e56214b3a5f.jpg", + "57ae5f3cd8ce2e56214b3a6b.jpg", + "57af077ad8ce2e56214b3b56.jpg", + "57b03caed8ce2e56214b3cd8.jpg", + "57b19f41d8ce2e56214b3e96.jpg", + "57b1d266d8ce2e56214b3f09.jpg", + "57b3600ed8ce2e55a85f559e.jpg", + "57b3ede6d8ce2e55a85f563b.jpg", + "57b3f388d8ce2e55a85f5641.jpg", + "57b52c73d8ce2e55a85f57ff.jpg", + "57b5c00bd8ce2e1e7e88e164.jpg", + "57b5c64bd8ce2e1e7e88e172.jpg", + "57b669f5d8ce2e1e7e88e1f3.jpg", + "57b6c75bd8ce2e1e7e88e27b.jpg", + "57b6de55d8ce2e1e7e88e2a9.jpg", + "57b71e2fd8ce2e1e7e88e33b.jpg", + "57b7e366d8ce2e1e7e88e405.jpg", + "57b840fbd8ce2e1e7e88e4b0.jpg", + "57b9a6f0d8ce2e1e7e88e6b7.jpg", + "57baeebad8ce2e1e7e88e866.jpg", + "57baf538d8ce2e1e7e88e874.jpg", + "57bb9e0bd8ce2e1e7e88e919.jpg", + "57bbec84d8ce2e1e7e88e9a2.jpg", + "57bc7fbdd8ce2e1e7e88eaa4.jpg", + "57bd9d9bd8ce2e12c9b5125c.jpg", + "57bef590d8ce2e12c9b51424.jpg", + "57c1382ad8ce2e12c9b516e9.jpg", + "57c16630d8ce2e12c9b51729.jpg", + "57c17b15d8ce2e12c9b51747.jpg", + "57c1c83dd8ce2e12c9b517b7.jpg", + "57c1d10fd8ce2e12c9b517c0.jpg", + "57c2119fd8ce2e12c9b517f7.jpg", + "57c2d67fd8ce2e12c9b518f3.jpg", + "57c342c6d8ce2e12c9b5195f.jpg", + "57c4bd91d8ce2e12c9b51add.jpg", + "57c65a49d8ce2e12c9b51cb4.jpg", + "57c74485d8ce2e3496374b24.jpg", + "57c7ac03d8ce2e3496374b66.jpg", + "57c7e85fd8ce2e3d365bdbac.jpg", + "57c8377cd8ce2e3d365bdc3d.jpg", + "57c83f45d8ce2e3d365bdc4f.jpg", + "57c884d9d8ce2e3d365bdc9d.jpg", + "57c924cad8ce2e3d365bdd22.jpg", + "57c96885d8ce2e3d365bdd8c.jpg", + "57cba5b1d8ce2e3d365be01e.jpg", + "57cbeee6d8ce2e3d365be09a.jpg", + "57cc258fd8ce2e3d365be0fd.jpg", + "57cc2e1ed8ce2e3d365be112.jpg", + "57cc3e88d8ce2e3d365be130.jpg", + "57cc67f5d8ce2e3d365be160.jpg", + "57ccfed6d8ce2e3d365be1c2.jpg", + "57cd3316d8ce2e3d365be207.jpg", + "57cd81afd8ce2e3d365be29f.jpg", + "57cd839ad8ce2e3d365be2a5.jpg", + "57cd96ecd8ce2e3d365be2c8.jpg", + "57ce1788d8ce2e3d365be334.jpg", + "57ce5f17d8ce2e3d365be37f.jpg", + "57d025fcd8ce2e3d365be5ab.jpg", + "57d1473ed8ce2e3d365be6c9.jpg", + "57d1562fd8ce2e3d365be6e1.jpg", + "57d15c49d8ce2e3d365be6eb.jpg", + "57d2a5111f204d06ecded77e.jpg", + "57d3a19fd8ce2e63f3a61e20.jpg", + "57d3f65ad8ce2e63f3a61ec3.jpg", + "57d3f98ed8ce2e63f3a61ec7.jpg", + "57d40902d8ce2e63f3a61eef.jpg", + "57d42346d8ce2e63f3a61f1c.jpg", + "57d4a3c8d8ce2e63f3a61f8d.jpg", + "57d652fbd8ce2e63f3a62187.jpg", + "57d6c4b9d8ce2e63f3a6221d.jpg", + "57d78abed8ce2e63f3a622ce.jpg", + "57d7ba9bd8ce2e63f3a622f8.jpg", + "57d895f4d8ce2e63f3a623aa.jpg", + "57db791e1f204d4eeceb066b.jpg", + "57dbeae81f204d4eeceb072a.jpg", + "57df6617d8ce2e34d4e10ef3.jpg", + "57dfae62d8ce2e34d4e10f40.jpg", + "57e0f991d8ce2e34d4e11065.jpg", + "57e11040d8ce2e34d4e11089.jpg", + "57e130e6d8ce2e2fb1384532.jpg", + "57e1a438d8ce2e2fb1384596.jpg", + "57e299c5d8ce2e2fb138467d.jpg", + "57e29fe2d8ce2e2fb1384687.jpg", + "57e2d78dd8ce2e2fb13846bf.jpg", + "57e35bd5d8ce2e2fb138470e.jpg", + "57e3f245d8ce2e2fb13847af.jpg", + "57e510ecd8ce2e2fb138486a.jpg", + "57e52279d8ce2e2fb1384885.jpg", + "57e9e8cbd8ce2e50eafe696d.jpg", + "57e9ea70d8ce2e50eafe69af.jpg", + "57e9ebd7d8ce2e50eafe69d9.jpg", + "57e9f2abd8ce2e50eafe6a92.jpg", + "57ea11e5d8ce2e50eafe6cde.jpg", + "57ea14e6d8ce2e50eafe6d03.jpg", + "57ea216ed8ce2e50eafe6d97.jpg", + "57ea4a2ed8ce2e268748040a.jpg", + "57ea4caed8ce2e2687480434.jpg", + "57ea6467d8ce2e26874805c0.jpg", + "57ea6d2dd8ce2e268748064f.jpg", + "57ea71d3d8ce2e268748068b.jpg", + "57ea724ed8ce2e268748068e.jpg", + "57eaa0ddd8ce2e26874807db.jpg", + "57eb38edd8ce2e26874809d0.jpg", + "57eb4b63d8ce2e2687480a33.jpg", + "57eb6168d8ce2e2687480a9b.jpg", + "57eb6e0fd8ce2e2687480ace.jpg", + "57eb6fa8d8ce2e2687480ad6.jpg", + "57eb74a5d8ce2e667c645405.jpg", + "57eb80e8d8ce2e667c645434.jpg", + "57eb825dd8ce2e667c64543e.jpg", + "57ebbdc8d8ce2e667c645506.jpg", + "57ebd93fd8ce2e667c645563.jpg", + "57ec6dcbd8ce2e667c645600.jpg", + "57ec6e5bd8ce2e667c645602.jpg", + "57ecfcccd8ce2e667c645704.jpg", + "57eda7cdd8ce2e667c6457b4.jpg", + "57ee47c4d8ce2e797d5bcd79.jpg", + "57ee4d63d8ce2e797d5bcd86.jpg", + "57ee83b7d8ce2e797d5bcdf6.jpg", + "57eec855d8ce2e797d5bce32.jpg", + "57ef19b1d8ce2e797d5bce78.jpg", + "57ef2a1bd8ce2e797d5bce94.jpg", + "57ef56e4d8ce2e797d5bced4.jpg", + "57ef5db8d8ce2e797d5bcede.jpg", + "57ef8d88d8ce2e797d5bcf2f.jpg", + "57f06253d8ce2e797d5bcffa.jpg", + "57f11182d8ce2e797d5bd120.jpg", + "57f1a855d8ce2e797d5bd1c3.jpg", + "57f1f62dd8ce2e797d5bd24a.jpg", + "57f20819d8ce2e797d5bd268.jpg", + "57f257dfd8ce2e797d5bd2f6.jpg", + "57f283d9d8ce2e797d5bd349.jpg", + "57f32639d8ce2e797d5bd416.jpg", + "57f34ccbd8ce2e797d5bd492.jpg", + "57f38093d8ce2e797d5bd55d.jpg", + "57f38287d8ce2e797d5bd566.jpg", + "57f3a4e5d8ce2e797d5bd5d9.jpg", + "57f3b484d8ce2e797d5bd628.jpg", + "57f3c33ad8ce2e797d5bd66e.jpg", + "57f3ed14d8ce2e797d5bd6f7.jpg", + "57f410a6d8ce2e797d5bd722.jpg", + "57f48772d8ce2e797d5bd82e.jpg", + "57f4a738d8ce2e797d5bd8a6.jpg", + "57f4cc76d8ce2e797d5bd928.jpg", + "57f4d178d8ce2e797d5bd933.jpg", + "57f4e128d8ce2e797d5bd962.jpg", + "57f5066ed8ce2e797d5bda19.jpg", + "57f50734d8ce2e797d5bda20.jpg", + "57f50ef0d8ce2e797d5bda42.jpg", + "57f510f3d8ce2e797d5bda4a.jpg", + "57f5253bd8ce2e797d5bda91.jpg", + "57f54aced8ce2e797d5bdade.jpg", + "57f58d88d8ce2e797d5bdb33.jpg", + "57f5a3fed8ce2e797d5bdb60.jpg", + "57f5b090d8ce2e797d5bdb81.jpg", + "57f5cdd3d8ce2e797d5bdbdf.jpg", + "57f5d02dd8ce2e797d5bdbe7.jpg", + "57f5d33cd8ce2e797d5bdbf0.jpg", + "57f5dfa2d8ce2e797d5bdc1d.jpg", + "57f5ede2d8ce2e797d5bdc56.jpg", + "57f612c4d8ce2e797d5bdcee.jpg", + "57f61e95d8ce2e797d5bdd1a.jpg", + "57f625fcd8ce2e797d5bdd39.jpg", + "57f6435ed8ce2e797d5bddba.jpg", + "57f66268d8ce2e797d5bde52.jpg", + "57f67072d8ce2e797d5bde86.jpg", + "57f6c0d0d8ce2e797d5bdf02.jpg", + "57f719bbd8ce2e797d5bdfc6.jpg", + "57f795b4d8ce2e797d5be187.jpg", + "57f7accad8ce2e797d5be1f1.jpg", + "57f7bfe6d8ce2e797d5be232.jpg", + "57f7c2c0d8ce2e797d5be239.jpg", + "57f88c58d8ce2e797d5be321.jpg", + "57f99971d8ce2e797d5be470.jpg", + "57f9b316d8ce2e797d5be486.jpg", + "57fa43e7d8ce2e797d5be544.jpg", + "57fa4635d8ce2e797d5be54b.jpg", + "57fb5f17d8ce2e4249352474.jpg", + "57fb74b5d8ce2e42493524a0.jpg", + "57fba03fd8ce2e42493524f5.jpg", + "57fba922d8ce2e4249352504.jpg", + "57fc71f2d8ce2e437cc3df9f.jpg", + "57fc911ed8ce2e437cc3dfd6.jpg", + "57fca1b6d8ce2e437cc3dfef.jpg", + "57fccad5d8ce2e437cc3e058.jpg", + "57fdb929d8ce2e437cc3e1b5.jpg", + "57fdd982d8ce2e437cc3e1eb.jpg", + "57fe265dd8ce2e437cc3e28c.jpg", + "57fe4c31d8ce2e437cc3e312.jpg", + "57ff29c9d8ce2e437cc3e40f.jpg", + "57ff620bd8ce2e437cc3e45a.jpg", + "57ff6364d8ce2e437cc3e45f.jpg", + "580050edd8ce2e437cc3e59a.jpg", + "5800a06dd8ce2e437cc3e64f.jpg", + "5800b671d8ce2e437cc3e686.jpg", + "58014accd8ce2e437cc3e777.jpg", + "58015fd8d8ce2e437cc3e787.jpg", + "580160b1d8ce2e437cc3e789.jpg", + "5801965bd8ce2e437cc3e7d3.jpg", + "5801d70cd8ce2e437cc3e861.jpg", + "5801f4e9d8ce2e437cc3e895.jpg", + "58021e8bd8ce2e437cc3e8fb.jpg", + "58024f00d8ce2e437cc3e983.jpg", + "5802692fd8ce2e437cc3e9a5.jpg", + "58027ea1d8ce2e437cc3e9b9.jpg", + "58031e9ad8ce2e437cc3ea75.jpg", + "580377b2d8ce2e437cc3eb18.jpg", + "58040d0fd8ce2e437cc3ebaf.jpg", + "5804ace4d8ce2e437cc3ec76.jpg", + "580548d6d8ce2e437cc3ed63.jpg", + "5805790bd8ce2e437cc3ed91.jpg", + "5805c53fd8ce2e437cc3eded.jpg", + "5805c609d8ce2e437cc3edf0.jpg", + "58062a9cd8ce2e437cc3ee99.jpg", + "5806303fd8ce2e437cc3eea3.jpg", + "5807385fd8ce2e437cc3ef8c.jpg", + "5807fea6d8ce2e437cc3f066.jpg", + "5808097cd8ce2e437cc3f06c.jpg", + "58086addd8ce2e437cc3f0db.jpg", + "58087f3dd8ce2e437cc3f0f3.jpg", + "5808b254d8ce2e437cc3f137.jpg", + "5808c5afd8ce2e437cc3f153.jpg", + "580916c1d8ce2e437cc3f1a9.jpg", + "5809c0fad8ce2e437cc3f246.jpg", + "580adb38d8ce2e437cc3f359.jpg", + "580b83d5d8ce2e437cc3f439.jpg", + "580c0471d8ce2e437cc3f490.jpg", + "580c2503d8ce2e437cc3f4be.jpg", + "580c2a86d8ce2e437cc3f4c4.jpg", + "580cd6cbd8ce2e437cc3f5ba.jpg", + "580cdf0cd8ce2e437cc3f5c0.jpg", + "580e0954d8ce2e437cc3f694.jpg", + "580e1e73d8ce2e437cc3f6b5.jpg", + "580f3659d8ce2e437cc3f777.jpg", + "580f4fd1d8ce2e437cc3f799.jpg", + "580f71dfd8ce2e437cc3f7ce.jpg", + "580ffba6d8ce2e437cc3f812.jpg", + "581081c4d8ce2e2489cbe4ce.jpg", + "5810c1efd8ce2e2489cbe524.jpg", + "58124a4fd8ce2e2489cbe638.jpg", + "58128222d8ce2e2489cbe64a.jpg", + "5812898dd8ce2e2489cbe64c.jpg", + "58132ad2d8ce2e2489cbe6bf.jpg", + "581352d1d8ce2e2489cbe6f7.jpg", + "5814c55cd8ce2e2489cbe81d.jpg", + "58160239d8ce2e2489cbe8fc.jpg", + "5816fcfdd8ce2e2489cbe98d.jpg", + "58192b4ad8ce2e2489cbeae8.jpg", + "581d3dead8ce2e2489cbed83.jpg", + "581eedc5d8ce2e6724acf686.jpg", + "581f1616d8ce2e6724acf6aa.jpg", + "581ff46dd8ce2e6724acf733.jpg", + "581ffb38d8ce2e6724acf742.jpg", + "58208bfad8ce2e6724acf848.jpg", + "58208caad8ce2e6724acf849.jpg", + "5820a6b9d8ce2e6724acf86e.jpg", + "5820b289d8ce2e6724acf875.jpg", + "582158aad8ce2e6724acf8e0.jpg", + "58218b7ad8ce2e6724acf90a.jpg", + "58219e95d8ce2e6724acf91c.jpg", + "5821ac9ed8ce2e6724acf931.jpg", + "582238b5d8ce2e6724acf9a1.jpg", + "58227c7cd8ce2e6724acf9be.jpg", + "58230918d8ce2e6724acfa6c.jpg", + "582398c4d8ce2e6724acfb16.jpg", + "58242ee1d8ce2e6724acfbc5.jpg", + "58247202d8ce2e6724acfc54.jpg", + "582527cdd8ce2e6724acfd08.jpg", + "58273e20d8ce2e6724acff71.jpg", + "582740d0d8ce2e6724acff75.jpg", + "5827f67fd8ce2e6724ad0001.jpg", + "58283f04d8ce2e6724ad0059.jpg", + "58284febd8ce2e6724ad0075.jpg", + "5829cc7cd8ce2e6724ad01ca.jpg", + "582ace9fd8ce2e6724ad0280.jpg", + "582ad84ed8ce2e6724ad028e.jpg", + "582ade48d8ce2e6724ad0292.jpg", + "582b79d7d8ce2e43e610f469.jpg", + "582c6cefd8ce2e0ae89b8492.jpg", + "582ca8e8d8ce2e0ae89b84cb.jpg", + "582ce493d8ce2e0ae89b84ea.jpg", + "582d6cf7d8ce2e0ae89b856b.jpg", + "582d8cd9d8ce2e0ae89b858a.jpg", + "582e1587d8ce2e0ae89b8642.jpg", + "582ea0c2d8ce2e0ae89b86b8.jpg", + "582ef74bd8ce2e0ae89b8750.jpg", + "582fd32ed8ce2e0ae89b882d.jpg", + "583010a0d8ce2e2dee175f27.jpg", + "583089f1d8ce2e2dee176007.jpg", + "58313dc3d8ce2e2dee1760ca.jpg", + "583170ccd8ce2e2dee176138.jpg", + "5831831bd8ce2e2dee176161.jpg", + "5831a631d8ce2e2dee1761b7.jpg", + "5831adfdd8ce2e2dee1761c6.jpg", + "5832556dd8ce2e2dee17629a.jpg", + "5832628ad8ce2e2dee1762b7.jpg", + "58326ce6d8ce2e2dee1762ca.jpg", + "583275bdd8ce2e2dee1762e3.jpg", + "583293dbd8ce2e2dee176342.jpg", + "583299c4d8ce2e2dee176354.jpg", + "5832add6d8ce2e2dee176393.jpg", + "5832b721d8ce2e2dee1763b3.jpg", + "5832d6a4d8ce2e2dee17640a.jpg", + "5832d838d8ce2e2dee176413.jpg", + "5832f0a9d8ce2e2dee17647a.jpg", + "583307d2d8ce2e2dee1764dc.jpg", + "583310a0d8ce2e2dee1764ff.jpg", + "583339a1d8ce2e2dee176562.jpg", + "583340bdd8ce2e2dee176570.jpg", + "5833a9ebd8ce2e2dee1765e0.jpg", + "58344c61d8ce2e2dee1767b5.jpg", + "58345dacd8ce2e2dee1767f6.jpg", + "58346825d8ce2e2dee17680e.jpg", + "58348ebed8ce2e2dee176851.jpg", + "5834fc9cd8ce2e2dee1768c0.jpg", + "58353693d8ce2e2dee176951.jpg", + "58353e43d8ce2e2dee176964.jpg", + "5835534ad8ce2e2dee176993.jpg", + "5835744cd8ce2e2dee1769f0.jpg", + "58357cfdd8ce2e2dee176a16.jpg", + "5835adfdd8ce2e2dee176abe.jpg", + "5835bc17d8ce2e2dee176aec.jpg", + "58364bdbd8ce2e2dee176b7d.jpg", + "58366dedd8ce2e2dee176bc5.jpg", + "58366fadd8ce2e2dee176bc8.jpg", + "583695a9d8ce2e2dee176c1c.jpg", + "5836bb32d8ce2e2dee176c83.jpg", + "5836e2ebd8ce2e2dee176d03.jpg", + "5836e843d8ce2e2dee176d1d.jpg", + "58370c08d8ce2e2dee176da0.jpg", + "5837838ad8ce2e2dee176e1e.jpg", + "58379d34d8ce2e2dee176e34.jpg", + "58380e96d8ce2e2dee176f29.jpg", + "583842a4d8ce2e2dee176ffa.jpg", + "58384e67d8ce2e2dee17701f.jpg", + "58384f81d8ce2e2dee177027.jpg", + "5838648bd8ce2e2dee177064.jpg", + "5838833ad8ce2e2dee17708e.jpg", + "5838a50bd8ce2e2dee1770a8.jpg", + "58393ba1d8ce2e2dee1771d1.jpg", + "58395d96d8ce2e2dee17723f.jpg", + "583a22c7d8ce2e2dee1773be.jpg", + "583a2da3d8ce2e2dee1773cb.jpg", + "583a9c34d8ce2e2dee177452.jpg", + "583cb99cd8ce2e53ebc88d37.jpg", + "583d38c6d8ce2e53ebc88d9e.jpg", + "583d9b4fd8ce2e53ebc88e24.jpg", + "583f9442d8ce2e53ebc88f7a.jpg", + "583fadabd8ce2e53ebc88f8a.jpg", + "583fddd9d8ce2e53ebc88fb3.jpg", + "583ff1bbd8ce2e53ebc88fcb.jpg", + "583ffc3dd8ce2e53ebc88fd7.jpg", + "5840127cd8ce2e53ebc88ff5.jpg", + "584047acd8ce2e53ebc89057.jpg", + "5841329fd8ce2e53ebc890e3.jpg", + "58414227d8ce2e53ebc890f3.jpg", + "58414430d8ce2e53ebc890f8.jpg", + "58414ca0d8ce2e53ebc89100.jpg", + "58415455d8ce2e53ebc8910e.jpg", + "584180d6d8ce2e53ebc89158.jpg", + "58422e7dd8ce2e53ebc891c3.jpg", + "584231fbd8ce2e53ebc891c7.jpg", + "58428001d8ce2e53ebc89226.jpg", + "5842946dd8ce2e53ebc8923c.jpg", + "5842e98ed8ce2e53ebc892e3.jpg", + "5843490ad8ce2e53ebc8930e.jpg", + "584386dfd8ce2e53ebc89349.jpg", + "5843c409d8ce2e53ebc893a3.jpg", + "584412e8d8ce2e53ebc89427.jpg", + "5844508cd8ce2e53ebc89472.jpg", + "5844ef0ed8ce2e53ebc894ca.jpg", + "584561e2d8ce2e53ebc89564.jpg", + "5845697ed8ce2e53ebc89585.jpg", + "5845813ed8ce2e53ebc895b0.jpg", + "5845edd7d8ce2e53ebc895f0.jpg", + "5846079dd8ce2e53ebc89601.jpg", + "58461ed1d8ce2e53ebc89613.jpg", + "5846a51ad8ce2e560b57fe70.jpg", + "58475ebdd8ce2e560b57ff2c.jpg", + "58477474d8ce2e560b57ff47.jpg", + "5847793cd8ce2e560b57ff5e.jpg", + "584779e9d8ce2e560b57ff64.jpg", + "5847a442d8ce2e560b580079.jpg", + "5847b33cd8ce2e560b5800b4.jpg", + "5847bb77d8ce2e560b5800e3.jpg", + "5847bc52d8ce2e560b5800e7.jpg", + "5847d01dd8ce2e560b580136.jpg", + "58481678d8ce2e560b5802b4.jpg", + "58482681d8ce2e560b580315.jpg", + "584841aad8ce2e560b58037a.jpg", + "58486966d8ce2e560b5803a3.jpg", + "58487a73d8ce2e560b5803b2.jpg", + "5848975fd8ce2e560b5803c9.jpg", + "5848a655d8ce2e560b5803d8.jpg", + "5848c1d0d8ce2e560b5803f6.jpg", + "58491e87d8ce2e560b580483.jpg", + "584937b9d8ce2e560b580500.jpg", + "584945c3d8ce2e560b58054b.jpg", + "58496027d8ce2e560b5805ec.jpg", + "58496f08d8ce2e560b580654.jpg", + "584973a5d8ce2e560b580668.jpg", + "5849a6b2d8ce2e560b580709.jpg", + "5849b05ad8ce2e560b580719.jpg", + "5849b093d8ce2e560b58071a.jpg", + "584a2593d8ce2e560b5807d0.jpg", + "584a5e1ed8ce2e560b58087b.jpg", + "584a886ed8ce2e560b580920.jpg", + "584a9df7d8ce2e560b5809bd.jpg", + "584aa1dbd8ce2e560b5809db.jpg", + "584ac97ad8ce2e560b580ade.jpg", + "584b0b8bd8ce2e560b580b66.jpg", + "584b45fed8ce2e560b580bae.jpg", + "584b65a6d8ce2e560b580c14.jpg", + "584b67aad8ce2e560b580c1e.jpg", + "584b6b87d8ce2e560b580c2c.jpg", + "584b8ff9d8ce2e560b580cc6.jpg", + "584baa9ed8ce2e560b580d51.jpg", + "584bb7bed8ce2e560b580da7.jpg", + "584bc2a7d8ce2e560b580dea.jpg", + "584be1ecd8ce2e560b580ec8.jpg", + "584c0713d8ce2e560b580fe2.jpg", + "584c4225d8ce2e560b5810cc.jpg", + "584cb3f0d8ce2e560b5811b6.jpg", + "584cd4c9d8ce2e560b581262.jpg", + "584d2ee2d8ce2e560b581423.jpg", + "584d343dd8ce2e560b58144e.jpg", + "584d47e2d8ce2e560b5814e6.jpg", + "584d574ed8ce2e560b58153c.jpg", + "584d5da4d8ce2e560b581564.jpg", + "584d616dd8ce2e560b581580.jpg", + "584d6751d8ce2e560b581598.jpg", + "584d6c1bd8ce2e560b5815ac.jpg", + "584d84a9d8ce2e560b5815ef.jpg", + "584dbdf7d8ce2e560b58164e.jpg", + "584e7309d8ce2e560b5817cd.jpg", + "584e7c33d8ce2e560b5817f9.jpg", + "584e90aed8ce2e560b581867.jpg", + "584e969fd8ce2e560b58188f.jpg", + "584e9f58d8ce2e560b5818c3.jpg", + "584ea363d8ce2e560b5818db.jpg", + "584ec56ed8ce2e560b581964.jpg", + "584ec953d8ce2e560b58196f.jpg", + "584f0407d8ce2e560b5819c1.jpg", + "584f4a64d8ce2e560b581a08.jpg", + "584f4b2bd8ce2e560b581a0a.jpg", + "584fa1ecd8ce2e560b581b11.jpg", + "584fb952d8ce2e560b581b56.jpg", + "584fcb0ad8ce2e560b581ba5.jpg", + "584fd9b2d8ce2e560b581bf2.jpg", + "584fdf7dd8ce2e560b581c25.jpg", + "584ffd05d8ce2e560b581cdb.jpg", + "5850053dd8ce2e560b581d06.jpg", + "58500bd2d8ce2e560b581d1c.jpg", + "58500e28d8ce2e560b581d2b.jpg", + "585018cdd8ce2e560b581d53.jpg", + "58503209d8ce2e560b581d87.jpg", + "58504987d8ce2e560b581da2.jpg", + "58505d3fd8ce2e560b581dbb.jpg", + "585073bfd8ce2e560b581dc3.jpg", + "58509718d8ce2e560b581de8.jpg", + "5850eb93d8ce2e560b581ed0.jpg", + "58514c9dd8ce2e560b582092.jpg", + "58515645d8ce2e560b5820c3.jpg", + "58515806d8ce2e560b5820ca.jpg", + "585203f8d8ce2e560b5821c2.jpg", + "585225e6d8ce2e560b582221.jpg", + "5852318ed8ce2e560b582244.jpg", + "58523e19d8ce2e0f74b95f7a.jpg", + "58528e9ad8ce2e0f74b96097.jpg", + "5852a35cd8ce2e0f74b960f4.jpg", + "5852acaed8ce2e0f74b9611d.jpg", + "5852b488d8ce2e0f74b96134.jpg", + "5852cc95d8ce2e0f74b96181.jpg", + "5852d8add8ce2e0f74b96192.jpg", + "5853063ed8ce2e0f74b961ba.jpg", + "58534ef3d8ce2e0f74b96213.jpg", + "585398ced8ce2e0f74b962d4.jpg", + "5853a8ffd8ce2e0f74b96306.jpg", + "5853c5b3d8ce2e0f74b96390.jpg", + "5853cabad8ce2e0f74b963a9.jpg", + "5853ddeed8ce2e0f74b96414.jpg", + "5853e5e0d8ce2e0f74b96452.jpg", + "5853e664d8ce2e0f74b96458.jpg", + "5854a818d8ce2e0f74b9663e.jpg", + "5854cf6bd8ce2e0f74b966fa.jpg", + "5854d838d8ce2e0f74b96721.jpg", + "5854da16d8ce2e0f74b9672a.jpg", + "585519ccd8ce2e0f74b96891.jpg", + "58553fb7d8ce2e0f74b969ab.jpg", + "58559415d8ce2e0f74b96aaf.jpg", + "58560b19d8ce2e0f74b96bd5.jpg", + "5856260cd8ce2e0f74b96c53.jpg", + "58562927d8ce2e0f74b96c64.jpg", + "58565eaad8ce2e0f74b96d77.jpg", + "585670e8d8ce2e0f74b96e06.jpg", + "58567fbbd8ce2e0f74b96e67.jpg", + "58568fedd8ce2e0f74b96ec8.jpg", + "5856a924d8ce2e0f74b96f40.jpg", + "5856aba7d8ce2e0f74b96f48.jpg", + "585772b9d8ce2e0f74b970c9.jpg", + "5857a987d8ce2e0f74b9719c.jpg", + "5857b7ccd8ce2e0f74b971f2.jpg", + "5857d0d2d8ce2e0f74b9728a.jpg", + "5857fbefd8ce2e0f74b97389.jpg", + "585809cad8ce2e0f74b973be.jpg", + "5858a504d8ce2e0f74b974cf.jpg", + "5858e63bd8ce2e0f74b975b6.jpg", + "5858f758d8ce2e0f74b97605.jpg", + "58590157d8ce2e0f74b97634.jpg", + "5859016ad8ce2e0f74b97635.jpg", + "585920c2d8ce2e0f74b976f4.jpg", + "5859f4f1d8ce2e0f74b97926.jpg", + "585a2216d8ce2e0f74b979e0.jpg", + "585a5d1cd8ce2e0f74b97af6.jpg", + "585a7e26d8ce2e0f74b97bd7.jpg", + "585a9518d8ce2e0f74b97c87.jpg", + "585a9554d8ce2e0f74b97c88.jpg", + "585b2373d8ce2e0f74b97d9d.jpg", + "585b2aadd8ce2e0f74b97dab.jpg", + "585b2d6fd8ce2e0f74b97daf.jpg", + "585b2e9dd8ce2e0f74b97db3.jpg", + "585b7832d8ce2e4488224d7e.jpg", + "585b8fc3d8ce2e4488224dd4.jpg", + "585bb701d8ce2e4488224e7a.jpg", + "585bd32dd8ce2e4488224f24.jpg", + "585bde54d8ce2e4488224f57.jpg", + "585c04bfd8ce2e4488224fd7.jpg", + "585c215fd8ce2e4488225000.jpg", + "585c9ebcd8ce2e44882250a3.jpg", + "585cf9d4d8ce2e5419a83f8e.jpg", + "585d03b5d8ce2e5419a83fba.jpg", + "585d08e1d8ce2e5419a83fdd.jpg", + "585d11fcd8ce2e5419a84012.jpg", + "585d21f1d8ce2e5419a84085.jpg", + "585d249ed8ce2e5419a84098.jpg", + "585d2548d8ce2e5419a8409b.jpg", + "585d30bdd8ce2e5419a840dc.jpg", + "585d602cd8ce2e5419a84171.jpg", + "585d6377d8ce2e5419a84174.jpg", + "585dc5d5d8ce2e5419a841fb.jpg", + "585e0043d8ce2e5419a842e5.jpg", + "585e0bfdd8ce2e5419a8431d.jpg", + "585e118fd8ce2e5419a84333.jpg", + "585e304bd8ce2e5419a843c1.jpg", + "585e4269d8ce2e5419a8443a.jpg", + "585e4c88d8ce2e5419a84472.jpg", + "585e587ed8ce2e5419a844bd.jpg", + "585e5ae1d8ce2e5419a844d2.jpg", + "585e73f1d8ce2e5419a84577.jpg", + "585f1215d8ce2e5419a846f3.jpg", + "585f1257d8ce2e5419a846f5.jpg", + "585f408cd8ce2e5419a847ad.jpg", + "585f5b85d8ce2e5419a84839.jpg", + "585fad19d8ce2e5419a84a17.jpg", + "585fc116d8ce2e5419a84aa8.jpg", + "585fce78d8ce2e5419a84afc.jpg", + "585ffcebd8ce2e5419a84baa.jpg", + "586001f9d8ce2e5419a84bb1.jpg", + "58601d47d8ce2e5419a84bd7.jpg", + "58604cb2d8ce2e5419a84c0e.jpg", + "58609fa3d8ce2e5419a84e95.jpg", + "5860c4f3d8ce2e5419a84ff7.jpg", + "5860d687d8ce2e5419a850d4.jpg", + "5860fbd6d8ce2e5419a853a5.jpg", + "5860fe08d8ce2e5419a853cc.jpg", + "5860ffc0d8ce2e5419a853fb.jpg", + "58610d02d8ce2e5419a85534.jpg", + "586115e1d8ce2e5419a855e6.jpg", + "58611f91d8ce2e5419a85699.jpg", + "58613448d8ce2e5419a8576b.jpg", + "58614509d8ce2e5419a857c9.jpg", + "58614941d8ce2e5419a857d8.jpg", + "5861538dd8ce2e5419a857ff.jpg", + "5861ee74d8ce2e15a51c1129.jpg", + "5862079ad8ce2e15a51c11bd.jpg", + "586209fad8ce2e15a51c11cd.jpg", + "58621fa6d8ce2e15a51c123d.jpg", + "586272f4d8ce2e15a51c1519.jpg", + "58629644d8ce2e15a51c15d7.jpg", + "5862c05bd8ce2e15a51c1636.jpg", + "5862c97dd8ce2e15a51c1644.jpg", + "586314f4d8ce2e15a51c16b4.jpg", + "5863263cd8ce2e15a51c16e4.jpg", + "586333c3d8ce2e15a51c170c.jpg", + "58636021d8ce2e15a51c17b2.jpg", + "5863694ed8ce2e15a51c17d4.jpg", + "58636a9ad8ce2e15a51c17d7.jpg", + "58636ff8d8ce2e15a51c17e8.jpg", + "5863712ed8ce2e15a51c17eb.jpg", + "586387ddd8ce2e15a51c1856.jpg", + "5863a665d8ce2e15a51c1926.jpg", + "5863b4b9d8ce2e15a51c1993.jpg", + "5863c65ad8ce2e15a51c1a24.jpg", + "5863cd2bd8ce2e15a51c1a57.jpg", + "5864180ed8ce2e15a51c1b23.jpg", + "5864daecd8ce2e15a51c1cf2.jpg", + "586507a7d8ce2e15a51c1e19.jpg", + "5865089dd8ce2e15a51c1e20.jpg", + "58655060d8ce2e15a51c1f2f.jpg", + "5865a567d8ce2e15a51c1f94.jpg", + "5865eed9d8ce2e15a51c2063.jpg", + "5865f5acd8ce2e15a51c2079.jpg", + "5866393ad8ce2e15a51c219a.jpg", + "58665dd6d8ce2e15a51c22ba.jpg", + "58666c17d8ce2e15a51c2325.jpg", + "5866c9c2d8ce2e15a51c2421.jpg", + "58677217d8ce2e15a51c2706.jpg", + "58677370d8ce2e15a51c2712.jpg", + "58677819d8ce2e15a51c272e.jpg", + "586793c8d8ce2e15a51c27d4.jpg", + "58679c83d8ce2e15a51c2826.jpg", + "5867a83dd8ce2e15a51c2884.jpg", + "5868082ed8ce2e15a51c2a07.jpg", + "586831ead8ce2e15a51c2a2e.jpg", + "58684731d8ce2e15a51c2a59.jpg", + "58689000d8ce2e15a51c2bf3.jpg", + "5868d9bed8ce2e15a51c2e15.jpg", + "5868d9f5d8ce2e15a51c2e16.jpg", + "5868df0bd8ce2e15a51c2e43.jpg", + "5868e82fd8ce2e15a51c2ea1.jpg", + "5868f91bd8ce2e15a51c2f5d.jpg", + "58693f45d8ce2e15a51c3100.jpg", + "5869833ad8ce2e15a51c3159.jpg", + "5869aa81d8ce2e15a51c31d5.jpg", + "5869c2c2d8ce2e15a51c3251.jpg", + "5869db6dd8ce2e15a51c32f1.jpg", + "5869e08ed8ce2e15a51c330f.jpg", + "5869e384d8ce2e15a51c3321.jpg", + "586a63a8d8ce2e7a9fe1a6c8.jpg", + "586b2a97d8ce2e7a9fe1a8b7.jpg", + "586b561cd8ce2e7a9fe1a962.jpg", + "586b745cd8ce2e7a9fe1a9de.jpg", + "586b7c08d8ce2e7a9fe1aa0f.jpg", + "586b98d5d8ce2e7a9fe1aac0.jpg", + "586b9f24d8ce2e7a9fe1aaec.jpg", + "586baf1ad8ce2e7a9fe1ab5e.jpg", + "586bcb1cd8ce2e7a9fe1abf0.jpg", + "586c3e8ed8ce2e7a9fe1acac.jpg", + "586c7a76d8ce2e7a9fe1ad72.jpg", + "586c8f49d8ce2e7a9fe1add7.jpg", + "586c9a76d8ce2e7a9fe1ae0b.jpg", + "586cac81d8ce2e7a9fe1ae62.jpg", + "586cd14fd8ce2e7a9fe1af28.jpg", + "586ce886d8ce2e7a9fe1afcc.jpg", + "586ce8bcd8ce2e7a9fe1afcd.jpg", + "586cf70cd8ce2e7a9fe1b02e.jpg", + "586cf7fdd8ce2e7a9fe1b036.jpg", + "586d015fd8ce2e7a9fe1b07b.jpg", + "586d0336d8ce2e7a9fe1b085.jpg", + "586d0702d8ce2e7a9fe1b09a.jpg", + "586d2650d8ce2e7a9fe1b136.jpg", + "586d39edd8ce2e7a9fe1b15f.jpg", + "586d792fd8ce2e7a9fe1b1b5.jpg", + "586d8181d8ce2e7a9fe1b1bf.jpg", + "586d96b3d8ce2e7a9fe1b1ed.jpg", + "586dc248d8ce2e7a9fe1b267.jpg", + "586dca9fd8ce2e7a9fe1b288.jpg", + "586dccbbd8ce2e7a9fe1b297.jpg", + "586dde6dd8ce2e7a9fe1b2f6.jpg", + "586e018bd8ce2e7a9fe1b38b.jpg", + "586e2455d8ce2e7a9fe1b467.jpg", + "586e263bd8ce2e7a9fe1b474.jpg", + "586ebcf6d8ce2e7a9fe1b6e9.jpg", + "586ee4a4d8ce2e7a9fe1b732.jpg", + "586f29c4d8ce2e7a9fe1b827.jpg", + "586f6ba8d8ce2e7a9fe1b98c.jpg", + "586fa7f5d8ce2e7a9fe1bb95.jpg", + "586fa868d8ce2e7a9fe1bb97.jpg", + "586faff8d8ce2e7a9fe1bbd5.jpg", + "586fca3bd8ce2e7a9fe1bc46.jpg", + "586ff640d8ce2e7a9fe1bc9b.jpg", + "5870551dd8ce2e7a9fe1bdad.jpg", + "58705f6ed8ce2e7a9fe1bdeb.jpg", + "58706683d8ce2e7a9fe1be20.jpg", + "58707001d8ce2e7a9fe1be6a.jpg", + "587085ecd8ce2e7a9fe1bf0a.jpg", + "58709974d8ce2e7a9fe1bf86.jpg", + "5870b923d8ce2e7a9fe1c07a.jpg", + "5870c644d8ce2e7a9fe1c0d4.jpg", + "5870d374d8ce2e7a9fe1c135.jpg", + "5870de29d8ce2e7a9fe1c1b2.jpg", + "5870e65cd8ce2e7a9fe1c1ff.jpg", + "5870fc09d8ce2e7a9fe1c2b8.jpg", + "58711931d8ce2e7a9fe1c35c.jpg", + "58711fffd8ce2e7a9fe1c37b.jpg", + "58717d3fd8ce2e7a9fe1c418.jpg", + "5871a753d8ce2e7a9fe1c4cb.jpg", + "5871c418d8ce2e7a9fe1c576.jpg", + "5871c4a9d8ce2e7a9fe1c57a.jpg", + "5871cec2d8ce2e7a9fe1c5c4.jpg", + "587204dcd8ce2e7a9fe1c71c.jpg", + "58721690d8ce2e7a9fe1c797.jpg", + "58723e05d8ce2e7a9fe1c8ba.jpg", + "58724a7cd8ce2e7a9fe1c904.jpg", + "58725e83d8ce2e7a9fe1c955.jpg", + "5872a4eed8ce2e7a9fe1c9d5.jpg", + "5872a503d8ce2e7a9fe1c9d6.jpg", + "5872bc51d8ce2e7a9fe1c9e7.jpg", + "5872d626d8ce2e7a9fe1ca14.jpg", + "587312ffd8ce2e7a9fe1cad9.jpg", + "58731496d8ce2e7a9fe1cae2.jpg", + "587316b3d8ce2e7a9fe1caeb.jpg", + "587326c2d8ce2e7a9fe1cb3a.jpg", + "587344a5d8ce2e7a9fe1cbcd.jpg", + "58737176d8ce2e7a9fe1ccdb.jpg", + "58737e03d8ce2e7a9fe1cd32.jpg", + "58738f97d8ce2e7a9fe1cdb3.jpg", + "5873e314d8ce2e7a9fe1cee3.jpg", + "5874730ad8ce2e7a9fe1d09b.jpg", + "5874948ad8ce2e7a9fe1d155.jpg", + "5874ab18d8ce2e7a9fe1d1e7.jpg", + "5874c31fd8ce2e7a9fe1d28a.jpg", + "5875f4f4d8ce2e7a9fe1d7f5.jpg", + "5875fc90d8ce2e7a9fe1d830.jpg", + "58761c90d8ce2e7a9fe1d938.jpg", + "58762b52d8ce2e7a9fe1d9be.jpg", + "587644e5d8ce2e7a9fe1da7e.jpg", + "58765b3ad8ce2e7a9fe1daff.jpg", + "58767e51d8ce2e7a9fe1db5b.jpg", + "5876a6efd8ce2e7a9fe1db99.jpg", + "587703e1d8ce2e7a9fe1dcd9.jpg", + "58770c35d8ce2e7a9fe1dd05.jpg", + "58772275d8ce2e7a9fe1dda0.jpg", + "58772afcd8ce2e7a9fe1ddcb.jpg", + "58772d51d8ce2e7a9fe1dddc.jpg", + "58773094d8ce2e7a9fe1ddee.jpg", + "58773fcbd8ce2e7a9fe1de40.jpg", + "5877515dd8ce2e7a9fe1dec6.jpg", + "58775261d8ce2e7a9fe1decd.jpg", + "58775736d8ce2e7a9fe1deeb.jpg", + "58776410d8ce2e7a9fe1df3d.jpg", + "58776745d8ce2e7a9fe1df5e.jpg", + "587785bbd8ce2e7a9fe1e042.jpg", + "587798f7d8ce2e7a9fe1e0c7.jpg", + "5877a236d8ce2e7a9fe1e0fd.jpg", + "5877bdf6d8ce2e7a9fe1e147.jpg", + "5877c7b3d8ce2e7a9fe1e15c.jpg", + "5877dc32d8ce2e7a9fe1e176.jpg", + "58780b8ad8ce2e7a9fe1e1b3.jpg", + "58781597d8ce2e7a9fe1e1c6.jpg", + "58782c8ed8ce2e7a9fe1e20a.jpg", + "58783e98d8ce2e7a9fe1e258.jpg", + "58784591d8ce2e7a9fe1e27d.jpg", + "58786545d8ce2e7a9fe1e335.jpg", + "587874bcd8ce2e7a9fe1e397.jpg", + "58787effd8ce2e7a9fe1e3e0.jpg", + "587882b7d8ce2e7a9fe1e3ff.jpg", + "587889f9d8ce2e7a9fe1e42d.jpg", + "5878acd8d8ce2e7a9fe1e523.jpg", + "5878b599d8ce2e7a9fe1e571.jpg", + "5878c146d8ce2e7a9fe1e5e2.jpg", + "5878c5bad8ce2e7a9fe1e605.jpg", + "5878d880d8ce2e7a9fe1e6c6.jpg", + "5878ec0dd8ce2e7a9fe1e742.jpg", + "5878efead8ce2e7a9fe1e754.jpg", + "58791ca3d8ce2e7a9fe1e7d6.jpg", + "58796713d8ce2e7a9fe1e826.jpg", + "58799b3bd8ce2e7a9fe1e905.jpg", + "5879c9a5d8ce2e7a9fe1ea2c.jpg", + "5879ed46d8ce2e7a9fe1eb2e.jpg", + "5879ed6ad8ce2e7a9fe1eb30.jpg", + "5879f8b3d8ce2e7a9fe1eb8a.jpg", + "587a00f7d8ce2e7a9fe1ebce.jpg", + "587a076fd8ce2e7a9fe1ebf9.jpg", + "587a2eacd8ce2e7a9fe1ed5c.jpg", + "587a37ccd8ce2e7a9fe1eda4.jpg", + "587a46d2d8ce2e7a9fe1edf3.jpg", + "587aa828d8ce2e7a9fe1ee96.jpg", + "587b04d3d8ce2e7a9fe1f078.jpg", + "587b2995d8ce2e7a9fe1f178.jpg", + "587b4620d8ce2e7a9fe1f248.jpg", + "587b5a59d8ce2e7a9fe1f2dc.jpg", + "587b7fe5d8ce2e7a9fe1f42b.jpg", + "587c1096d8ce2e7a9fe1f598.jpg", + "587c3f84d8ce2e7a9fe1f687.jpg", + "587c429fd8ce2e7a9fe1f698.jpg", + "587c51ebd8ce2e7a9fe1f71a.jpg", + "587c654dd8ce2e7a9fe1f796.jpg", + "587c8e5ed8ce2e7a9fe1f8bb.jpg", + "587c98cad8ce2e7a9fe1f903.jpg", + "587c9a5ed8ce2e7a9fe1f90b.jpg", + "587ca938d8ce2e7a9fe1f971.jpg", + "587cc0ded8ce2e7a9fe1fa3b.jpg", + "587cda08d8ce2e7a9fe1faf9.jpg", + "587cfbedd8ce2e7a9fe1fb81.jpg", + "587d1be8d8ce2e7a9fe1fbb8.jpg", + "587d1d61d8ce2e7a9fe1fbba.jpg", + "587d552bd8ce2e7a9fe1fc00.jpg", + "587daa08d8ce2e7a9fe1fdb3.jpg", + "587daf12d8ce2e7a9fe1fdcf.jpg", + "587dcd49d8ce2e350fd92665.jpg", + "587df195d8ce2e350fd92781.jpg", + "587dfcead8ce2e350fd927e4.jpg", + "587e0388d8ce2e350fd92812.jpg", + "587e171cd8ce2e350fd928b0.jpg", + "587e1e1ad8ce2e350fd928de.jpg", + "587e29b8d8ce2e350fd9293a.jpg", + "587e345fd8ce2e350fd9297c.jpg", + "587e384fd8ce2e350fd9299d.jpg", + "587e4050d8ce2e350fd929b6.jpg", + "587e49ebd8ce2e350fd929d7.jpg", + "587e88a4d8ce2e350fd92a48.jpg", + "587ec128d8ce2e350fd92ac6.jpg", + "587ee64ed8ce2e350fd92b9d.jpg", + "587efcc3d8ce2e350fd92c25.jpg", + "587f03e0d8ce2e350fd92c5f.jpg", + "587f0e9cd8ce2e350fd92ca2.jpg", + "587f10a3d8ce2e350fd92cad.jpg", + "587f1b27d8ce2e350fd92cfe.jpg", + "587f3f01d8ce2e350fd92e02.jpg", + "587f624bd8ce2e350fd92f3c.jpg", + "587f71d1d8ce2e350fd92fb3.jpg", + "587f8101d8ce2e350fd93029.jpg", + "587f9441d8ce2e350fd93080.jpg", + "587ff323d8ce2e350fd930fe.jpg", + "5880053cd8ce2e350fd93123.jpg", + "58800965d8ce2e350fd93131.jpg", + "5880296bd8ce2e350fd931a6.jpg", + "588046add8ce2e350fd9324c.jpg", + "588055efd8ce2e350fd932a2.jpg", + "5880ab24d8ce2e350fd93511.jpg", + "5880c6cad8ce2e350fd93606.jpg", + "5880c6efd8ce2e350fd93609.jpg", + "5880d2dcd8ce2e350fd9365c.jpg", + "58810179d8ce2e350fd936f5.jpg", + "5881068ad8ce2e350fd93700.jpg", + "588106c6d8ce2e350fd93702.jpg", + "588137bdd8ce2e350fd9373f.jpg", + "58815b54d8ce2e350fd93793.jpg", + "588164afd8ce2e350fd937b8.jpg", + "588167fad8ce2e350fd937c4.jpg", + "58818588d8ce2e350fd9388a.jpg", + "58818c81d8ce2e350fd938bb.jpg", + "588190e6d8ce2e350fd938df.jpg", + "5881a234d8ce2e350fd93947.jpg", + "5881acfcd8ce2e350fd93991.jpg", + "5881adabd8ce2e350fd93997.jpg", + "5881aecbd8ce2e350fd9399b.jpg", + "5881b1dbd8ce2e350fd939b3.jpg", + "5881debdd8ce2e350fd93b09.jpg", + "5881fba1d8ce2e226c6829d1.jpg", + "588207e4d8ce2e226c682a3f.jpg", + "58820ad4d8ce2e226c682a60.jpg", + "58821819d8ce2e226c682add.jpg", + "58822134d8ce2e226c682b18.jpg", + "588230fdd8ce2e226c682b70.jpg", + "58824dcbd8ce2e226c682bc0.jpg", + "5882ce09d8ce2e226c682ce2.jpg", + "5882eb03d8ce2e226c682d8c.jpg", + "58835234d8ce2e226c683085.jpg", + "58836d91d8ce2e226c68316d.jpg", + "58836dc6d8ce2e226c68316e.jpg", + "5883737dd8ce2e226c6831a5.jpg", + "58837edfd8ce2e226c6831e1.jpg", + "5883943cd8ce2e226c683234.jpg", + "58839a61d8ce2e226c683244.jpg", + "58841159d8ce2e226c68335a.jpg", + "58841a7fd8ce2e226c68338d.jpg", + "58841cd7d8ce2e226c68339b.jpg", + "58843398d8ce2e226c683445.jpg", + "58843f47d8ce2e226c68348c.jpg", + "58844297d8ce2e226c6834a3.jpg", + "58845a05d8ce2e226c68353e.jpg", + "58846ec9d8ce2e226c6835e3.jpg", + "58847e68d8ce2e226c68365b.jpg", + "5884874bd8ce2e226c6836a0.jpg", + "58848d99d8ce2e226c6836d8.jpg", + "58848ee9d8ce2e226c6836e2.jpg", + "5884a199d8ce2e226c683786.jpg", + "5884a831d8ce2e226c6837d0.jpg", + "5884cb35d8ce2e226c683901.jpg", + "5884dc18d8ce2e226c68395b.jpg", + "5884ddbfd8ce2e226c683962.jpg", + "5884e0b2d8ce2e226c68396d.jpg", + "5884f074d8ce2e226c6839a3.jpg", + "588537c0d8ce2e226c683a03.jpg", + "58855acfd8ce2e226c683a8b.jpg", + "588568d0d8ce2e226c683ac1.jpg", + "5885707fd8ce2e226c683afb.jpg", + "58857658d8ce2e226c683b15.jpg", + "58858649d8ce2e226c683b5d.jpg", + "58858a1fd8ce2e226c683b72.jpg", + "5885ab37d8ce2e226c683c4a.jpg", + "5885dd91d8ce2e226c683d9c.jpg", + "5885fc09d8ce2e226c683eb1.jpg", + "5886157dd8ce2e226c683f8d.jpg", + "58861613d8ce2e226c683f8f.jpg", + "58862d2ed8ce2e226c684001.jpg", + "58864267d8ce2e226c684039.jpg", + "58864aa8d8ce2e226c684049.jpg", + "588660c7d8ce2e226c684061.jpg", + "5886ccc0d8ce2e226c6841cc.jpg", + "5886d12cd8ce2e226c6841f2.jpg", + "58871131d8ce2e226c6843e9.jpg", + "58871b64d8ce2e226c684435.jpg", + "58873147d8ce2e226c6844e9.jpg", + "58873cc9d8ce2e226c684550.jpg", + "588742e4d8ce2e226c684597.jpg", + "58874e49d8ce2e226c684601.jpg", + "58875e5ed8ce2e226c684699.jpg", + "588762d4d8ce2e226c6846d2.jpg", + "58877e40d8ce2e226c684777.jpg", + "5887b75bd8ce2e226c6847f2.jpg", + "5888237ed8ce2e226c684970.jpg", + "5888268ed8ce2e226c684988.jpg", + "58883179d8ce2e226c6849be.jpg", + "588833a0d8ce2e226c6849cc.jpg", + "588875acd8ce2e226c684bdf.jpg", + "5888848ad8ce2e226c684c4e.jpg", + "58888d86d8ce2e226c684c9f.jpg", + "5888bdb6d8ce2e226c684e4b.jpg", + "5888d5edd8ce2e226c684ec9.jpg", + "5888da13d8ce2e226c684edf.jpg", + "5888dbb4d8ce2e226c684ee3.jpg", + "58894137d8ce2e226c684f91.jpg", + "588946d2d8ce2e226c684fa8.jpg", + "58896f48d8ce2e226c6850a9.jpg", + "58897f88d8ce2e226c685123.jpg", + "5889f160d8ce2e226c6854a6.jpg", + "5889f357d8ce2e226c6854b9.jpg", + "588abdd8d8ce2e226c68578a.jpg", + "588ad02dd8ce2e226c685804.jpg", + "588adb88d8ce2e226c685865.jpg", + "588ae136d8ce2e226c685893.jpg", + "588ae548d8ce2e226c6858b4.jpg", + "588af122d8ce2e226c685918.jpg", + "588af3f0d8ce2e226c68592f.jpg", + "588affebd8ce2e226c685994.jpg", + "588b01cfd8ce2e226c6859a5.jpg", + "588b1575d8ce2e226c685a7d.jpg", + "588b191bd8ce2e226c685a9c.jpg" + ] +} \ No newline at end of file diff --git a/data/normalparam.json b/data/normalparam.json new file mode 100644 index 0000000..34e1049 --- /dev/null +++ b/data/normalparam.json @@ -0,0 +1,8 @@ +{ + "LHMin": 6000, + "LHMax": 8500, + "BullCardTypeWin":[3000,3000,4000,3000,2200], + "BullCardTypeWin2":[1000,3000,4000,3000,6000], + "FishLuckRate": 10, + "FishRate": 10 +} \ No newline at end of file diff --git a/data/thrconfig.json b/data/thrconfig.json new file mode 100644 index 0000000..7a73a41 --- /dev/null +++ b/data/thrconfig.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/data/zone_rob.json b/data/zone_rob.json new file mode 100644 index 0000000..b116bbd --- /dev/null +++ b/data/zone_rob.json @@ -0,0 +1 @@ +[{"Area":"石家庄","Weight":11},{"Area":"沧州","Weight":17},{"Area":"承德","Weight":17},{"Area":"秦皇岛","Weight":19},{"Area":"唐山","Weight":11},{"Area":"保定","Weight":18},{"Area":"廊坊","Weight":15},{"Area":"邢台","Weight":10},{"Area":"衡水","Weight":16},{"Area":"张家口","Weight":10},{"Area":"邯郸","Weight":14},{"Area":"任丘","Weight":11},{"Area":"河间","Weight":12},{"Area":"泊头","Weight":19},{"Area":"武安","Weight":18},{"Area":"沙河","Weight":14},{"Area":"南宫","Weight":11},{"Area":"深州","Weight":15},{"Area":"冀州","Weight":17},{"Area":"黄骅","Weight":16},{"Area":"高碑店","Weight":15},{"Area":"安国","Weight":16},{"Area":"涿州","Weight":18},{"Area":"定州","Weight":18},{"Area":"三河","Weight":17},{"Area":"霸州","Weight":17},{"Area":"迁安","Weight":17},{"Area":"遵化","Weight":18},{"Area":"鹿泉","Weight":10},{"Area":"新乐","Weight":15},{"Area":"晋州","Weight":11},{"Area":"藁城","Weight":18},{"Area":"辛集","Weight":17},{"Area":"太原","Weight":11},{"Area":"长治","Weight":19},{"Area":"大同","Weight":16},{"Area":"阳泉","Weight":17},{"Area":"朔州","Weight":11},{"Area":"临汾","Weight":15},{"Area":"晋城","Weight":16},{"Area":"忻州","Weight":13},{"Area":"运城","Weight":10},{"Area":"晋中","Weight":14},{"Area":"吕梁","Weight":13},{"Area":"古交","Weight":13},{"Area":"潞城","Weight":17},{"Area":"高平","Weight":18},{"Area":"原平","Weight":14},{"Area":"孝义","Weight":19},{"Area":"汾阳","Weight":13},{"Area":"介休","Weight":17},{"Area":"侯马","Weight":11},{"Area":"霍州","Weight":19},{"Area":"永济","Weight":19},{"Area":"河津","Weight":10},{"Area":"沈阳","Weight":55},{"Area":"大连","Weight":88},{"Area":"本溪","Weight":88},{"Area":"阜新","Weight":53},{"Area":"葫芦岛","Weight":55},{"Area":"盘锦","Weight":51},{"Area":"铁岭","Weight":60},{"Area":"丹东","Weight":55},{"Area":"锦州","Weight":56},{"Area":"营口","Weight":66},{"Area":"鞍山","Weight":78},{"Area":"辽阳","Weight":61},{"Area":"抚顺","Weight":52},{"Area":"朝阳","Weight":83},{"Area":"瓦房店","Weight":96},{"Area":"兴城","Weight":63},{"Area":"新民","Weight":76},{"Area":"普兰店","Weight":52},{"Area":"庄河","Weight":68},{"Area":"北票","Weight":97},{"Area":"凌源","Weight":94},{"Area":"调兵山","Weight":77},{"Area":"开原","Weight":63},{"Area":"灯塔","Weight":96},{"Area":"海城","Weight":70},{"Area":"凤城","Weight":73},{"Area":"东港","Weight":53},{"Area":"大石桥","Weight":87},{"Area":"盖州","Weight":83},{"Area":"凌海","Weight":91},{"Area":"北镇","Weight":59},{"Area":"长春","Weight":0},{"Area":"白城","Weight":0},{"Area":"白山","Weight":0},{"Area":"吉林","Weight":0},{"Area":"辽源","Weight":0},{"Area":"四平","Weight":0},{"Area":"通化","Weight":0},{"Area":"松原","Weight":0},{"Area":"延吉","Weight":0},{"Area":"珲春","Weight":0},{"Area":"龙井","Weight":0},{"Area":"舒兰","Weight":0},{"Area":"临江","Weight":0},{"Area":"公主岭","Weight":0},{"Area":"梅河口","Weight":0},{"Area":"德惠","Weight":0},{"Area":"九台","Weight":0},{"Area":"榆树","Weight":0},{"Area":"磐石","Weight":0},{"Area":"蛟河","Weight":0},{"Area":"桦甸","Weight":0},{"Area":"洮南","Weight":0},{"Area":"大安","Weight":0},{"Area":"双辽","Weight":0},{"Area":"集安","Weight":0},{"Area":"图们","Weight":0},{"Area":"敦化","Weight":0},{"Area":"和龙","Weight":0},{"Area":"哈尔滨","Weight":43},{"Area":"大庆","Weight":33},{"Area":"大兴安岭","Weight":41},{"Area":"鹤岗","Weight":32},{"Area":"黑河","Weight":48},{"Area":"鸡西","Weight":46},{"Area":"佳木斯","Weight":36},{"Area":"牡丹江","Weight":37},{"Area":"七台河","Weight":30},{"Area":"双鸭山","Weight":33},{"Area":"齐齐哈尔","Weight":42},{"Area":"伊春","Weight":33},{"Area":"绥化","Weight":35},{"Area":"虎林","Weight":48},{"Area":"五常","Weight":35},{"Area":"密山","Weight":41},{"Area":"宁安","Weight":45},{"Area":"漠河","Weight":47},{"Area":"海伦","Weight":37},{"Area":"肇东","Weight":40},{"Area":"安达","Weight":40},{"Area":"海林","Weight":35},{"Area":"绥芬河","Weight":40},{"Area":"富锦","Weight":42},{"Area":"同江","Weight":48},{"Area":"铁力","Weight":43},{"Area":"五大连池","Weight":41},{"Area":"北安","Weight":32},{"Area":"讷河","Weight":34},{"Area":"阿城","Weight":47},{"Area":"尚志","Weight":37},{"Area":"双城","Weight":47},{"Area":"南京","Weight":11},{"Area":"苏州","Weight":14},{"Area":"扬州","Weight":16},{"Area":"无锡","Weight":12},{"Area":"南通","Weight":11},{"Area":"常州","Weight":19},{"Area":"连云港","Weight":16},{"Area":"徐州","Weight":10},{"Area":"镇江","Weight":13},{"Area":"淮安","Weight":16},{"Area":"宿迁","Weight":19},{"Area":"泰州","Weight":11},{"Area":"太仓","Weight":12},{"Area":"盐城","Weight":15},{"Area":"高邮","Weight":15},{"Area":"新沂","Weight":10},{"Area":"金坛","Weight":17},{"Area":"溧阳","Weight":19},{"Area":"淮阴","Weight":18},{"Area":"江宁","Weight":18},{"Area":"睢宁","Weight":14},{"Area":"清江","Weight":13},{"Area":"昆山","Weight":14},{"Area":"常熟","Weight":17},{"Area":"江阴","Weight":12},{"Area":"宜兴","Weight":12},{"Area":"邳州","Weight":16},{"Area":"张家港","Weight":19},{"Area":"吴江","Weight":10},{"Area":"如皋","Weight":16},{"Area":"海门","Weight":11},{"Area":"启东","Weight":16},{"Area":"大丰","Weight":10},{"Area":"东台","Weight":11},{"Area":"仪征","Weight":14},{"Area":"扬中","Weight":14},{"Area":"句容","Weight":15},{"Area":"丹阳","Weight":13},{"Area":"兴化","Weight":11},{"Area":"姜堰","Weight":10},{"Area":"泰兴","Weight":12},{"Area":"靖江","Weight":18},{"Area":"杭州","Weight":167},{"Area":"宁波","Weight":131},{"Area":"温州","Weight":178},{"Area":"丽水","Weight":154},{"Area":"奉化","Weight":122},{"Area":"宁海","Weight":123},{"Area":"临海","Weight":142},{"Area":"三门","Weight":108},{"Area":"绍兴","Weight":143},{"Area":"舟山","Weight":168},{"Area":"义乌","Weight":166},{"Area":"北仑","Weight":110},{"Area":"慈溪","Weight":135},{"Area":"象山","Weight":140},{"Area":"余姚","Weight":104},{"Area":"天台","Weight":162},{"Area":"温岭","Weight":157},{"Area":"仙居","Weight":115},{"Area":"台州","Weight":171},{"Area":"嘉兴","Weight":139},{"Area":"湖州","Weight":130},{"Area":"衢州","Weight":113},{"Area":"金华","Weight":100},{"Area":"余杭","Weight":159},{"Area":"德清","Weight":120},{"Area":"海宁","Weight":183},{"Area":"临安","Weight":170},{"Area":"富阳","Weight":184},{"Area":"建德","Weight":147},{"Area":"平湖","Weight":110},{"Area":"桐乡","Weight":165},{"Area":"诸暨","Weight":162},{"Area":"上虞","Weight":129},{"Area":"嵊州","Weight":120},{"Area":"江山","Weight":148},{"Area":"兰溪","Weight":156},{"Area":"永康","Weight":195},{"Area":"东阳","Weight":166},{"Area":"瑞安","Weight":100},{"Area":"乐清","Weight":156},{"Area":"龙泉","Weight":129},{"Area":"合肥","Weight":12},{"Area":"黄山","Weight":11},{"Area":"芜湖","Weight":17},{"Area":"铜陵","Weight":16},{"Area":"安庆","Weight":10},{"Area":"滁州","Weight":19},{"Area":"宣城","Weight":12},{"Area":"阜阳","Weight":17},{"Area":"淮北","Weight":12},{"Area":"蚌埠","Weight":18},{"Area":"池州","Weight":11},{"Area":"青阳","Weight":13},{"Area":"九华山景区","Weight":18},{"Area":"黄山景区","Weight":18},{"Area":"巢湖","Weight":16},{"Area":"亳州","Weight":19},{"Area":"马鞍山","Weight":17},{"Area":"宿州","Weight":17},{"Area":"六安","Weight":12},{"Area":"淮南","Weight":15},{"Area":"绩溪","Weight":11},{"Area":"界首","Weight":13},{"Area":"明光","Weight":15},{"Area":"天长","Weight":17},{"Area":"桐城","Weight":13},{"Area":"宁国","Weight":10},{"Area":"福州","Weight":96},{"Area":"厦门","Weight":86},{"Area":"泉州","Weight":82},{"Area":"漳州","Weight":70},{"Area":"龙岩","Weight":60},{"Area":"三明","Weight":72},{"Area":"南平","Weight":79},{"Area":"永安","Weight":61},{"Area":"宁德","Weight":60},{"Area":"莆田","Weight":70},{"Area":"闽侯","Weight":79},{"Area":"福鼎","Weight":54},{"Area":"罗源","Weight":64},{"Area":"仙游","Weight":60},{"Area":"福清","Weight":51},{"Area":"长乐","Weight":81},{"Area":"云霄","Weight":57},{"Area":"长泰","Weight":66},{"Area":"东山岛","Weight":50},{"Area":"邵武","Weight":89},{"Area":"石狮","Weight":87},{"Area":"晋江","Weight":83},{"Area":"建阳","Weight":61},{"Area":"福安","Weight":54},{"Area":"漳平","Weight":85},{"Area":"龙海","Weight":59},{"Area":"南安","Weight":65},{"Area":"建瓯","Weight":69},{"Area":"武夷山","Weight":64},{"Area":"南昌","Weight":90},{"Area":"九江","Weight":62},{"Area":"赣州","Weight":90},{"Area":"景德镇","Weight":50},{"Area":"萍乡","Weight":84},{"Area":"新余","Weight":73},{"Area":"吉安","Weight":85},{"Area":"宜春","Weight":93},{"Area":"抚州","Weight":71},{"Area":"上饶","Weight":90},{"Area":"鹰潭","Weight":74},{"Area":"陵川","Weight":69},{"Area":"瑞金","Weight":70},{"Area":"井冈山","Weight":86},{"Area":"瑞昌","Weight":88},{"Area":"乐平","Weight":72},{"Area":"南康","Weight":94},{"Area":"德兴","Weight":95},{"Area":"丰城","Weight":74},{"Area":"樟树","Weight":87},{"Area":"高安","Weight":74},{"Area":"贵溪","Weight":93},{"Area":"济南","Weight":56},{"Area":"青岛","Weight":98},{"Area":"烟台","Weight":52},{"Area":"威海","Weight":70},{"Area":"潍坊","Weight":72},{"Area":"德州","Weight":71},{"Area":"滨州","Weight":67},{"Area":"东营","Weight":51},{"Area":"聊城","Weight":65},{"Area":"菏泽","Weight":82},{"Area":"济宁","Weight":79},{"Area":"临沂","Weight":92},{"Area":"淄博","Weight":79},{"Area":"泰安","Weight":81},{"Area":"枣庄","Weight":71},{"Area":"日照","Weight":55},{"Area":"莱芜","Weight":61},{"Area":"海阳","Weight":93},{"Area":"平度","Weight":53},{"Area":"莱阳","Weight":66},{"Area":"青州","Weight":59},{"Area":"肥城","Weight":67},{"Area":"章丘","Weight":58},{"Area":"即墨","Weight":58},{"Area":"利津","Weight":78},{"Area":"武城","Weight":53},{"Area":"桓台","Weight":74},{"Area":"沂源","Weight":84},{"Area":"曲阜","Weight":75},{"Area":"龙口","Weight":74},{"Area":"胶州","Weight":56},{"Area":"胶南","Weight":87},{"Area":"莱西","Weight":86},{"Area":"临清","Weight":67},{"Area":"乐陵","Weight":64},{"Area":"禹城","Weight":58},{"Area":"安丘","Weight":59},{"Area":"昌邑","Weight":96},{"Area":"高密","Weight":73},{"Area":"诸城","Weight":74},{"Area":"寿光","Weight":87},{"Area":"栖霞","Weight":57},{"Area":"莱州","Weight":74},{"Area":"蓬莱","Weight":89},{"Area":"招远","Weight":81},{"Area":"文登","Weight":96},{"Area":"荣成","Weight":83},{"Area":"乳山","Weight":78},{"Area":"滕州","Weight":66},{"Area":"兖州","Weight":76},{"Area":"邹城","Weight":77},{"Area":"新泰","Weight":62},{"Area":"郑州","Weight":86},{"Area":"安阳","Weight":51},{"Area":"济源","Weight":55},{"Area":"鹤壁","Weight":62},{"Area":"焦作","Weight":89},{"Area":"开封","Weight":98},{"Area":"濮阳","Weight":87},{"Area":"三门峡","Weight":80},{"Area":"驻马店","Weight":59},{"Area":"商丘","Weight":78},{"Area":"新乡","Weight":59},{"Area":"信阳","Weight":61},{"Area":"许昌","Weight":52},{"Area":"周口","Weight":68},{"Area":"南阳","Weight":95},{"Area":"洛阳","Weight":71},{"Area":"平顶山","Weight":53},{"Area":"漯河","Weight":90},{"Area":"中牟","Weight":70},{"Area":"洛宁","Weight":81},{"Area":"荥阳","Weight":55},{"Area":"登封","Weight":76},{"Area":"项城","Weight":59},{"Area":"灵宝","Weight":66},{"Area":"义马","Weight":56},{"Area":"舞钢","Weight":95},{"Area":"长葛","Weight":80},{"Area":"禹州","Weight":84},{"Area":"林州","Weight":77},{"Area":"辉县","Weight":67},{"Area":"卫辉","Weight":78},{"Area":"沁阳","Weight":75},{"Area":"孟州","Weight":93},{"Area":"偃师","Weight":80},{"Area":"新密","Weight":58},{"Area":"登封","Weight":81},{"Area":"新郑","Weight":65},{"Area":"汝州","Weight":58},{"Area":"永城","Weight":84},{"Area":"邓州","Weight":92},{"Area":"巩义","Weight":73},{"Area":"武汉","Weight":62},{"Area":"十堰","Weight":73},{"Area":"宜昌","Weight":72},{"Area":"鄂州","Weight":53},{"Area":"黄石","Weight":58},{"Area":"襄樊","Weight":77},{"Area":"荆州","Weight":96},{"Area":"荆门","Weight":98},{"Area":"孝感","Weight":63},{"Area":"黄冈","Weight":81},{"Area":"咸宁","Weight":74},{"Area":"随州","Weight":56},{"Area":"恩施","Weight":90},{"Area":"仙桃","Weight":81},{"Area":"天门","Weight":82},{"Area":"潜江","Weight":77},{"Area":"神农架","Weight":52},{"Area":"沙市","Weight":54},{"Area":"老河口","Weight":83},{"Area":"利川","Weight":80},{"Area":"当阳","Weight":86},{"Area":"枝江","Weight":87},{"Area":"宜都","Weight":62},{"Area":"松滋","Weight":54},{"Area":"洪湖","Weight":71},{"Area":"石首","Weight":93},{"Area":"赤壁","Weight":98},{"Area":"大冶","Weight":56},{"Area":"麻城","Weight":65},{"Area":"武穴","Weight":72},{"Area":"广水","Weight":95},{"Area":"安陆","Weight":94},{"Area":"应城","Weight":56},{"Area":"汉川","Weight":99},{"Area":"钟祥","Weight":74},{"Area":"宜城","Weight":70},{"Area":"枣阳","Weight":94},{"Area":"丹江口","Weight":59},{"Area":"长沙","Weight":57},{"Area":"张家界","Weight":74},{"Area":"株洲","Weight":57},{"Area":"韶山","Weight":53},{"Area":"衡阳","Weight":74},{"Area":"郴州","Weight":75},{"Area":"冷水江","Weight":90},{"Area":"娄底","Weight":89},{"Area":"耒阳","Weight":64},{"Area":"永州","Weight":95},{"Area":"湘乡","Weight":89},{"Area":"湘潭","Weight":81},{"Area":"常德","Weight":81},{"Area":"益阳","Weight":51},{"Area":"怀化","Weight":85},{"Area":"邵阳","Weight":79},{"Area":"岳阳","Weight":53},{"Area":"吉首","Weight":95},{"Area":"大庸","Weight":92},{"Area":"韶山","Weight":72},{"Area":"常宁","Weight":75},{"Area":"浏阳","Weight":77},{"Area":"津市","Weight":62},{"Area":"沅江","Weight":73},{"Area":"汨罗","Weight":67},{"Area":"临湘","Weight":59},{"Area":"醴陵","Weight":57},{"Area":"资兴","Weight":80},{"Area":"武冈","Weight":55},{"Area":"洪江","Weight":56},{"Area":"广州","Weight":74},{"Area":"深圳","Weight":94},{"Area":"珠海","Weight":73},{"Area":"东莞","Weight":94},{"Area":"佛山","Weight":72},{"Area":"潮州","Weight":83},{"Area":"汕头","Weight":74},{"Area":"湛江","Weight":60},{"Area":"中山","Weight":80},{"Area":"惠州","Weight":95},{"Area":"河源","Weight":64},{"Area":"揭阳","Weight":73},{"Area":"梅州","Weight":50},{"Area":"肇庆","Weight":59},{"Area":"茂名","Weight":77},{"Area":"云浮","Weight":95},{"Area":"阳江","Weight":71},{"Area":"江门","Weight":58},{"Area":"韶关","Weight":98},{"Area":"乐昌","Weight":84},{"Area":"化州","Weight":79},{"Area":"从化","Weight":54},{"Area":"鹤山","Weight":71},{"Area":"汕尾","Weight":87},{"Area":"清远","Weight":76},{"Area":"顺德","Weight":60},{"Area":"雷州","Weight":71},{"Area":"廉江","Weight":67},{"Area":"吴川","Weight":51},{"Area":"高州","Weight":99},{"Area":"信宜","Weight":88},{"Area":"阳春","Weight":70},{"Area":"罗定","Weight":74},{"Area":"四会","Weight":51},{"Area":"高要","Weight":90},{"Area":"开平","Weight":73},{"Area":"台山","Weight":96},{"Area":"恩平","Weight":66},{"Area":"陆丰","Weight":75},{"Area":"普宁","Weight":60},{"Area":"兴宁","Weight":72},{"Area":"南雄","Weight":63},{"Area":"连州","Weight":64},{"Area":"英德","Weight":59},{"Area":"增城","Weight":75},{"Area":"南宁","Weight":96},{"Area":"柳州","Weight":71},{"Area":"北海","Weight":94},{"Area":"百色","Weight":63},{"Area":"梧州","Weight":86},{"Area":"贺州","Weight":87},{"Area":"玉林","Weight":88},{"Area":"河池","Weight":73},{"Area":"桂林","Weight":75},{"Area":"钦州","Weight":76},{"Area":"防城港","Weight":69},{"Area":"来宾","Weight":50},{"Area":"崇左","Weight":64},{"Area":"贵港","Weight":80},{"Area":"北流","Weight":76},{"Area":"宜州","Weight":50},{"Area":"桂平","Weight":51},{"Area":"岑溪","Weight":84},{"Area":"东兴","Weight":69},{"Area":"凭祥","Weight":66},{"Area":"合山","Weight":63},{"Area":"海口","Weight":95},{"Area":"三亚","Weight":91},{"Area":"琼海","Weight":92},{"Area":"儋州","Weight":89},{"Area":"文昌","Weight":94},{"Area":"万宁","Weight":71},{"Area":"东方","Weight":74},{"Area":"五指山","Weight":51},{"Area":"成都","Weight":50},{"Area":"内江","Weight":85},{"Area":"峨眉山","Weight":88},{"Area":"绵阳","Weight":64},{"Area":"宜宾","Weight":60},{"Area":"泸州","Weight":66},{"Area":"攀枝花","Weight":69},{"Area":"自贡","Weight":82},{"Area":"资阳","Weight":66},{"Area":"崇州","Weight":63},{"Area":"西昌","Weight":66},{"Area":"都江堰","Weight":72},{"Area":"遂宁","Weight":51},{"Area":"乐山","Weight":55},{"Area":"达州","Weight":77},{"Area":"江油","Weight":63},{"Area":"大邑","Weight":67},{"Area":"金堂","Weight":58},{"Area":"德阳","Weight":82},{"Area":"南充","Weight":79},{"Area":"广安","Weight":75},{"Area":"广元","Weight":83},{"Area":"巴中","Weight":90},{"Area":"雅安","Weight":77},{"Area":"眉山","Weight":84},{"Area":"阿坝","Weight":52},{"Area":"甘孜","Weight":78},{"Area":"三台","Weight":87},{"Area":"丹棱","Weight":97},{"Area":"梁平","Weight":69},{"Area":"万县","Weight":62},{"Area":"广汉","Weight":96},{"Area":"汶川县","Weight":59},{"Area":"什邡","Weight":54},{"Area":"彭州","Weight":56},{"Area":"绵竹","Weight":64},{"Area":"邛崃","Weight":89},{"Area":"阆中","Weight":73},{"Area":"华蓥","Weight":92},{"Area":"万源","Weight":64},{"Area":"简阳","Weight":89},{"Area":"贵阳","Weight":80},{"Area":"安顺","Weight":69},{"Area":"铜仁","Weight":53},{"Area":"六盘水","Weight":60},{"Area":"遵义","Weight":94},{"Area":"毕节","Weight":85},{"Area":"兴义","Weight":71},{"Area":"凯里","Weight":63},{"Area":"都匀","Weight":51},{"Area":"福泉","Weight":78},{"Area":"仁怀","Weight":57},{"Area":"赤水","Weight":84},{"Area":"清镇","Weight":62},{"Area":"昆明","Weight":53},{"Area":"西双版纳","Weight":51},{"Area":"大理","Weight":60},{"Area":"德宏","Weight":65},{"Area":"思茅","Weight":50},{"Area":"玉溪","Weight":62},{"Area":"曲靖","Weight":52},{"Area":"保山","Weight":61},{"Area":"昭通","Weight":68},{"Area":"临沧","Weight":51},{"Area":"丽江","Weight":57},{"Area":"文山","Weight":62},{"Area":"个旧","Weight":65},{"Area":"楚雄","Weight":66},{"Area":"香格里拉","Weight":62},{"Area":"宜良","Weight":53},{"Area":"沅江","Weight":65},{"Area":"安宁","Weight":59},{"Area":"宣威","Weight":50},{"Area":"瑞丽","Weight":64},{"Area":"开远","Weight":68},{"Area":"景洪","Weight":60},{"Area":"拉萨","Weight":6},{"Area":"那曲","Weight":5},{"Area":"昌都","Weight":5},{"Area":"山南","Weight":5},{"Area":"日喀则","Weight":5},{"Area":"噶尔","Weight":5},{"Area":"林芝","Weight":5},{"Area":"西安","Weight":76},{"Area":"宝鸡","Weight":96},{"Area":"延安","Weight":75},{"Area":"兴平","Weight":68},{"Area":"咸阳","Weight":62},{"Area":"铜川","Weight":93},{"Area":"渭南","Weight":51},{"Area":"汉中","Weight":71},{"Area":"榆林","Weight":63},{"Area":"安康","Weight":59},{"Area":"商洛","Weight":93},{"Area":"周至","Weight":70},{"Area":"韩城","Weight":87},{"Area":"华阴","Weight":86},{"Area":"兰州","Weight":51},{"Area":"嘉峪关","Weight":60},{"Area":"酒泉","Weight":68},{"Area":"临夏","Weight":55},{"Area":"白银","Weight":51},{"Area":"天水","Weight":68},{"Area":"武威","Weight":68},{"Area":"张掖","Weight":62},{"Area":"平凉","Weight":65},{"Area":"庆阳","Weight":65},{"Area":"定西","Weight":51},{"Area":"陇南","Weight":58},{"Area":"甘南","Weight":66},{"Area":"敦煌","Weight":67},{"Area":"金昌","Weight":64},{"Area":"玉门","Weight":69},{"Area":"西宁","Weight":63},{"Area":"海东","Weight":61},{"Area":"海北","Weight":51},{"Area":"黄南","Weight":50},{"Area":"海南","Weight":62},{"Area":"果洛","Weight":54},{"Area":"海西","Weight":64},{"Area":"玉树","Weight":68},{"Area":"格尔木","Weight":53}] \ No newline at end of file diff --git a/gen_data.bat b/gen_data.bat deleted file mode 100644 index 9d49007..0000000 --- a/gen_data.bat +++ /dev/null @@ -1,19 +0,0 @@ -@echo off -set work_path=%cd% -set protoc=%work_path%\bin\protoc-3.19.4-win64\bin\protoc.exe -set protoc-gen-go-plugin-path="%work_path%\bin\protoc-gen-go.exe" - -cd %work_path%/xlsx2proto -if not exist xlsx2proto.exe ( - go build -) -xlsx2proto.exe - -cd ../protocol/server -%protoc% --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=. pbdata.proto - -cd ../../xlsx2binary -go build -xlsx2binary.exe - -pause diff --git a/gen_go.bat b/gen_go.bat deleted file mode 100644 index d30c926..0000000 --- a/gen_go.bat +++ /dev/null @@ -1,19 +0,0 @@ -@echo off -set work_path=%cd% -set proto_path=%work_path%\protocol -set protoc=%work_path%\bin\protoc-3.19.4-win64\bin\protoc.exe -set protoc-gen-go-plugin-path="%work_path%\bin\protoc-gen-go.exe" - -echo %protoc3% -cd %proto_path% -for /d %%s in (,*) do ( - if %%s NEQ webapi ( - cd %%s - for %%b in (,*.proto) do ( - echo %%b - %protoc% --plugin=protoc-gen-go=%protoc-gen-go-plugin-path% --go_out=. %%b - ) - cd .. - ) -) -pause \ No newline at end of file diff --git a/xlsx2binary/agc.go b/xlsx2binary/agc.go deleted file mode 100644 index e80a3de..0000000 --- a/xlsx2binary/agc.go +++ /dev/null @@ -1,12048 +0,0 @@ - -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package main -import ( - "encoding/json" - "fmt" - "os" - "runtime" - "strconv" - "strings" - - "github.com/tealeg/xlsx" - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var _ = strings.Split - - -func AgcConvertDB_ActSign(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_ActSignArray{ - Arr:make([]*server.DB_ActSign, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_ActSign{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.Type = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Name = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Item_Id = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Grade = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Activity1(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_Activity1Array{ - Arr:make([]*server.DB_Activity1, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Activity1{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.Parameter = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Turn = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - data.Title = row.Cells[3].String() - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Costype = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.Costp = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Cost = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.Typee = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.Propid = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.Value = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.Getype = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_AnimalColor(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_AnimalColorArray{ - Arr:make([]*server.DB_AnimalColor, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_AnimalColor{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Desc = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[2].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[2].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.ColorChance = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_ArtilleryRate(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_ArtilleryRateArray{ - Arr:make([]*server.DB_ArtilleryRate, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_ArtilleryRate{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.Shell = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Level = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - data.Desc = row.Cells[3].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_ArtillerySkin(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_ArtillerySkinArray{ - Arr:make([]*server.DB_ArtillerySkin, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_ArtillerySkin{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.CannonId = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Type = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.ExprieTime = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.Show = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Order = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - - - data.NameIcon = row.Cells[7].String() - - - - - - - if len(row.Cells)<8+1{ - break - } - - - - data.PicIcon = row.Cells[8].String() - - - - - - - if len(row.Cells)<9+1{ - break - } - - - - data.BaseIcon = row.Cells[9].String() - - - - - - - if len(row.Cells)<10+1{ - break - } - - - - data.ShellIcon = row.Cells[10].String() - - - - - - - if len(row.Cells)<11+1{ - break - } - - - - data.NetIcon = row.Cells[11].String() - - - - - - - if len(row.Cells)<12+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[12].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[12].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Vip = arrInt - - - - - - if len(row.Cells)<13+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[13].String(), 10, 32) - data.Gold = int32(temp) - - - - - - - - - if len(row.Cells)<14+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[14].String(), 10, 32) - data.Diamond = int32(temp) - - - - - - - - - if len(row.Cells)<15+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[15].String(), 10, 32) - data.Income = int32(temp) - - - - - - - - - if len(row.Cells)<16+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[16].String(), 10, 32) - data.Speed = int32(temp) - - - - - - - - - if len(row.Cells)<17+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[17].String(), 10, 32) - data.Caught = int32(temp) - - - - - - - - - if len(row.Cells)<18+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[18].String(), 10, 32) - data.Introduce = int32(temp) - - - - - - - - - if len(row.Cells)<19+1{ - break - } - - - - data.Source = row.Cells[19].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_BlackWhite(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_BlackWhiteArray{ - Arr:make([]*server.DB_BlackWhite, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_BlackWhite{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[2].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[2].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.BlackOdds = arrInt - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.WhiteOdds = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_CardsJD(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_CardsJDArray{ - Arr:make([]*server.DB_CardsJD, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_CardsJD{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Card1 = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Card1Score = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Card1HandNum = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - - - data.Change1Cards = row.Cells[4].String() - - - - - - - if len(row.Cells)<5+1{ - break - } - - - - data.Card2 = row.Cells[5].String() - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Card2Score = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.Card2HandNum = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - - - data.Change2Cards = row.Cells[8].String() - - - - - - - if len(row.Cells)<9+1{ - break - } - - - - data.Card3 = row.Cells[9].String() - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.Card3Score = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[11].String(), 10, 32) - data.Card3HandNum = int32(temp) - - - - - - - - - if len(row.Cells)<12+1{ - break - } - - - - data.Change3Cards = row.Cells[12].String() - - - - - - - if len(row.Cells)<13+1{ - break - } - - - - data.Card4 = row.Cells[13].String() - - - - - - - if len(row.Cells)<14+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[14].String(), 10, 32) - data.Card4Score = int32(temp) - - - - - - - - - if len(row.Cells)<15+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[15].String(), 10, 32) - data.Card4HandNum = int32(temp) - - - - - - - - - if len(row.Cells)<16+1{ - break - } - - - - data.Change4Cards = row.Cells[16].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_CardsYuLe(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_CardsYuLeArray{ - Arr:make([]*server.DB_CardsYuLe, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_CardsYuLe{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Card1 = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Card1Score = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Card1HandNum = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - - - data.Change1Cards = row.Cells[4].String() - - - - - - - if len(row.Cells)<5+1{ - break - } - - - - data.Card2 = row.Cells[5].String() - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Card2Score = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.Card2HandNum = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - - - data.Change2Cards = row.Cells[8].String() - - - - - - - if len(row.Cells)<9+1{ - break - } - - - - data.Card3 = row.Cells[9].String() - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.Card3Score = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[11].String(), 10, 32) - data.Card3HandNum = int32(temp) - - - - - - - - - if len(row.Cells)<12+1{ - break - } - - - - data.Change3Cards = row.Cells[12].String() - - - - - - - if len(row.Cells)<13+1{ - break - } - - - - data.Card4 = row.Cells[13].String() - - - - - - - if len(row.Cells)<14+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[14].String(), 10, 32) - data.Card4Score = int32(temp) - - - - - - - - - if len(row.Cells)<15+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[15].String(), 10, 32) - data.Card4HandNum = int32(temp) - - - - - - - - - if len(row.Cells)<16+1{ - break - } - - - - data.Change4Cards = row.Cells[16].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_ChessBilledRules(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_ChessBilledRulesArray{ - Arr:make([]*server.DB_ChessBilledRules, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_ChessBilledRules{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.TypeId = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.WinScore = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.LoseScore = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.DrawScore = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.WinTimes = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.OtherScore = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_ChessMatchRules(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_ChessMatchRulesArray{ - Arr:make([]*server.DB_ChessMatchRules, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_ChessMatchRules{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.ScoreMin = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.ScoreMax = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.MatchScoreMin = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.MatchScoreMax = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[5].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[5].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.MatchScoreLowStep = arrInt - - - - - - if len(row.Cells)<6+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[6].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[6].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.MatchScoreHightStep = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_ChessRank(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_ChessRankArray{ - Arr:make([]*server.DB_ChessRank, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_ChessRank{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.Score = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Name = row.Cells[2].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_ClientVer(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_ClientVerArray{ - Arr:make([]*server.DB_ClientVer, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_ClientVer{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.PackageFlag = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.PackVers = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - data.GameVers = row.Cells[3].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_CrashSearch(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_CrashSearchArray{ - Arr:make([]*server.DB_CrashSearch, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_CrashSearch{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.Time = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Price = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Createroom(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_CreateroomArray{ - Arr:make([]*server.DB_Createroom, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Createroom{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.GameId = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.GameSite = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.GoldRange = arrInt - - - - - - if len(row.Cells)<4+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[4].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[4].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.BetRange = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Fish(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_FishArray{ - Arr:make([]*server.DB_Fish, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Fish{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.NameE = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Gold = arrInt - - - - - - if len(row.Cells)<4+1{ - break - } - - - - data.Icon = row.Cells[4].String() - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.Speed = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Exp = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.FrameCnt = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.FrameDelay = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.Rate = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.ShowType = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[11].String(), 10, 32) - data.Show = int32(temp) - - - - - - - - - if len(row.Cells)<12+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[12].String(), 10, 32) - data.ShowScale = int32(temp) - - - - - - - - - if len(row.Cells)<13+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[13].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[13].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.ShowPos = arrInt - - - - - - if len(row.Cells)<14+1{ - break - } - - - - data.DieSound = row.Cells[14].String() - - - - - - - if len(row.Cells)<15+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[15].String(), 10, 32) - data.DieFrame = int32(temp) - - - - - - - - - if len(row.Cells)<16+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[16].String(), 10, 32) - data.DieRotate = int32(temp) - - - - - - - - - if len(row.Cells)<17+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[17].String(), 10, 32) - data.DieEffect = int32(temp) - - - - - - - - - if len(row.Cells)<18+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[18].String(), 10, 32) - data.DieShake = int32(temp) - - - - - - - - - if len(row.Cells)<19+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[19].String(), 10, 32) - data.ShakeRange = int32(temp) - - - - - - - - - if len(row.Cells)<20+1{ - break - } - - - - data.Shape = row.Cells[20].String() - - - - - - - if len(row.Cells)<21+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[21].String(), 10, 32) - data.IsBoss = int32(temp) - - - - - - - - - if len(row.Cells)<22+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[22].String(), 10, 32) - data.ResId = int32(temp) - - - - - - - - - if len(row.Cells)<23+1{ - break - } - - - - data.DieParticle = row.Cells[23].String() - - - - - - - if len(row.Cells)<24+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[24].String(), 10, 32) - data.GroupShape = int32(temp) - - - - - - - - - if len(row.Cells)<25+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[25].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[25].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.GroupFishes = arrInt - - - - - - if len(row.Cells)<26+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[26].String(), 10, 32) - data.Zorder = int32(temp) - - - - - - - - - if len(row.Cells)<27+1{ - break - } - - - - data.ResPng = row.Cells[27].String() - - - - - - - if len(row.Cells)<28+1{ - break - } - - - - data.ResPlist = row.Cells[28].String() - - - - - - - if len(row.Cells)<29+1{ - break - } - - - - data.ExportJson = row.Cells[29].String() - - - - - - - if len(row.Cells)<30+1{ - break - } - - - - data.AimIcon = row.Cells[30].String() - - - - - - - if len(row.Cells)<31+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[31].String(), 10, 32) - data.GameId = int32(temp) - - - - - - - - - if len(row.Cells)<32+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[32].String(), 10, 32) - data.Sort = int32(temp) - - - - - - - - - if len(row.Cells)<33+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[33].String(), 10, 32) - data.FishType = int32(temp) - - - - - - - - - if len(row.Cells)<34+1{ - break - } - - - - data.RandomCoin = row.Cells[34].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_FishOut(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_FishOutArray{ - Arr:make([]*server.DB_FishOut, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_FishOut{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.SceneType = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Name = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Exp = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[4].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[4].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Multiple = arrInt - - - - - - if len(row.Cells)<5+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[5].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[5].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Path = arrInt - - - - - - if len(row.Cells)<6+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[6].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[6].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Count = arrInt - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.RefreshInterval = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.Speed = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.Event = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_FishPath(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_FishPathArray{ - Arr:make([]*server.DB_FishPath, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_FishPath{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.AppearTime = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.DisappearTime = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_FishRoom(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_FishRoomArray{ - Arr:make([]*server.DB_FishRoom, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_FishRoom{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.RoomId = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Name = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - data.SumGold1 = row.Cells[3].String() - - - - - - - if len(row.Cells)<4+1{ - break - } - - - - data.SumGold2 = row.Cells[4].String() - - - - - - - if len(row.Cells)<5+1{ - break - } - - - - data.SumGold3 = row.Cells[5].String() - - - - - - - if len(row.Cells)<6+1{ - break - } - - - - data.SumGold4 = row.Cells[6].String() - - - - - - - if len(row.Cells)<7+1{ - break - } - - - - data.SumGold5 = row.Cells[7].String() - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.BossCDTime = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.LittleBossCDTime = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - - - data.EnableBoss = row.Cells[10].String() - - - - - - - if len(row.Cells)<11+1{ - break - } - - - - data.EnableLittleBoss = row.Cells[11].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_FishSkill(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_FishSkillArray{ - Arr:make([]*server.DB_FishSkill, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_FishSkill{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Vip = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Consume = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[4].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[4].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Item = arrInt - - - - - - if len(row.Cells)<5+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[5].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[5].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.OtherConsumer = arrInt - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Multiple = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.Duration = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.SkillGroups = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.GCD = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.Cooldown = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - - - data.Hidden = row.Cells[11].String() - - - - - - - if len(row.Cells)<12+1{ - break - } - - - - data.Describe = row.Cells[12].String() - - - - - - - if len(row.Cells)<13+1{ - break - } - - - - data.Boss = row.Cells[13].String() - - - - - - - if len(row.Cells)<14+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[14].String(), 10, 32) - data.Type = int32(temp) - - - - - - - - - if len(row.Cells)<15+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[15].String(), 10, 32) - data.Limit = int32(temp) - - - - - - - - - if len(row.Cells)<16+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[16].String(), 10, 32) - data.Mutex = int32(temp) - - - - - - - - - if len(row.Cells)<17+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[17].String(), 10, 32) - data.MutexTime = int32(temp) - - - - - - - - - if len(row.Cells)<18+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[18].String(), 10, 32) - data.Fury = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_FortuneGod_Odds(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_FortuneGod_OddsArray{ - Arr:make([]*server.DB_FortuneGod_Odds, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_FortuneGod_Odds{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Rateodds3 = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Rateodds4 = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Rateodds5 = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_FortuneGod_TurnRate(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_FortuneGod_TurnRateArray{ - Arr:make([]*server.DB_FortuneGod_TurnRate, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_FortuneGod_TurnRate{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.ReturnRateMin = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.ReturnRateMax = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Chance = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_FortuneGod_Weight(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_FortuneGod_WeightArray{ - Arr:make([]*server.DB_FortuneGod_Weight, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_FortuneGod_Weight{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[2].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[2].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Weight = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_FortuneGod_WeightCondition(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_FortuneGod_WeightConditionArray{ - Arr:make([]*server.DB_FortuneGod_WeightCondition, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_FortuneGod_WeightCondition{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.IsNew = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[2].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[2].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.BetScope = arrInt - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.TrueCalcRate = arrInt - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.WeightId = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_GamMatchLV(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_GamMatchLVArray{ - Arr:make([]*server.DB_GamMatchLV, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_GamMatchLV{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[1].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[1].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Star = arrInt - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Name = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Star2 = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.AwardType1 = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.AwardId1 = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Number1 = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.AwardType2 = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.AwardId2 = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.Number2 = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.AwardType3 = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[11].String(), 10, 32) - data.AwardId3 = int32(temp) - - - - - - - - - if len(row.Cells)<12+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[12].String(), 10, 32) - data.Number3 = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_GameCoinPool(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_GameCoinPoolArray{ - Arr:make([]*server.DB_GameCoinPool, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_GameCoinPool{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 64) - data.InitValue = int64(temp) - - - - - - - - if len(row.Cells)<4+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 64) - data.LowerLimit = int64(temp) - - - - - - - - if len(row.Cells)<5+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 64) - data.UpperLimit = int64(temp) - - - - - - - - if len(row.Cells)<6+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 64) - data.QuDu = int64(temp) - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.UpperOdds = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.UpperOddsMax = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.LowerOdds = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.LowerOddsMax = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[11].String(), 10, 32) - data.ProfitRate = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_GameFree(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_GameFreeArray{ - Arr:make([]*server.DB_GameFree, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_GameFree{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Title = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.GameId = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.GameMode = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.FreeMode = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.GameRule = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.GameType = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.SceneType = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.RankType = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.SceneAdd = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - - - data.Desc = row.Cells[11].String() - - - - - - - if len(row.Cells)<12+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[12].String(), 10, 32) - data.ShowType = int32(temp) - - - - - - - - - if len(row.Cells)<13+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[13].String(), 10, 32) - data.SubShowType = int32(temp) - - - - - - - - - if len(row.Cells)<14+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[14].String(), 10, 32) - data.Flag = int32(temp) - - - - - - - - - if len(row.Cells)<15+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[15].String(), 10, 32) - data.TestTakeCoin = int32(temp) - - - - - - - - - if len(row.Cells)<16+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[16].String(), 10, 32) - data.ShowId = int32(temp) - - - - - - - - - if len(row.Cells)<17+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[17].String(), 10, 64) - data.LimitCoin = int64(temp) - - - - - - - - if len(row.Cells)<18+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[18].String(), 10, 64) - data.MaxCoinLimit = int64(temp) - - - - - - - - if len(row.Cells)<19+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[19].String(), 10, 32) - data.ServiceFee = int32(temp) - - - - - - - - - if len(row.Cells)<20+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[20].String(), 10, 64) - data.LowerThanKick = int64(temp) - - - - - - - - if len(row.Cells)<21+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[21].String(), 10, 32) - data.BaseScore = int32(temp) - - - - - - - - - if len(row.Cells)<22+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[22].String(), 10, 32) - data.Turn = int32(temp) - - - - - - - - - if len(row.Cells)<23+1{ - break - } - - - - data.BetDec = row.Cells[23].String() - - - - - - - if len(row.Cells)<24+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[24].String(), 10, 32) - data.Bot = int32(temp) - - - - - - - - - if len(row.Cells)<25+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[25].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[25].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Ai = arrInt - - - - - - if len(row.Cells)<26+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[26].String(), 10, 32) - data.Banker = int32(temp) - - - - - - - - - if len(row.Cells)<27+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[27].String(), 10, 32) - data.MaxChip = int32(temp) - - - - - - - - - if len(row.Cells)<28+1{ - break - } - - - - - - - arrStr = strings.Split(row.Cells[28].String(), "|") - arrInt64 = nil - if len(arrStr) > 0 && row.Cells[28].String() != "" { - arrInt64 = make([]int64, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 64) - arrInt64[i] = int64(temp) - } - } - data.OtherIntParams = arrInt64 - - - - if len(row.Cells)<29+1{ - break - } - - - - - - - arrStr = strings.Split(row.Cells[29].String(), "|") - arrInt64 = nil - if len(arrStr) > 0 && row.Cells[29].String() != "" { - arrInt64 = make([]int64, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 64) - arrInt64[i] = int64(temp) - } - } - data.ChessScoreParams = arrInt64 - - - - if len(row.Cells)<30+1{ - break - } - - - - - - - arrStr = strings.Split(row.Cells[30].String(), "|") - arrInt64 = nil - if len(arrStr) > 0 && row.Cells[30].String() != "" { - arrInt64 = make([]int64, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 64) - arrInt64[i] = int64(temp) - } - } - data.RankScoreParams = arrInt64 - - - - if len(row.Cells)<31+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[31].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[31].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Jackpot = arrInt - - - - - - if len(row.Cells)<32+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[32].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[32].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.RobotNumRng = arrInt - - - - - - if len(row.Cells)<33+1{ - break - } - - - - - - - arrStr = strings.Split(row.Cells[33].String(), "|") - arrInt64 = nil - if len(arrStr) > 0 && row.Cells[33].String() != "" { - arrInt64 = make([]int64, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 64) - arrInt64[i] = int64(temp) - } - } - data.RobotTakeCoin = arrInt64 - - - - if len(row.Cells)<34+1{ - break - } - - - - - - - arrStr = strings.Split(row.Cells[34].String(), "|") - arrInt64 = nil - if len(arrStr) > 0 && row.Cells[34].String() != "" { - arrInt64 = make([]int64, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 64) - arrInt64[i] = int64(temp) - } - } - data.RobotLimitCoin = arrInt64 - - - - if len(row.Cells)<35+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[35].String(), 10, 32) - data.BetLimit = int32(temp) - - - - - - - - - if len(row.Cells)<36+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[36].String(), 10, 32) - data.TaxRate = int32(temp) - - - - - - - - - if len(row.Cells)<37+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[37].String(), 10, 32) - data.SameIpLimit = int32(temp) - - - - - - - - - if len(row.Cells)<38+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[38].String(), 10, 32) - data.SamePlaceLimit = int32(temp) - - - - - - - - - if len(row.Cells)<39+1{ - break - } - - - - data.GameDif = row.Cells[39].String() - - - - - - - if len(row.Cells)<40+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[40].String(), 10, 32) - data.GameClass = int32(temp) - - - - - - - - - if len(row.Cells)<41+1{ - break - } - - - - data.PlatformName = row.Cells[41].String() - - - - - - - if len(row.Cells)<42+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[42].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[42].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.MaxBetCoin = arrInt - - - - - - if len(row.Cells)<43+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[43].String(), 10, 32) - data.PlayNumLimit = int32(temp) - - - - - - - - - if len(row.Cells)<44+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[44].String(), 10, 32) - data.CreateRoomNum = int32(temp) - - - - - - - - - if len(row.Cells)<45+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[45].String(), 10, 32) - data.MatchTrueMan = int32(temp) - - - - - - - - - if len(row.Cells)<46+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[46].String(), 10, 32) - data.PlayerWaterRate = int32(temp) - - - - - - - - - if len(row.Cells)<47+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[47].String(), 10, 32) - data.MatchMode = int32(temp) - - - - - - - - - if len(row.Cells)<48+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[48].String(), 10, 32) - data.KillingRate = int32(temp) - - - - - - - - - if len(row.Cells)<49+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[49].String(), 10, 32) - data.BetWaterRate = int32(temp) - - - - - - - - - if len(row.Cells)<50+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[50].String(), 10, 32) - data.Lottery = int32(temp) - - - - - - - - - if len(row.Cells)<51+1{ - break - } - - - - data.LotteryConfig = row.Cells[51].String() - - - - - - - if len(row.Cells)<52+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[52].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[52].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.BalanceLine = arrInt - - - - - - if len(row.Cells)<53+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[53].String(), 10, 32) - data.JackpotRatio = int32(temp) - - - - - - - - - if len(row.Cells)<54+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[54].String(), 10, 32) - data.JackpotMin = int32(temp) - - - - - - - - - if len(row.Cells)<55+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[55].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[55].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.ChessGradeLimit = arrInt - - - - - - if len(row.Cells)<56+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[56].String(), 10, 32) - data.LeaveDeduct = int32(temp) - - - - - - - - - if len(row.Cells)<57+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[57].String(), 10, 32) - data.LeaveCombat = int32(temp) - - - - - - - - - if len(row.Cells)<58+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[58].String(), 10, 32) - data.IntuseCannonMin = int32(temp) - - - - - - - - - if len(row.Cells)<59+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[59].String(), 10, 32) - data.IntuseCannonMax = int32(temp) - - - - - - - - - if len(row.Cells)<60+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[60].String(), 10, 32) - data.BossDrainageBet = int32(temp) - - - - - - - - - if len(row.Cells)<61+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[61].String(), 10, 32) - data.Draw = int32(temp) - - - - - - - - - if len(row.Cells)<62+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[62].String(), 10, 64) - data.Fluctuate = int64(temp) - - - - - - - - if len(row.Cells)<63+1{ - break - } - - - - data.FluctuateMax = row.Cells[63].String() - - - - - - - if len(row.Cells)<64+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[64].String(), 10, 32) - data.Ratio = int32(temp) - - - - - - - - - if len(row.Cells)<65+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[65].String(), 10, 64) - data.MinValue = int64(temp) - - - - - - - - if len(row.Cells)<66+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[66].String(), 10, 64) - data.MaxValue = int64(temp) - - - - - - - - if len(row.Cells)<67+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[67].String(), 10, 32) - data.DrainageBet = int32(temp) - - - - - - - - - if len(row.Cells)<68+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[68].String(), 10, 32) - data.DiamondDrop = int32(temp) - - - - - - - - - if len(row.Cells)<69+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[69].String(), 10, 32) - data.NegativeMax = int32(temp) - - - - - - - - - if len(row.Cells)<70+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[70].String(), 10, 32) - data.RatioMax = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_GameItem(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_GameItemArray{ - Arr:make([]*server.DB_GameItem, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_GameItem{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[2].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[2].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.ShowLocation = arrInt - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Classify = arrInt - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Type = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[5].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[5].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Effect0 = arrInt - - - - - - if len(row.Cells)<6+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[6].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[6].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Effect = arrInt - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.SaleType = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.SaleGold = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.Composition = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.CompositionMax = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[11].String(), 10, 32) - data.Time = int32(temp) - - - - - - - - - if len(row.Cells)<12+1{ - break - } - - - - data.Location = row.Cells[12].String() - - - - - - - if len(row.Cells)<13+1{ - break - } - - - - data.Describe = row.Cells[13].String() - - - - - - - if len(row.Cells)<14+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[14].String(), 10, 64) - data.Num = int64(temp) - - - - - - - - if len(row.Cells)<15+1{ - break - } - - - - data.Value = row.Cells[15].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_GameMatchLevel(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_GameMatchLevelArray{ - Arr:make([]*server.DB_GameMatchLevel, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_GameMatchLevel{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.GameFreeId = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.MatchLevel = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.RobotUpRatio = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[4].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[4].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.UpGrade = arrInt - - - - - - if len(row.Cells)<5+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[5].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[5].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.UpGradeOdds = arrInt - - - - - - if len(row.Cells)<6+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[6].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[6].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.DownGrade = arrInt - - - - - - if len(row.Cells)<7+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[7].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[7].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.DownGradeOdds = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_GameRule(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_GameRuleArray{ - Arr:make([]*server.DB_GameRule, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_GameRule{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.GameId = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.GameMode = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[4].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[4].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Params = arrInt - - - - - - if len(row.Cells)<5+1{ - break - } - - - - data.RuleDesc = row.Cells[5].String() - - - - - - - if len(row.Cells)<6+1{ - break - } - - - - data.GameDif = row.Cells[6].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_GameSubsidy(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_GameSubsidyArray{ - Arr:make([]*server.DB_GameSubsidy, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_GameSubsidy{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.LimitNum = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Get = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Times = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Game_Drop(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_Game_DropArray{ - Arr:make([]*server.DB_Game_Drop, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Game_Drop{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.GameId = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Bet = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.ItemName1 = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.ItemId1 = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.Rate1 = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[6].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[6].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Amount1 = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Game_Introduction(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_Game_IntroductionArray{ - Arr:make([]*server.DB_Game_Introduction, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Game_Introduction{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.Type = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Name = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - data.Story = row.Cells[3].String() - - - - - - - if len(row.Cells)<4+1{ - break - } - - - - data.AwardTitle = row.Cells[4].String() - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.LevelMax = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Game_Pet(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_Game_PetArray{ - Arr:make([]*server.DB_Game_Pet, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Game_Pet{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.PetId = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Name = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Grade = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Level = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.Fragment = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Amount = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.AwardType = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.Award = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.AwardRate = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Game_Role(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_Game_RoleArray{ - Arr:make([]*server.DB_Game_Role, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Game_Role{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.RoleId = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Name = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Grade = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Level = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.Fragment = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Amount = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.AwardType = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.Award = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.AwardRate = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_GiftBox(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_GiftBoxArray{ - Arr:make([]*server.DB_GiftBox, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_GiftBox{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.Rate = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - - - - - if row.Cells[2].String() != ""{ - pairs := strings.Split(row.Cells[2].String(), ";") - resultMap := make(map[int64]int64) - for _, pair := range pairs { - kv := strings.Split(pair, ",") - key, err := strconv.ParseInt(kv[0], 10, 64) - if err != nil { - // 错误处理 - fmt.Println("无法转换为int64:", kv[0]) - continue - } - value, err := strconv.ParseInt(kv[1], 10, 64) - if err != nil { - // 错误处理 - fmt.Println("无法转换为int64:", kv[1]) - continue - } - resultMap[key] = value - } - data.ItemID = resultMap - } - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_IceAgeElementRate(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_IceAgeElementRateArray{ - Arr:make([]*server.DB_IceAgeElementRate, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_IceAgeElementRate{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.ModeName = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.ModeType = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Params = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Legend_Odds(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_Legend_OddsArray{ - Arr:make([]*server.DB_Legend_Odds, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Legend_Odds{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Rateodds3 = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Rateodds4 = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Rateodds5 = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Legend_TurnRate(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_Legend_TurnRateArray{ - Arr:make([]*server.DB_Legend_TurnRate, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Legend_TurnRate{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.ReturnRateMin = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.ReturnRateMax = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Chance = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Legend_Weight(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_Legend_WeightArray{ - Arr:make([]*server.DB_Legend_Weight, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Legend_Weight{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[2].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[2].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Weight = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Legend_WeightCondition(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_Legend_WeightConditionArray{ - Arr:make([]*server.DB_Legend_WeightCondition, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Legend_WeightCondition{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.IsNew = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[2].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[2].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.BetScope = arrInt - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.TrueCalcRate = arrInt - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.WeightId = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_MatchRank(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_MatchRankArray{ - Arr:make([]*server.DB_MatchRank, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_MatchRank{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[1].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[1].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.RankStar = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Name(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_NameArray{ - Arr:make([]*server.DB_Name, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Name{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_NameBoy(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_NameBoyArray{ - Arr:make([]*server.DB_NameBoy, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_NameBoy{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_NameGirl(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_NameGirlArray{ - Arr:make([]*server.DB_NameGirl, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_NameGirl{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_NewPlayer(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_NewPlayerArray{ - Arr:make([]*server.DB_NewPlayer, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_NewPlayer{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Condition1 = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 64) - data.ConditionValue1 = int64(temp) - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Condition2 = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 64) - data.ConditionValue2 = int64(temp) - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Bond = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.AddType = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 64) - data.AddMax = int64(temp) - - - - - - - - if len(row.Cells)<9+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 64) - data.AddMin = int64(temp) - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.TianHuRate = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_PhoneLottery(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_PhoneLotteryArray{ - Arr:make([]*server.DB_PhoneLottery, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_PhoneLottery{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.Type = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Name = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Item_Id = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Grade = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.Odd = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Oddrate1 = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.Odd2 = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.Oddrate2 = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.Odd3 = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.Oddrate3 = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[11].String(), 10, 32) - data.Oddrate4 = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_PlayerExp(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_PlayerExpArray{ - Arr:make([]*server.DB_PlayerExp, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_PlayerExp{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.Exp = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_PlayerInfo(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_PlayerInfoArray{ - Arr:make([]*server.DB_PlayerInfo, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_PlayerInfo{} - - for { - - if len(row.Cells)<0+1{ - break - } - - - - data.City = row.Cells[0].String() - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.Head = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Name = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Sex = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_PlayerType(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_PlayerTypeArray{ - Arr:make([]*server.DB_PlayerType, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_PlayerType{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.GameFreeId = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.PayLowerLimit = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.PayUpperLimit = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.GameTimeLowerLimit = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.GameTimeUpperLimit = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.TotalInLowerLimit = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.TotalInUpperLimit = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.OddsLowerLimit = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.OddsUpperLimit = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[11].String(), 10, 32) - data.LuckyRate = int32(temp) - - - - - - - - - if len(row.Cells)<12+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[12].String(), 10, 32) - data.ChangeCardRate = int32(temp) - - - - - - - - - if len(row.Cells)<13+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[13].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[13].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.CardValueRange = arrInt - - - - - - if len(row.Cells)<14+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[14].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[14].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.MatchPriority = arrInt - - - - - - if len(row.Cells)<15+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[15].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[15].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.ExcludeMatch = arrInt - - - - - - if len(row.Cells)<16+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[16].String(), 10, 32) - data.CardLibRate = int32(temp) - - - - - - - - - if len(row.Cells)<17+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[17].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[17].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.CardLibArr = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_PotOdd(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_PotOddArray{ - Arr:make([]*server.DB_PotOdd, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_PotOdd{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Title = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.VipOdd = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_RankCycle(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_RankCycleArray{ - Arr:make([]*server.DB_RankCycle, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_RankCycle{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Start = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.End = row.Cells[2].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_RankLevel(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_RankLevelArray{ - Arr:make([]*server.DB_RankLevel, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_RankLevel{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.RankType = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Level = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - data.Name = row.Cells[3].String() - - - - - - - if len(row.Cells)<4+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 64) - data.Score = int64(temp) - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_RankReward(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_RankRewardArray{ - Arr:make([]*server.DB_RankReward, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_RankReward{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.RankType = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Level = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Award1Id = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Award1Num = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.Award2Id = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.Award2Num = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[7].String(), 10, 32) - data.Award3Id = int32(temp) - - - - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.Award3Num = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Sensitive_Words(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_Sensitive_WordsArray{ - Arr:make([]*server.DB_Sensitive_Words, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Sensitive_Words{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Sensitive_Words = row.Cells[1].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_SlotRateWeight(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_SlotRateWeightArray{ - Arr:make([]*server.DB_SlotRateWeight, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_SlotRateWeight{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.GameFreeId = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Pos = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[3].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[3].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.NormCol1 = arrInt - - - - - - if len(row.Cells)<4+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[4].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[4].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.NormCol2 = arrInt - - - - - - if len(row.Cells)<5+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[5].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[5].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.NormCol3 = arrInt - - - - - - if len(row.Cells)<6+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[6].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[6].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.NormCol4 = arrInt - - - - - - if len(row.Cells)<7+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[7].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[7].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.NormCol5 = arrInt - - - - - - if len(row.Cells)<8+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[8].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[8].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.FreeCol1 = arrInt - - - - - - if len(row.Cells)<9+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[9].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[9].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.FreeCol2 = arrInt - - - - - - if len(row.Cells)<10+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[10].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[10].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.FreeCol3 = arrInt - - - - - - if len(row.Cells)<11+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[11].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[11].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.FreeCol4 = arrInt - - - - - - if len(row.Cells)<12+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[12].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[12].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.FreeCol5 = arrInt - - - - - - if len(row.Cells)<13+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[13].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[13].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.MaryOut = arrInt - - - - - - if len(row.Cells)<14+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[14].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[14].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.MaryMid = arrInt - - - - - - if len(row.Cells)<15+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[15].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[15].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.JackPot = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_SystemChance(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_SystemChanceArray{ - Arr:make([]*server.DB_SystemChance, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_SystemChance{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Desc = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.ChanceType = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.Coin = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.Rate = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Task(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_TaskArray{ - Arr:make([]*server.DB_Task, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Task{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.ActivityType = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[4].String(), 10, 32) - data.TaskType = int32(temp) - - - - - - - - - if len(row.Cells)<5+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 64) - data.TargetTimes = int64(temp) - - - - - - - - if len(row.Cells)<6+1{ - break - } - - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 64) - data.FinishTimes = int64(temp) - - - - - - - - if len(row.Cells)<7+1{ - break - } - - - - - - - - if row.Cells[7].String() != ""{ - pairs := strings.Split(row.Cells[7].String(), ";") - resultMap := make(map[int64]int64) - for _, pair := range pairs { - kv := strings.Split(pair, ",") - key, err := strconv.ParseInt(kv[0], 10, 64) - if err != nil { - // 错误处理 - fmt.Println("无法转换为int64:", kv[0]) - continue - } - value, err := strconv.ParseInt(kv[1], 10, 64) - if err != nil { - // 错误处理 - fmt.Println("无法转换为int64:", kv[1]) - continue - } - resultMap[key] = value - } - data.Award = resultMap - } - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.GameType = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[9].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[9].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Position = arrInt - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_ThirdPlatformGameMapping(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_ThirdPlatformGameMappingArray{ - Arr:make([]*server.DB_ThirdPlatformGameMapping, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_ThirdPlatformGameMapping{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[1].String(), 10, 32) - data.SystemGameID = int32(temp) - - - - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.ThirdPlatformName = row.Cells[2].String() - - - - - - - if len(row.Cells)<3+1{ - break - } - - - - data.ThirdGameID = row.Cells[3].String() - - - - - - - if len(row.Cells)<4+1{ - break - } - - - - data.Desc = row.Cells[4].String() - - - - - - - if len(row.Cells)<5+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[5].String(), 10, 32) - data.ScreenOrientationType = int32(temp) - - - - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.ThirdID = int32(temp) - - - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_Tips(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_TipsArray{ - Arr:make([]*server.DB_Tips, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_Tips{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[1].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[1].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.GameId = arrInt - - - - - - if len(row.Cells)<2+1{ - break - } - - - - data.Des = row.Cells[2].String() - - - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - -func AgcConvertDB_VIP(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.DB_VIPArray{ - Arr:make([]*server.DB_VIP, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.DB_VIP{} - - for { - - if len(row.Cells)<0+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data.Id = int32(temp) - - - - - - - - - if len(row.Cells)<1+1{ - break - } - - - - data.Name = row.Cells[1].String() - - - - - - - if len(row.Cells)<2+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[2].String(), 10, 32) - data.Count = int32(temp) - - - - - - - - - if len(row.Cells)<3+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[3].String(), 10, 32) - data.VipExp = int32(temp) - - - - - - - - - if len(row.Cells)<4+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[4].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[4].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Privilege1 = arrInt - - - - - - if len(row.Cells)<5+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[5].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[5].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Privilege2 = arrInt - - - - - - if len(row.Cells)<6+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[6].String(), 10, 32) - data.ShopId2 = int32(temp) - - - - - - - - - if len(row.Cells)<7+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[7].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[7].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Privilege3 = arrInt - - - - - - if len(row.Cells)<8+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[8].String(), 10, 32) - data.Privilege4 = int32(temp) - - - - - - - - - if len(row.Cells)<9+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[9].String(), 10, 32) - data.Privilege5 = int32(temp) - - - - - - - - - if len(row.Cells)<10+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[10].String(), 10, 32) - data.Privilege6 = int32(temp) - - - - - - - - - if len(row.Cells)<11+1{ - break - } - - - - - - - - if row.Cells[11].String() != ""{ - pairs := strings.Split(row.Cells[11].String(), ";") - resultMap := make(map[int64]int64) - for _, pair := range pairs { - kv := strings.Split(pair, ",") - key, err := strconv.ParseInt(kv[0], 10, 64) - if err != nil { - // 错误处理 - fmt.Println("无法转换为int64:", kv[0]) - continue - } - value, err := strconv.ParseInt(kv[1], 10, 64) - if err != nil { - // 错误处理 - fmt.Println("无法转换为int64:", kv[1]) - continue - } - resultMap[key] = value - } - data.Privilege7 = resultMap - } - - - if len(row.Cells)<12+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[12].String(), 10, 32) - data.Privilege7Price = int32(temp) - - - - - - - - - if len(row.Cells)<13+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[13].String(), 10, 32) - data.ShopId7 = int32(temp) - - - - - - - - - if len(row.Cells)<14+1{ - break - } - - temp, _ = strconv.ParseInt(row.Cells[14].String(), 10, 32) - data.Privilege8 = int32(temp) - - - - - - - - - if len(row.Cells)<15+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[15].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[15].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.Param = arrInt - - - - - - if len(row.Cells)<16+1{ - break - } - - - - - arrStr = strings.Split(row.Cells[16].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[16].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.RewardOutlineID = arrInt - - - - - - if len(row.Cells)<17+1{ - break - } - - - - - - - - if row.Cells[17].String() != ""{ - pairs := strings.Split(row.Cells[17].String(), ";") - resultMap := make(map[int64]int64) - for _, pair := range pairs { - kv := strings.Split(pair, ",") - key, err := strconv.ParseInt(kv[0], 10, 64) - if err != nil { - // 错误处理 - fmt.Println("无法转换为int64:", kv[0]) - continue - } - value, err := strconv.ParseInt(kv[1], 10, 64) - if err != nil { - // 错误处理 - fmt.Println("无法转换为int64:", kv[1]) - continue - } - resultMap[key] = value - } - data.Award = resultMap - } - - - if len(row.Cells)<18+1{ - break - } - - - - - - if row.Cells[18].String() != "" { - arrStr = strings.Split(row.Cells[18].String(), "|") - data.ParamName = arrStr - } - - - - - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - - -func main(){ - - AgcConvertDB_ActSign(`D:\trunk\src\mongo.games.com\public\xlsx\DB_ActSign.xlsx`,`..\data\DB_ActSign.dat`) - - AgcConvertDB_Activity1(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Activity1.xlsx`,`..\data\DB_Activity1.dat`) - - AgcConvertDB_AnimalColor(`D:\trunk\src\mongo.games.com\public\xlsx\DB_AnimalColor.xlsx`,`..\data\DB_AnimalColor.dat`) - - AgcConvertDB_ArtilleryRate(`D:\trunk\src\mongo.games.com\public\xlsx\DB_ArtilleryRate.xlsx`,`..\data\DB_ArtilleryRate.dat`) - - AgcConvertDB_ArtillerySkin(`D:\trunk\src\mongo.games.com\public\xlsx\DB_ArtillerySkin.xlsx`,`..\data\DB_ArtillerySkin.dat`) - - AgcConvertDB_BlackWhite(`D:\trunk\src\mongo.games.com\public\xlsx\DB_BlackWhite.xlsx`,`..\data\DB_BlackWhite.dat`) - - AgcConvertDB_CardsJD(`D:\trunk\src\mongo.games.com\public\xlsx\DB_CardsJD.xlsx`,`..\data\DB_CardsJD.dat`) - - AgcConvertDB_CardsYuLe(`D:\trunk\src\mongo.games.com\public\xlsx\DB_CardsYuLe.xlsx`,`..\data\DB_CardsYuLe.dat`) - - AgcConvertDB_ChessBilledRules(`D:\trunk\src\mongo.games.com\public\xlsx\DB_ChessBilledRules.xlsx`,`..\data\DB_ChessBilledRules.dat`) - - AgcConvertDB_ChessMatchRules(`D:\trunk\src\mongo.games.com\public\xlsx\DB_ChessMatchRules.xlsx`,`..\data\DB_ChessMatchRules.dat`) - - AgcConvertDB_ChessRank(`D:\trunk\src\mongo.games.com\public\xlsx\DB_ChessRank.xlsx`,`..\data\DB_ChessRank.dat`) - - AgcConvertDB_ClientVer(`D:\trunk\src\mongo.games.com\public\xlsx\DB_ClientVer.xlsx`,`..\data\DB_ClientVer.dat`) - - AgcConvertDB_CrashSearch(`D:\trunk\src\mongo.games.com\public\xlsx\DB_CrashSearch.xlsx`,`..\data\DB_CrashSearch.dat`) - - AgcConvertDB_Createroom(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Createroom.xlsx`,`..\data\DB_Createroom.dat`) - - AgcConvertDB_Fish(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Fish.xlsx`,`..\data\DB_Fish.dat`) - - AgcConvertDB_FishOut(`D:\trunk\src\mongo.games.com\public\xlsx\DB_FishOut.xlsx`,`..\data\DB_FishOut.dat`) - - AgcConvertDB_FishPath(`D:\trunk\src\mongo.games.com\public\xlsx\DB_FishPath.xlsx`,`..\data\DB_FishPath.dat`) - - AgcConvertDB_FishRoom(`D:\trunk\src\mongo.games.com\public\xlsx\DB_FishRoom.xlsx`,`..\data\DB_FishRoom.dat`) - - AgcConvertDB_FishSkill(`D:\trunk\src\mongo.games.com\public\xlsx\DB_FishSkill.xlsx`,`..\data\DB_FishSkill.dat`) - - AgcConvertDB_FortuneGod_Odds(`D:\trunk\src\mongo.games.com\public\xlsx\DB_FortuneGod_Odds.xlsx`,`..\data\DB_FortuneGod_Odds.dat`) - - AgcConvertDB_FortuneGod_TurnRate(`D:\trunk\src\mongo.games.com\public\xlsx\DB_FortuneGod_TurnRate.xlsx`,`..\data\DB_FortuneGod_TurnRate.dat`) - - AgcConvertDB_FortuneGod_Weight(`D:\trunk\src\mongo.games.com\public\xlsx\DB_FortuneGod_Weight.xlsx`,`..\data\DB_FortuneGod_Weight.dat`) - - AgcConvertDB_FortuneGod_WeightCondition(`D:\trunk\src\mongo.games.com\public\xlsx\DB_FortuneGod_WeightCondition.xlsx`,`..\data\DB_FortuneGod_WeightCondition.dat`) - - AgcConvertDB_GamMatchLV(`D:\trunk\src\mongo.games.com\public\xlsx\DB_GamMatchLV.xlsx`,`..\data\DB_GamMatchLV.dat`) - - AgcConvertDB_GameCoinPool(`D:\trunk\src\mongo.games.com\public\xlsx\DB_GameCoinPool.xlsx`,`..\data\DB_GameCoinPool.dat`) - - AgcConvertDB_GameFree(`D:\trunk\src\mongo.games.com\public\xlsx\DB_GameFree.xlsx`,`..\data\DB_GameFree.dat`) - - AgcConvertDB_GameItem(`D:\trunk\src\mongo.games.com\public\xlsx\DB_GameItem.xlsx`,`..\data\DB_GameItem.dat`) - - AgcConvertDB_GameMatchLevel(`D:\trunk\src\mongo.games.com\public\xlsx\DB_GameMatchLevel.xlsx`,`..\data\DB_GameMatchLevel.dat`) - - AgcConvertDB_GameRule(`D:\trunk\src\mongo.games.com\public\xlsx\DB_GameRule.xlsx`,`..\data\DB_GameRule.dat`) - - AgcConvertDB_GameSubsidy(`D:\trunk\src\mongo.games.com\public\xlsx\DB_GameSubsidy.xlsx`,`..\data\DB_GameSubsidy.dat`) - - AgcConvertDB_Game_Drop(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Game_Drop.xlsx`,`..\data\DB_Game_Drop.dat`) - - AgcConvertDB_Game_Introduction(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Game_Introduction.xlsx`,`..\data\DB_Game_Introduction.dat`) - - AgcConvertDB_Game_Pet(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Game_Pet.xlsx`,`..\data\DB_Game_Pet.dat`) - - AgcConvertDB_Game_Role(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Game_Role.xlsx`,`..\data\DB_Game_Role.dat`) - - AgcConvertDB_GiftBox(`D:\trunk\src\mongo.games.com\public\xlsx\DB_GiftBox.xlsx`,`..\data\DB_GiftBox.dat`) - - AgcConvertDB_IceAgeElementRate(`D:\trunk\src\mongo.games.com\public\xlsx\DB_IceAgeElementRate.xlsx`,`..\data\DB_IceAgeElementRate.dat`) - - AgcConvertDB_Legend_Odds(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Legend_Odds.xlsx`,`..\data\DB_Legend_Odds.dat`) - - AgcConvertDB_Legend_TurnRate(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Legend_TurnRate.xlsx`,`..\data\DB_Legend_TurnRate.dat`) - - AgcConvertDB_Legend_Weight(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Legend_Weight.xlsx`,`..\data\DB_Legend_Weight.dat`) - - AgcConvertDB_Legend_WeightCondition(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Legend_WeightCondition.xlsx`,`..\data\DB_Legend_WeightCondition.dat`) - - AgcConvertDB_MatchRank(`D:\trunk\src\mongo.games.com\public\xlsx\DB_MatchRank.xlsx`,`..\data\DB_MatchRank.dat`) - - AgcConvertDB_Name(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Name.xlsx`,`..\data\DB_Name.dat`) - - AgcConvertDB_NameBoy(`D:\trunk\src\mongo.games.com\public\xlsx\DB_NameBoy.xlsx`,`..\data\DB_NameBoy.dat`) - - AgcConvertDB_NameGirl(`D:\trunk\src\mongo.games.com\public\xlsx\DB_NameGirl.xlsx`,`..\data\DB_NameGirl.dat`) - - AgcConvertDB_NewPlayer(`D:\trunk\src\mongo.games.com\public\xlsx\DB_NewPlayer.xlsx`,`..\data\DB_NewPlayer.dat`) - - AgcConvertDB_PhoneLottery(`D:\trunk\src\mongo.games.com\public\xlsx\DB_PhoneLottery.xlsx`,`..\data\DB_PhoneLottery.dat`) - - AgcConvertDB_PlayerExp(`D:\trunk\src\mongo.games.com\public\xlsx\DB_PlayerExp.xlsx`,`..\data\DB_PlayerExp.dat`) - - AgcConvertDB_PlayerInfo(`D:\trunk\src\mongo.games.com\public\xlsx\DB_PlayerInfo.xlsx`,`..\data\DB_PlayerInfo.dat`) - - AgcConvertDB_PlayerType(`D:\trunk\src\mongo.games.com\public\xlsx\DB_PlayerType.xlsx`,`..\data\DB_PlayerType.dat`) - - AgcConvertDB_PotOdd(`D:\trunk\src\mongo.games.com\public\xlsx\DB_PotOdd.xlsx`,`..\data\DB_PotOdd.dat`) - - AgcConvertDB_RankCycle(`D:\trunk\src\mongo.games.com\public\xlsx\DB_RankCycle.xlsx`,`..\data\DB_RankCycle.dat`) - - AgcConvertDB_RankLevel(`D:\trunk\src\mongo.games.com\public\xlsx\DB_RankLevel.xlsx`,`..\data\DB_RankLevel.dat`) - - AgcConvertDB_RankReward(`D:\trunk\src\mongo.games.com\public\xlsx\DB_RankReward.xlsx`,`..\data\DB_RankReward.dat`) - - AgcConvertDB_Sensitive_Words(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Sensitive_Words.xlsx`,`..\data\DB_Sensitive_Words.dat`) - - AgcConvertDB_SlotRateWeight(`D:\trunk\src\mongo.games.com\public\xlsx\DB_SlotRateWeight.xlsx`,`..\data\DB_SlotRateWeight.dat`) - - AgcConvertDB_SystemChance(`D:\trunk\src\mongo.games.com\public\xlsx\DB_SystemChance.xlsx`,`..\data\DB_SystemChance.dat`) - - AgcConvertDB_Task(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Task.xlsx`,`..\data\DB_Task.dat`) - - AgcConvertDB_ThirdPlatformGameMapping(`D:\trunk\src\mongo.games.com\public\xlsx\DB_ThirdPlatformGameMapping.xlsx`,`..\data\DB_ThirdPlatformGameMapping.dat`) - - AgcConvertDB_Tips(`D:\trunk\src\mongo.games.com\public\xlsx\DB_Tips.xlsx`,`..\data\DB_Tips.dat`) - - AgcConvertDB_VIP(`D:\trunk\src\mongo.games.com\public\xlsx\DB_VIP.xlsx`,`..\data\DB_VIP.dat`) - -} diff --git a/xlsx2binary/xlsx2binary.exe b/xlsx2binary/xlsx2binary.exe deleted file mode 100644 index ee02d45..0000000 Binary files a/xlsx2binary/xlsx2binary.exe and /dev/null differ diff --git a/xlsx2proto/templ/agc.templ b/xlsx2proto/templ/agc.templ deleted file mode 100644 index df313db..0000000 --- a/xlsx2proto/templ/agc.templ +++ /dev/null @@ -1,163 +0,0 @@ -{{define "agc"}} -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package main -import ( - "encoding/json" - "fmt" - "os" - "runtime" - "strconv" - "strings" - - "github.com/tealeg/xlsx" - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var _ = strings.Split - -{{ $a := .data }}{{ range $a }}{{ $elem := . }} -func AgcConvert{{ $elem.ProtoName }}(fi,fo string) { - xlsxFile, err := xlsx.OpenFile(fi) - if err != nil { - fmt.Println("excel file open error:", err, "filename:", fi) - return - } - - if err := recover(); err != nil { - fmt.Println(" panic,error=", err) - var buf [4096]byte - lens := runtime.Stack(buf[:], false) - fmt.Println("stack--->", string(buf[:lens])) - } - for _, sheet := range xlsxFile.Sheets { - arr:=&server.{{$elem.ProtoName}}Array{ - Arr:make([]*server.{{$elem.ProtoName}}, 0, len(sheet.Rows)), - } - - for i, row := range sheet.Rows { - if i <= 1 { - continue - } - - if len(row.Cells) == 0 { - break - } - - temp := int64(0) - var arrInt []int32 - var arrInt64 []int64 - var arrStr []string - var _ = arrInt - var _ = arrStr - var _ = arrInt64 - - temp, _ = strconv.ParseInt(row.Cells[0].String(), 10, 32) - data := &server.{{$elem.ProtoName}}{} - - for { - {{ range $index, $col := $elem.Cols }} - if len(row.Cells)<{{$col.ColIndex}}+1{ - break - } - {{if eq $col.ColType 1 }} - temp, _ = strconv.ParseInt(row.Cells[{{$col.ColIndex}}].String(), 10, 32) - data.{{$col.ColName}} = int32(temp) - {{end}} - {{if eq $col.ColType 5 }} - temp, _ = strconv.ParseInt(row.Cells[{{$col.ColIndex}}].String(), 10, 64) - data.{{$col.ColName}} = int64(temp) - {{end}} - {{if eq $col.ColType 2 }} - data.{{$col.ColName}} = row.Cells[{{$col.ColIndex}}].String() - {{end}} - {{if eq $col.ColType 3 }} - arrStr = strings.Split(row.Cells[{{$col.ColIndex}}].String(), "|") - arrInt = nil - if len(arrStr) > 0 && row.Cells[{{$col.ColIndex}}].String() != "" { - arrInt = make([]int32, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 32) - arrInt[i] = int32(temp) - } - } - data.{{$col.ColName}} = arrInt - {{end}} - {{if eq $col.ColType 4 }} - if row.Cells[{{$col.ColIndex}}].String() != "" { - arrStr = strings.Split(row.Cells[{{$col.ColIndex}}].String(), "|") - data.{{$col.ColName}} = arrStr - } - {{end}} - {{if eq $col.ColType 6 }} - arrStr = strings.Split(row.Cells[{{$col.ColIndex}}].String(), "|") - arrInt64 = nil - if len(arrStr) > 0 && row.Cells[{{$col.ColIndex}}].String() != "" { - arrInt64 = make([]int64, len(arrStr), len(arrStr)) - for i, v := range arrStr { - temp, _ = strconv.ParseInt(strings.TrimSpace(v), 10, 64) - arrInt64[i] = int64(temp) - } - } - data.{{$col.ColName}} = arrInt64 - {{end}} - {{if eq $col.ColType 7 }} - if row.Cells[{{$col.ColIndex}}].String() != ""{ - pairs := strings.Split(row.Cells[{{$col.ColIndex}}].String(), ";") - resultMap := make(map[int64]int64) - for _, pair := range pairs { - kv := strings.Split(pair, ",") - key, err := strconv.ParseInt(kv[0], 10, 64) - if err != nil { - // 错误处理 - fmt.Println("无法转换为int64:", kv[0]) - continue - } - value, err := strconv.ParseInt(kv[1], 10, 64) - if err != nil { - // 错误处理 - fmt.Println("无法转换为int64:", kv[1]) - continue - } - resultMap[key] = value - } - data.{{$col.ColName}} = resultMap - } - {{end}} - {{end}} - - break - } - arr.Arr = append(arr.Arr, data) - } - - byteData, err := proto.Marshal(arr) - if err == nil{ - err := os.WriteFile(fo, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - - byteData, err = json.MarshalIndent(arr, "", "\t") - if err == nil { - foJson := strings.Replace(fo, ".dat", ".json", -1) - err := os.WriteFile(foJson, byteData, os.ModePerm) - if err != nil { - fmt.Println(err) - } - } - break //only fetch first sheet - } -} - {{end}} - -func main(){ -{{ $a := .data }}{{ $opath := .opath }}{{ range $a }}{{ $elem := . }} - AgcConvert{{$elem.ProtoName}}(`{{$elem.AbsPath}}`,`{{$opath}}\{{$elem.ProtoName}}.dat`) -{{end}} -} -{{end}} \ No newline at end of file diff --git a/xlsx2proto/templ/gpb.templ b/xlsx2proto/templ/gpb.templ deleted file mode 100644 index ef0c0f0..0000000 --- a/xlsx2proto/templ/gpb.templ +++ /dev/null @@ -1,22 +0,0 @@ -{{define "gpb"}} -// Code generated by xlsx2proto. -// DO NOT EDIT! -syntax = "proto3"; -package server; -option go_package = ".;server"; -{{ $a := . }}{{ range $a }}{{ $elem := . }} -message {{$elem.ProtoName}} { -{{ range $index, $col := $elem.Cols }}{{if $col.IsArray }} - repeated {{$col.CTString}} {{$col.ColName}} = {{ inc $index }}; -{{else if $col.IsMap }} - map<{{"int64"}}, {{"int64"}}> {{$col.ColName}} = {{ inc $index }}; -{{else}} - {{$col.CTString}} {{$col.ColName}} = {{ inc $index }}; -{{end}}{{end}} -} - -message {{$elem.ProtoName}}Array { - repeated {{$elem.ProtoName}} Arr = 1; -} -{{end}} -{{end}} diff --git a/xlsx2proto/templ/gpb_mgr.templ b/xlsx2proto/templ/gpb_mgr.templ deleted file mode 100644 index 689df48..0000000 --- a/xlsx2proto/templ/gpb_mgr.templ +++ /dev/null @@ -1,70 +0,0 @@ -{{define "gpb_mgr"}} -// Code generated by xlsx2proto. -// DO NOT EDIT! - -package code - -import ( - "google.golang.org/protobuf/proto" - - "mongo.games.com/public/protocol/server" -) - -var PB{{.ProtoName}}Mgr = &{{.ProtoName}}Mgr{pool: make(map[int32]*server.{{.ProtoName}}), Datas: &server.{{.ProtoName}}Array{}} - -type {{.ProtoName}}Mgr struct { - Datas *server.{{.ProtoName}}Array - pool map[int32]*server.{{.ProtoName}} -} - -func (this *{{.ProtoName}}Mgr) unmarshal(data []byte) error { - err := proto.Unmarshal(data, this.Datas) - if err == nil { - this.arrangeData() - } - return err -} - -func (this *{{.ProtoName}}Mgr) reunmarshal(data []byte) error { - newDatas := &server.{{.ProtoName}}Array{} - err := proto.Unmarshal(data, newDatas) - if err == nil { - for _, item := range newDatas.Arr { - existItem := this.GetData(item.GetId()) - if existItem == nil { - this.pool[item.GetId()] = item - this.Datas.Arr = append(this.Datas.Arr, item) - } else { - *existItem = *item - } - } - } - return err -} - -func (this *{{.ProtoName}}Mgr) arrangeData() { - if this.Datas == nil { - return - } - - dataArr := this.Datas.GetArr() - if dataArr == nil { - return - } - - for _, data := range dataArr { - this.pool[data.GetId()] = data - } -} - -func (this *{{.ProtoName}}Mgr) GetData(id int32) *server.{{.ProtoName}} { - if data, ok := this.pool[id]; ok { - return data - } - return nil -} - -func init() { - DataMgr.RegisteLoader("{{.ProtoName}}.dat", &ProtobufDataLoader{dh: PB{{.ProtoName}}Mgr}) -} -{{end}} \ No newline at end of file diff --git a/xlsx2proto/xlsx2proto.exe b/xlsx2proto/xlsx2proto.exe deleted file mode 100644 index 6c1e89e..0000000 Binary files a/xlsx2proto/xlsx2proto.exe and /dev/null differ diff --git a/xlsx2proto/xlsx2proto.go b/xlsx2proto/xlsx2proto.go deleted file mode 100644 index b6a4b00..0000000 --- a/xlsx2proto/xlsx2proto.go +++ /dev/null @@ -1,224 +0,0 @@ -package main - -import ( - "bytes" - "fmt" - "os" - "path/filepath" - "strings" - "text/template" - - "github.com/tealeg/xlsx" -) - -var XlsxFiles = make(map[string]string) -var templates *template.Template - -type SheetColumnMetaStruct struct { - ColIndex int - ColName string - ColType int - CTString string - IsArray bool - IsMap bool -} - -type SheetMetaStruct struct { - AbsPath string - FileName string - ProtoName string - Cols []*SheetColumnMetaStruct -} - -const ( - INTTYPE string = "(int)" - INT64TYPE string = "(int64)" - STRTYPE = "(str)" - ARRINTTYPE = "(arrint)" - ARRINT64TYPE = "(arrint64)" - ARRSTRTYPE = "(arrstr)" - INTTYPE_PROTO = "int32" - INT64TYPE_PROTO = "int64" - STRTYPE_PROTO = "string" - MAPTYPE string = "(map)" - MAP_PROTO = "map" -) - -func Init() { - var err error - wd, err := os.Getwd() - if err != nil { - return - } - - protoAbsPath := filepath.Join(wd, "..", "protocol") - err = os.MkdirAll(protoAbsPath, os.ModePerm) - if err != nil { - return - } - - xlsxAbsPath := filepath.Join(wd, "..", "xlsx") - var fis []os.DirEntry - fis, err = os.ReadDir(xlsxAbsPath) - if err != nil { - return - } - - srvDataAbsPath := filepath.Join(wd, "..", "code") - err = os.MkdirAll(srvDataAbsPath, os.ModePerm) - if err != nil { - return - } - - for _, v := range fis { - if !v.IsDir() { - if !strings.HasSuffix(v.Name(), ".xlsx") { - continue - } - - pfAbs := filepath.Join(xlsxAbsPath, v.Name()) - XlsxFiles[v.Name()] = pfAbs - } - } - - pattern := filepath.Join(wd, "templ", "*.templ") - funcMap := template.FuncMap{ - "inc": func(n int) int { - n++ - return n - }, - } - //fmt.Println("templ目录:", pattern) - templates, err = template.Must(template.New("mytempl").Funcs(funcMap).ParseGlob(pattern)).Parse("") -} - -func main() { - Init() - - smsMap := make(map[string]*SheetMetaStruct) - for xlsxFileName, xlsxFilePath := range XlsxFiles { - xlsxFile, err := xlsx.OpenFile(xlsxFilePath) - if err != nil { - fmt.Println("excel file open error:", err, " filePath:", xlsxFilePath) - continue - } - - for _, sheet := range xlsxFile.Sheets { - sms := &SheetMetaStruct{ - AbsPath: xlsxFilePath, - FileName: xlsxFileName, - ProtoName: strings.TrimSuffix(xlsxFileName, ".xlsx"), - Cols: make([]*SheetColumnMetaStruct, 0, sheet.MaxCol)} - - for _, row := range sheet.Rows { - for i, cell := range row.Cells { - s := cell.String() - if strings.HasSuffix(s, INTTYPE) { - sms.Cols = append(sms.Cols, &SheetColumnMetaStruct{i, strings.TrimSuffix(s, INTTYPE), 1, INTTYPE_PROTO, false, false}) - } else if strings.HasSuffix(s, STRTYPE) { - sms.Cols = append(sms.Cols, &SheetColumnMetaStruct{i, strings.TrimSuffix(s, STRTYPE), 2, STRTYPE_PROTO, false, false}) - } else if strings.HasSuffix(s, ARRINTTYPE) { - sms.Cols = append(sms.Cols, &SheetColumnMetaStruct{i, strings.TrimSuffix(s, ARRINTTYPE), 3, INTTYPE_PROTO, true, false}) - } else if strings.HasSuffix(s, ARRSTRTYPE) { - sms.Cols = append(sms.Cols, &SheetColumnMetaStruct{i, strings.TrimSuffix(s, ARRSTRTYPE), 4, STRTYPE_PROTO, true, false}) - } else if strings.HasSuffix(s, INT64TYPE) { - sms.Cols = append(sms.Cols, &SheetColumnMetaStruct{i, strings.TrimSuffix(s, INT64TYPE), 5, INT64TYPE_PROTO, false, false}) - } else if strings.HasSuffix(s, ARRINT64TYPE) { - sms.Cols = append(sms.Cols, &SheetColumnMetaStruct{i, strings.TrimSuffix(s, ARRINT64TYPE), 6, INT64TYPE_PROTO, true, false}) - } else if strings.HasSuffix(s, MAPTYPE) { - sms.Cols = append(sms.Cols, &SheetColumnMetaStruct{i, strings.TrimSuffix(s, MAPTYPE), 7, MAP_PROTO, false, true}) - } - } - break //only fetch first row - } - - smsMap[sms.ProtoName] = sms - break //only fetch first sheet - } - } - - geneProto(smsMap) -} - -func geneProto(xlsxs map[string]*SheetMetaStruct) { - if xlsxs == nil { - return - } - - geneAgcHelper(xlsxs) //生成go代码 xlsx转二进制文件(.json,.dat) - geneDataStructProto(xlsxs) //生成xlsx转protobuf结构文件(pbdata.proto) - - for _, val := range xlsxs { - genGoDataMgr(val) // 生成Go对象文件 - } -} - -// geneAgcHelper 生成go代码,读取xlsx数据 -func geneAgcHelper(xlsxs map[string]*SheetMetaStruct) { - dm := map[string]interface{}{ - "data": xlsxs, - "opath": filepath.Join("..", "data"), - "isMapCol": isMapColumn(xlsxs), - } - outputHelper := bytes.NewBuffer(nil) - err := templates.ExecuteTemplate(outputHelper, "agc", dm) - if err != nil { - fmt.Println("geneProto ExecuteTemplate error:", err) - return - } - - helperGoFile := filepath.Join("..", "xlsx2binary", "agc.go") - err = os.WriteFile(helperGoFile, outputHelper.Bytes(), os.ModePerm) - if err != nil { - fmt.Println("geneProto WriteFile error:", err) - return - } -} - -// geneDataStructProto 生成xlsx的proto文件 -func geneDataStructProto(xlsxs map[string]*SheetMetaStruct) { - - outputHelper := bytes.NewBuffer(nil) - err := templates.ExecuteTemplate(outputHelper, "gpb", xlsxs) - if err != nil { - fmt.Println("geneDataStructProto ExecuteTemplate error:", err) - return - } - - protoFile := "../protocol/server/pbdata.proto" - err = os.WriteFile(protoFile, outputHelper.Bytes(), os.ModePerm) - if err != nil { - fmt.Println("geneDataStructProto error:", err) - } -} - -// genGoDataMgr 生成go代码,读取.dat文件数据 -func genGoDataMgr(sms *SheetMetaStruct) { - if sms == nil { - return - } - - outputHelper := bytes.NewBuffer(nil) - err := templates.ExecuteTemplate(outputHelper, "gpb_mgr", sms) - if err != nil { - fmt.Println("genGoDataMgr ExecuteTemplate error:", err) - return - } - opath := filepath.Join("../code", strings.ToLower(fmt.Sprintf("%v.go", sms.ProtoName))) - err = os.WriteFile(opath, outputHelper.Bytes(), os.ModePerm) - if err != nil { - fmt.Println("genGoDataMgr WriteFile error:", err) - return - } -} - -func isMapColumn(xlsxs map[string]*SheetMetaStruct) bool { - for _, sheet := range xlsxs { - for _, col := range sheet.Cols { - if col.IsMap { - return true - } - } - } - return false -}