Skip to content

Commit

Permalink
Send building items with buildings.
Browse files Browse the repository at this point in the history
  • Loading branch information
RosaryMala committed Mar 25, 2017
1 parent aea76b7 commit 5ea964b
Show file tree
Hide file tree
Showing 5 changed files with 554 additions and 521 deletions.
7 changes: 7 additions & 0 deletions plugins/proto/RemoteFortressReader.proto
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ message BuildingExtents
repeated int32 extents = 5;
}

message BuildingItem
{
optional Item item = 1;
optional int32 mode = 2;
}

message BuildingInstance
{
required int32 index = 1;
Expand All @@ -165,6 +171,7 @@ message BuildingInstance
optional bool is_room = 11;
optional BuildingExtents room = 12;
optional BuildingDirection direction = 13; //Doesn't mean anything for most buildings
repeated BuildingItem items = 14;
}

message RiverEdge
Expand Down
3 changes: 2 additions & 1 deletion plugins/remotefortressreader/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ PROJECT (remotefortressreader)
# A list of source files
SET(PROJECT_SRCS
remotefortressreader.cpp
building_reader.cpp
)
# A list of headers
SET(PROJECT_HDRS

building_reader.h
)
#proto files to include.
SET(PROJECT_PROTO
Expand Down
Loading

0 comments on commit 5ea964b

Please sign in to comment.