Open source Star Ruler 2 source code!

This commit is contained in:
Lucas de Vries
2018-07-17 14:15:37 +02:00
commit cc307720ff
4342 changed files with 2365070 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
void setCheatsEnabled(bool enabled) -> server::cheats::setCheatsEnabled
bool getCheatsEnabled() -> local server::cheats::getCheatsEnabled
void cheatsEnabled(bool enabled) -> shadow::cheats::serverCheatsEnabled
void cheatSeeAll(bool enabled) -> server::cheats::cheatSeeAll
void cheatColonize(bool enabled) -> server::cheats::cheatColonize
void cheatSpawnFlagship(Object@ spawnAt, const Design@ design, Empire@ owner) -> server::cheats::cheatSpawnFlagship
void cheatSpawnFlagship(vec3d spawnAt, const Design@ design, Empire@ owner) -> server::cheats::cheatSpawnFlagship
void cheatSpawnSupports(Object@ spawnAt, const Design@ design, uint count) -> server::cheats::cheatSpawnSupports
void cheatSpawnSupports(vec3d, const Design@ design, uint count, Empire@ owner) -> server::cheats::cheatSpawnSupports
void cheatSpawnOrbital(vec3d spawnAt, uint orbitalType, Empire@ owner) -> server::cheats::cheatSpawnOrbital
void cheatActivateAI() -> server::cheats::cheatActivateAI
void cheatInfluence(int amount) -> server::cheats::cheatInfluence
void cheatResearch(double amount) -> server::cheats::cheatResearch
void cheatMoney(int amount) -> server::cheats::cheatMoney
void cheatLabor(Object@ obj, double amount) -> server::cheats::cheatLabor
void cheatFTL(int amount) -> server::cheats::cheatFTL
void cheatEnergy(int amount) -> server::cheats::cheatEnergy
void cheatChangeOwner(Object@ obj, Empire@ newOwner) -> server::cheats::cheatChangeOwner
void cheatDestroy(Object@ obj) -> server::cheats::cheatDestroy
void cheatDebugAI(Empire@ emp) -> server::cheats::cheatDebugAI
void cheatCommandAI(Empire@ emp, string cmd) -> server::cheats::cheatCommandAI
void cheatAlliance(Empire& from, Empire& to) -> server::cheats::cheatAlliance
void cheatTrigger(Object@ obj, Empire@ emp, string cmd) -> server::cheats::cheatTrigger
+16
View File
@@ -0,0 +1,16 @@
void playAsEmpire(Empire@ emp) -> server::empire::playAsEmpire
void allowPlayEmpire(Empire@ emp) -> shadow::empire::allowPlayEmpire
void playingEmpire(Empire@ emp) -> client::tabs.GalaxyTab::playingEmpire
void declareWar(Empire& onEmpire) -> server::warandpeace::declareWar
bool isForcedPeace(Empire& from, Empire& to) -> local server::warandpeace::isForcedPeace
void sendPeaceOffer(Empire& toEmpire) -> server::influence_global::sendPeaceOffer_client
uint getMajorEmpireCount() -> local server::empire::getMajorEmpireCount
void mpChat(string text, uint empMask = 0xffffffff, string spec = "") -> server::empire::chatMessage
void recvMPChat(string text) -> client::multiplayer::chatMessage
void markDesignObsolete(const Design@ dsg, bool value = true) -> server::empire::markDesignObsolete
bool hasGameEnded() -> local server::victory::hasGameEnded_client
void serverEndGame() -> shadow::victory::serverGameEnd
+3
View File
@@ -0,0 +1,3 @@
void removeGfxEffect(int64 id) -> client::gfxeffects::removeGfxEffect
void makeBeamEffect(int64 id, Object@ from, Object@ to, uint color, double width, string material = "", double timer = -1.0) -> client::gfxeffects::makeBeamEffect
void makePersistentParticles(int64 id, Object@ from, string particleName, double size = 1.0, double timer = -1.0) -> client::gfxeffects::makePersistentParticles
+28
View File
@@ -0,0 +1,28 @@
Empire@ getSenateLeader() -> local server::influence_global::getSenateLeader
StackInfluenceCard@[] getInfluenceCardStack() -> local server::influence_global::getInfluenceCardStack
void buyCardFromInfluenceStack(int id) -> server::influence_global::buyCardFromInfluenceStack
void playInfluenceCard(int id, Targets@ targets, uint voteId = uint(-1)) -> server::influence_global::playInfluenceCard
double getInfluenceDrawInterval() -> local server::influence_global::getInfluenceDrawInterval
double getInfluenceDrawTimer() -> local server::influence_global::getInfluenceDrawTimer
InfluenceVote@[] getActiveInfluenceVotes() -> local server::influence_global::getActiveInfluenceVotes_client
InfluenceVote@[] getInfluenceVoteByID(uint id) -> local server::influence_global::getInfluenceVoteByID_client
InfluenceVote@[] getInfluenceVoteHistory(uint limit, int befoerId = -1, bool reverse = true) -> local server::influence_global::getInfluenceVoteHistory_client
void leaveInfluenceVote(uint id) -> server::influence_global::leaveVote_client
void makeInfluenceVoteOffer(uint id, InfluenceVoteOffer@ offer) -> server::influence_global::makeInfluenceVoteOffer_client
void claimInfluenceVoteOffer(uint id, int offerId) -> server::influence_global::claimInfluenceVoteOffer_client
void withdrawInfluenceVote(uint id) -> server::influence_global::withdrawVote_client
void sendInfluenceVoteMessage(uint id, string message) -> server::influence_global::voteMessage_client
InfluenceEffect@[] getActiveInfluenceEffects() -> local server::influence_global::getActiveInfluenceEffects_client
void dismissInfluenceEffect(int id) -> server::influence_global::dismissEffect_client
Empire@ getInfluenceEffectOwner(int id) -> local server::influence_global::getInfluenceEffectOwner
bool canDismissInfluenceEffect(int id, Empire@ byEmp = null) -> local server::influence_global::canDismissInfluenceEffect
void objectRenamed(Object@ obj, string name, bool setNamed = true) -> shadow::influence_global::objectRenamed
void createTreaty(Treaty@ treaty) -> server::influence_global::createTreaty_client
Treaty@[] getActiveTreaties() -> local server::influence_global::getActiveInfluenceTreaties_client
void inviteToTreaty(int id, Empire@ emp) -> server::influence_global::inviteToTreaty_client
void leaveTreaty(int id) -> server::influence_global::leaveTreaty_client
void declineTreaty(int id) -> server::influence_global::declineTreaty_client
void joinTreaty(int id) -> server::influence_global::joinTreaty_client
void offerSurrender(Empire@ toEmp) -> server::influence_global::offerSurrender_client
void demandSurrender(Empire@ ofEmp) -> server::influence_global::demandSurrender_client
void makeDonation(Empire@ toEmp, DiplomacyOffer@ offer) -> server::influence_global::makeDonation_client
+3
View File
@@ -0,0 +1,3 @@
double getInvasionInterval() -> local server::Invasion.InvasionMap::getInvasionInterval
double getInvasionTimer() -> local server::Invasion.InvasionMap::getInvasionTimer
double getInvasionStrength() -> local server::Invasion.InvasionMap::getInvasionStrength
+5
View File
@@ -0,0 +1,5 @@
void changeEmpireSettings(EmpireSettings@ settings) -> menu_server::new_game::changeEmpireSettings_client
void menuChat(string text) -> menu_server::new_game::chatMessage
void recvMenuChat(string text) -> menu_client::new_game::chatMessage_client
void recvMenuJoin(string text) -> menu_client::new_game::chatJoin_client
void recvMenuLeave(string text) -> menu_client::new_game::chatLeave_client
+10
View File
@@ -0,0 +1,10 @@
void clientAchievement(string id) -> shadow::achievements::clientAchive
double getGlobalValue(uint id) -> local server::hook_globals::getGlobalValue_client
void sendPingAll(vec3d position, uint type = 0) -> server::pings::sendPingAll
void sendPingAllied(vec3d position, uint type = 0) -> server::pings::sendPingAllied
void showPing(Empire@ fromEmpire, vec3d position, uint type = 0) -> client::pings::showPing
int getUnlockTag_client(string ident) -> local server::unlock_tags::getUnlockTag_client
string getUnlockTagIdent_client(int ident) -> local server::unlock_tags::getUnlockTagIdent
int getObjectStat_client(string ident) -> local server::object_stats::getObjectStatId_client
string getObjectStatIdent_client(int ident) -> local server::object_stats::getObjectStatIdent
bool hasInvasionMap() -> local server::Invasion.InvasionMap::hasInvasionMap
View File
+8
View File
@@ -0,0 +1,8 @@
bool hasDialogue() -> local server::scenario::hasDialogue_cl
Dialogue@[] getActiveDialogue() -> local server::scenario::getActiveDialogue_cl
Objective@[] getActiveDialogueObjective() -> local server::scenario::getActiveDialogueObjective_cl
void skipDialogueObjective() -> local server::scenario::skipObjective_cl
void guiDialogueAction(string id) -> client::dialogue::DialogueRemoteAction
void guiObjectiveStart(string id, Object@ obj = null) -> client::dialogue::RemoteObjectiveStart
void guiObjectiveEnd(string id) -> client::dialogue::RemoteObjectiveEnd
void srvObjectiveComplete(string id) -> local server::dialogue::RemoteObjectiveComplete
+2
View File
@@ -0,0 +1,2 @@
void addAmbientSource(string sound, int id, vec3d pos, double scale) -> client::ambience::addAmbientSource
void removeAmbientSource(int id) -> client::ambience::removeAmbientSource
+1
View File
@@ -0,0 +1 @@
void setGameSpeed(double speed) -> server::timing::setGameSpeed
+7
View File
@@ -0,0 +1,7 @@
SystemDesc@[] getSystems() -> local server::game_start::getSystems
Region@ getRegion(vec3d point) -> local server::regions.regions::getRegion_client
void sendClientMessage(string title, string txt, uint color = 0) -> client::scenario::sendMessage
void sendClientZoom(Object@ zoomTo) -> client::tabs.GalaxyTab::sendZoom
void refreshClientSystems() -> client::navigation.systems::refreshClientSystems
bool isOutsideUniverseExtents(vec3d point, double margin = 500) -> local server::regions.regions::isOutsideUniverseExtents_client
double getPathDistance(vec3d from, vec3d to) -> local server::oddity_navigation::getPathDistance_client