mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
DANIEL: Leaderboard cleanup
This commit is contained in:
parent
4cda455edc
commit
1752544d9e
2 changed files with 2 additions and 33 deletions
32
dependencies/astron/dclass/stride.dc
vendored
32
dependencies/astron/dclass/stride.dc
vendored
|
@ -179,38 +179,6 @@ dclass FriendManager : DistributedObject {
|
|||
inviteeCancelFriendQuery(int32);
|
||||
};
|
||||
|
||||
struct leaderBoardRecordResponces {
|
||||
char found;
|
||||
uint32 id;
|
||||
string text;
|
||||
int32 value;
|
||||
};
|
||||
|
||||
struct leaderBoardRecord {
|
||||
uint32 id;
|
||||
string text;
|
||||
int32 value;
|
||||
};
|
||||
|
||||
dclass LeaderBoardReceiver {
|
||||
getTopTenResponce(string, leaderBoardRecord []);
|
||||
getValuesResponce(string, leaderBoardRecordResponces []);
|
||||
};
|
||||
|
||||
dclass LeaderBoard : LeaderBoardReceiver {
|
||||
setValue(string [], uint32, string, int32);
|
||||
alterValue(string [], uint32, string, int32);
|
||||
setHighScore(string [], uint32, string, int32);
|
||||
getValues(string, uint32 []);
|
||||
getTopTen(string);
|
||||
getValuesRespondTo(string, uint32 [], uint32);
|
||||
getTopTenRespondTo(string, uint32);
|
||||
};
|
||||
|
||||
dclass CallbackObject {
|
||||
callback(uint32, bool, uint8);
|
||||
};
|
||||
|
||||
from direct.distributed import DistributedObjectGlobal
|
||||
from toontown.building import DistributedAnimatedProp/AI
|
||||
from toontown.toon import DistributedToon/AI/UD
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
from otp.ai.MagicWordGlobal import *
|
||||
from toontown.toonbase import TTLocalizer
|
||||
import RaceGlobals, operator, time
|
||||
|
||||
class LeaderboardMgrAI:
|
||||
|
@ -23,7 +24,7 @@ class LeaderboardMgrAI:
|
|||
self.saveDatabase()
|
||||
|
||||
def submitRace(self, raceId, name, timestamp):
|
||||
for i in xrange(3):
|
||||
for i in xrange(len(TTLocalizer.RecordPeriodStrings)):
|
||||
race = '%s, %s' % (raceId, i)
|
||||
|
||||
if race in self.database:
|
||||
|
|
Loading…
Reference in a new issue