syntax = "proto3";
option optimize_for = LITE_RUNTIME;

//采用index+truck形式
message LevelsIndex {
     map<string, t_offeset_len> LevelsIndex = 1;
}

message t_offeset_len {
     int32 offset =1;
     int32 len = 2;
}

message LevelData {
     repeated t_tile tiles = 1;
     repeated t_stack stacks = 2;
     optional int32 tileWidth = 3;
     optional int32 tileHeight = 4;
}

message t_tile {
     optional int32 x = 1;
     optional int32 y = 2;
     optional int32 z = 3;
     optional t_tile_data tileData = 4;
}

message t_tile_data {
     optional int32 type = 1;
     optional int32 subtype = 2;
     optional int32 id = 3;
     optional int32 zv = 4;
     optional int32 weight = 5;
}

message t_stack {
     repeated t_tile_data tileDatas = 1;
     optional int32 x = 2;
     optional int32 y = 3;
     optional int32 direction = 4;
     optional int32 depth = 5;
}

