Capture current mission, AI, map and administration development
Include the current addon, terrain integrations, tools, regression tests and recorded development evidence.
This commit is contained in:
@@ -7,8 +7,8 @@ P=BASE/'addons/core/Scripts/Game/ERR/00_Core/ERR_Settings.c'
|
||||
keys=body(P,'static array<string> Keys(').replace('array<string>','std::vector<string>')
|
||||
valid='\n'.join(body(P,sig) for sig in ('static bool Valid(', 'static bool Randomizable(', 'static bool ValidSelection('))
|
||||
default=body(P,'static int AddedDefault(')
|
||||
read=body(P,'protected bool Read(').replace('protected ','').replace('out map<string, int> values','Map*& values').replace('new map<string, int>()','new Map()')
|
||||
read=read.replace('JsonLoadContext json','JsonLoadContext* json').replace('json.','json->').replace('values.','values->').replace('foreach (string key : Keys())','for (string key : Keys())').replace('Math.Round','std::round')
|
||||
read=(body(P,'protected bool Read(')+'\n'+body(P,'static bool Parse(')).replace('protected ','').replace('out map<string, int> values','Map*& values').replace('new map<string, int>()','new Map()')
|
||||
read=read.replace('JsonLoadContext json','JsonLoadContext* json').replace('json.','json->').replace('values.','values->').replace('foreach (string key : Keys())','for (string key : Keys())').replace('Math.Round','std::round').replace('ERR_ProfileConfig.Load(path, json)', 'json->LoadFromFile(path)')
|
||||
run(r'''
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
|
||||
Reference in New Issue
Block a user