Fix inventory layout integration and qualify ordinary UI and radio guidance
This commit is contained in:
@@ -10,7 +10,7 @@ s = s.replace('foreach (ERR_LocationComponent location : locations)', 'for (ERR_
|
||||
s = s.replace('location.', 'location->').replace('null', 'nullptr')
|
||||
s = s.replace('bool roughRadio;', 'bool roughRadio = false;') # Enforce default initialization
|
||||
s = s.replace('.IsEmpty()', '.empty()').replace('string.Format(', 'Format(')
|
||||
for scope in ('ERR_Phase', 'ERR_LocationKind', 'Math'):
|
||||
for scope in ('ERR_Phase', 'ERR_LocationKind', 'ERR_RadioFeedback', 'Math'):
|
||||
s = s.replace(scope + '.', scope + '::')
|
||||
coordinate = body(ROOT / 'addons/core/Scripts/Game/ERR/ERR_DiscoveryMap.c', 'static int Coordinate(').replace('Math.', 'Math::')
|
||||
run(r'''
|
||||
@@ -19,6 +19,7 @@ run(r'''
|
||||
#include <vector>
|
||||
#include <cmath>
|
||||
using string = std::string;
|
||||
namespace ERR_RadioFeedback {enum {INACTIVE,WAITING,TRANSMITTING,INTERRUPTED};}
|
||||
namespace ERR_Phase {enum {PREPARING,PRISON,RADIO_SEARCH,RADIO_DEFENCE,EXTRACTION,VICTORY,DEFEAT};}
|
||||
namespace ERR_LocationKind {enum {PRISON,RADIO,EXTRACTION,OUTPOST,DEPOT};}
|
||||
namespace Math {float Ceil(float v){return std::ceil(v);}float Floor(float v){return std::floor(v);}float Round(float v){return std::round(v);}}
|
||||
|
||||
Reference in New Issue
Block a user