Does anyone *coughWhowardcough* know the relevant source file for Archaeology?

Neirai

the Forgiven
Joined
Aug 5, 2013
Messages
1,049
Location
Canada
Hey all. I'm working on an idea for Archaeology. I'm wondering what code is already in place for the way that Artifacts are placed on maps.

Any information would be awesome.
 
Another good place to start is CvLuaPlot.cpp, and follow the following API methods into the source

Code:
	Method(GetArchaeologyArtifactType);
	Method(GetArchaeologyArtifactEra);
	Method(GetArchaeologyArtifactPlayer1);
	Method(GetArchaeologyArtifactPlayer2);
	Method(GetArchaeologyArtifactWork);
	Method(HasWrittenArtifact);

If you grab the source for my DLL and start in the same file, you'll also find

Code:
#if defined(MOD_API_LUA_EXTENSIONS)
	Method(SetArchaeologicalRecord);
	Method(AddArchaeologicalRecord);
#endif
which implement the missing "setters" for the Firaxis provided "getters"

HTH

W
 
Thanks, guys... this gave me all the info I needed.
 
Back
Top Bottom