wildfire chat server source initial submit
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
Copyright (c) 2016, Mapbox
|
||||
All rights reserved.
|
||||
|
||||
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 pbf 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 HOLDER 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.
|
||||
BIN
Binary file not shown.
+113
@@ -0,0 +1,113 @@
|
||||
import * as $protobuf from "../../..";
|
||||
export namespace vector_tile {
|
||||
|
||||
interface ITile {
|
||||
layers?: (vector_tile.Tile.ILayer[]|null);
|
||||
}
|
||||
|
||||
class Tile implements ITile {
|
||||
constructor(properties?: vector_tile.ITile);
|
||||
public layers: vector_tile.Tile.ILayer[];
|
||||
public static create(properties?: vector_tile.ITile): vector_tile.Tile;
|
||||
public static encode(message: vector_tile.ITile, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static encodeDelimited(message: vector_tile.ITile, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vector_tile.Tile;
|
||||
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vector_tile.Tile;
|
||||
public static verify(message: { [k: string]: any }): (string|null);
|
||||
public static fromObject(object: { [k: string]: any }): vector_tile.Tile;
|
||||
public static toObject(message: vector_tile.Tile, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
}
|
||||
|
||||
namespace Tile {
|
||||
|
||||
enum GeomType {
|
||||
UNKNOWN = 0,
|
||||
POINT = 1,
|
||||
LINESTRING = 2,
|
||||
POLYGON = 3
|
||||
}
|
||||
|
||||
interface IValue {
|
||||
stringValue?: (string|null);
|
||||
floatValue?: (number|null);
|
||||
doubleValue?: (number|null);
|
||||
intValue?: (number|Long|null);
|
||||
uintValue?: (number|Long|null);
|
||||
sintValue?: (number|Long|null);
|
||||
boolValue?: (boolean|null);
|
||||
}
|
||||
|
||||
class Value implements IValue {
|
||||
constructor(properties?: vector_tile.Tile.IValue);
|
||||
public stringValue: string;
|
||||
public floatValue: number;
|
||||
public doubleValue: number;
|
||||
public intValue: (number|Long);
|
||||
public uintValue: (number|Long);
|
||||
public sintValue: (number|Long);
|
||||
public boolValue: boolean;
|
||||
public static create(properties?: vector_tile.Tile.IValue): vector_tile.Tile.Value;
|
||||
public static encode(message: vector_tile.Tile.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static encodeDelimited(message: vector_tile.Tile.IValue, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vector_tile.Tile.Value;
|
||||
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vector_tile.Tile.Value;
|
||||
public static verify(message: { [k: string]: any }): (string|null);
|
||||
public static fromObject(object: { [k: string]: any }): vector_tile.Tile.Value;
|
||||
public static toObject(message: vector_tile.Tile.Value, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
}
|
||||
|
||||
interface IFeature {
|
||||
id?: (number|Long|null);
|
||||
tags?: (number[]|null);
|
||||
type?: (vector_tile.Tile.GeomType|null);
|
||||
geometry?: (number[]|null);
|
||||
}
|
||||
|
||||
class Feature implements IFeature {
|
||||
constructor(properties?: vector_tile.Tile.IFeature);
|
||||
public id: (number|Long);
|
||||
public tags: number[];
|
||||
public type: vector_tile.Tile.GeomType;
|
||||
public geometry: number[];
|
||||
public static create(properties?: vector_tile.Tile.IFeature): vector_tile.Tile.Feature;
|
||||
public static encode(message: vector_tile.Tile.IFeature, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static encodeDelimited(message: vector_tile.Tile.IFeature, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vector_tile.Tile.Feature;
|
||||
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vector_tile.Tile.Feature;
|
||||
public static verify(message: { [k: string]: any }): (string|null);
|
||||
public static fromObject(object: { [k: string]: any }): vector_tile.Tile.Feature;
|
||||
public static toObject(message: vector_tile.Tile.Feature, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
}
|
||||
|
||||
interface ILayer {
|
||||
version: number;
|
||||
name: string;
|
||||
features?: (vector_tile.Tile.IFeature[]|null);
|
||||
keys?: (string[]|null);
|
||||
values?: (vector_tile.Tile.IValue[]|null);
|
||||
extent?: (number|null);
|
||||
}
|
||||
|
||||
class Layer implements ILayer {
|
||||
constructor(properties?: vector_tile.Tile.ILayer);
|
||||
public version: number;
|
||||
public name: string;
|
||||
public features: vector_tile.Tile.IFeature[];
|
||||
public keys: string[];
|
||||
public values: vector_tile.Tile.IValue[];
|
||||
public extent: number;
|
||||
public static create(properties?: vector_tile.Tile.ILayer): vector_tile.Tile.Layer;
|
||||
public static encode(message: vector_tile.Tile.ILayer, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static encodeDelimited(message: vector_tile.Tile.ILayer, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): vector_tile.Tile.Layer;
|
||||
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): vector_tile.Tile.Layer;
|
||||
public static verify(message: { [k: string]: any }): (string|null);
|
||||
public static fromObject(object: { [k: string]: any }): vector_tile.Tile.Layer;
|
||||
public static toObject(message: vector_tile.Tile.Layer, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
public toJSON(): { [k: string]: any };
|
||||
}
|
||||
}
|
||||
}
|
||||
+1311
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,49 @@
|
||||
syntax = "proto2";
|
||||
|
||||
package vector_tile;
|
||||
|
||||
message Tile {
|
||||
|
||||
enum GeomType {
|
||||
|
||||
UNKNOWN = 0;
|
||||
POINT = 1;
|
||||
LINESTRING = 2;
|
||||
POLYGON = 3;
|
||||
}
|
||||
|
||||
message Value {
|
||||
|
||||
optional string string_value = 1;
|
||||
optional float float_value = 2;
|
||||
optional double double_value = 3;
|
||||
optional int64 int_value = 4;
|
||||
optional uint64 uint_value = 5;
|
||||
optional sint64 sint_value = 6;
|
||||
optional bool bool_value = 7;
|
||||
extensions 8 to max;
|
||||
}
|
||||
|
||||
message Feature {
|
||||
|
||||
optional uint64 id = 1 [ default = 0 ];
|
||||
repeated uint32 tags = 2 [ packed = true ];
|
||||
optional GeomType type = 3 [ default = UNKNOWN ];
|
||||
repeated uint32 geometry = 4 [ packed = true ];
|
||||
}
|
||||
|
||||
message Layer {
|
||||
|
||||
required uint32 version = 15 [ default = 1 ];
|
||||
required string name = 1;
|
||||
repeated Feature features = 2;
|
||||
repeated string keys = 3;
|
||||
repeated Value values = 4;
|
||||
optional uint32 extent = 5 [ default = 4096 ];
|
||||
extensions 16 to max;
|
||||
}
|
||||
|
||||
repeated Layer layers = 3;
|
||||
|
||||
extensions 16 to 8191;
|
||||
}
|
||||
Reference in New Issue
Block a user