Skip to content

Commit

Permalink
add port to lua
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnTW committed Nov 9, 2024
1 parent 9cd8807 commit 266c365
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions M2TWEOP Code/M2TWEOP library/types/settlement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,7 @@ namespace settlementHelpers
@tfield character lastGovernor
@tfield character portAdmiral
@tfield armyStruct army
@tfield portStruct port
@tfield string name internal name of settlement
@tfield string localizedName
@tfield factionStruct ownerFaction
Expand Down Expand Up @@ -1081,6 +1082,7 @@ namespace settlementHelpers
types.settlementStruct.set("governor", &settlementStruct::governor);
types.settlementStruct.set("army", &settlementStruct::army);
types.settlementStruct.set("rebelEntry", &settlementStruct::descrRebel);
types.settlementStruct.set("port", &settlementStruct::port);
types.settlementStruct.set("name", sol::property(
&settlementHelpers::getStringProperty<settlementStruct_name>, &settlementHelpers::setStringProperty<settlementStruct_name>
));
Expand Down

0 comments on commit 266c365

Please sign in to comment.