ssc/stdlib/system.sun

117 lines
2.7 KiB
Text
Raw Normal View History

2015-12-13 02:51:32 +09:00
/* ================================================= *\
* system.sun
*
* ssc standard include utility
2016-01-30 07:07:55 +09:00
* 2015-2016 arookas
2015-12-13 02:51:32 +09:00
\* ================================================= */
2016-01-30 07:08:55 +09:00
// ================================================= \\
// FLAGS
// ================================================= \\
// known flags here
2016-02-23 11:38:55 +09:00
var const SYSF_SHINEGET = 0x10000; // add shine num to this
2016-02-01 04:29:41 +09:00
2016-02-23 11:38:55 +09:00
var const SYSF_MARIOLIVES = 0x20001;
2016-02-23 11:38:55 +09:00
var const SYSF_SHINENUM = 0x40000;
var const SYSF_BLUECOINNUM = 0x40001;
var const SYSF_GOLDCOINNUM = 0x40002;
2015-12-13 02:51:32 +09:00
builtin getSystemFlag(flag);
builtin setSystemFlag(flag, value);
2016-02-23 11:05:02 +09:00
function setOnSystemFlag(flag) { setSystemFlag(flag, true); }
function setOffSystemFlag(flag) { setSystemFlag(flag, false); }
2016-01-30 07:11:09 +09:00
2016-01-30 07:12:08 +09:00
// [arookas] custom utility
function incSystemFlag(flag) {
setSystemFlag(flag, getSystemFlag(flag) + 1);
}
function decSystemFlag(flag) {
setSystemFlag(flag, getSystemFlag(flag) - 1);
}
2016-01-30 07:11:09 +09:00
// ================================================= \\
// POLLUTION
// ================================================= \\
builtin isGraffitoCoverage0();
builtin getPollutionLevel();
builtin setGraffitoMultiplied(a);
builtin setPollutionIncreaseCount(count);
// ================================================= \\
// EVENT
// ================================================= \\
builtin setEventForWaterMelon(a);
builtin setEventID(a, b);
builtin isMapEventFinishedAll(a);
// ================================================= \\
// DEMO
// ================================================= \\
builtin isDemoMode();
builtin fireStartDemoCamera(a);
builtin launchEventClearDemo();
// noki bay
builtin startMareBottleDemo();
builtin isFinishMareBottleDemo();
function waitForFinishDemo() {
while (!isDemoMode()) {
2016-01-30 07:11:09 +09:00
yield;
}
while (isDemoMode()) {
2016-01-30 07:11:09 +09:00
yield;
}
}
// ================================================= \\
// TIME
// ================================================= \\
builtin setTimeLimit(limit);
builtin setAttentionTime(time);
builtin getTime();
builtin getRestTime();
builtin insertTimer(a, b);
builtin startTimer();
builtin stopTimer();
// ================================================= \\
// MISCELLANEOUS
// ================================================= \\
builtin invalidatePad(num);
builtin isGameModeNormal();
builtin isBossDefeated();
builtin registerMovie(movie);
// appear
builtin appearReadyGo();
builtin startAppearJetBalloon(a, b);
// nozzle
builtin changeNozzle(nozzle);
builtin changeSunglass(sunglass);
builtin putNozzle(nozzle);
// death
builtin startMiss();
builtin gameOver();
// fruit
builtin eggYoshiStartFruit(a);
builtin getFruitNum(a, b);
builtin setFruitType(a, b, c);
builtin resetFruitNum(fruit);