DistributedGardenAI is done

This commit is contained in:
Zach 2015-05-12 15:52:38 -05:00
parent 37fad887da
commit ab3876ff0d
3 changed files with 28 additions and 4 deletions

View file

@ -1379,6 +1379,7 @@ dclass DistributedHouseInterior : DistributedObject {
dclass DistributedGarden : DistributedObject {
sendNewProp(uint8, int16/10, int16/10, int16/10) broadcast;
setProps(uint8[]);
};
dclass DistributedParty : DistributedObject {
@ -1960,7 +1961,7 @@ dclass DistributedNPCKartClerk : DistributedNPCToonBase {
dclass DistributedNPCLaffRestock : DistributedNPCToonBase {
setMovie(uint8, uint32, uint32, uint32[], int16) broadcast ram;
restock(uint32, uint8, uint8) airecv clsend;
restock(uint32, uint16, uint16) airecv clsend;
transactionDone() airecv clsend;
};

View file

@ -2,7 +2,7 @@
from pandac.PandaModules import *
hashVal = 2639844855L
hashVal = 2416643
from toontown.coghq import DistributedCashbotBossSafe, DistributedCashbotBossCrane, DistributedBattleFactory, DistributedCashbotBossTreasure, DistributedCogHQDoor, DistributedSellbotHQDoor, DistributedFactoryElevatorExt, DistributedMintElevatorExt, DistributedLawOfficeElevatorExt, DistributedLawOfficeElevatorInt, LobbyManager, DistributedMegaCorp, DistributedFactory, DistributedLawOffice, DistributedLawOfficeFloor, DistributedLift, DistributedDoorEntity, DistributedSwitch, DistributedButton, DistributedTrigger, DistributedCrushableEntity, DistributedCrusherEntity, DistributedStomper, DistributedStomperPair, DistributedLaserField, DistributedGolfGreenGame, DistributedSecurityCamera, DistributedMover, DistributedElevatorMarker, DistributedBarrelBase, DistributedGagBarrel, DistributedBeanBarrel, DistributedHealBarrel, DistributedGrid, ActiveCell, DirectionalCell, CrusherCell, DistributedCrate, DistributedSinkingPlatform, BattleBlocker, DistributedMint, DistributedMintRoom, DistributedMintBattle, DistributedStage, DistributedStageRoom, DistributedStageBattle, DistributedLawbotBossGavel, DistributedLawbotCannon, DistributedLawbotChair, DistributedCogKart, DistributedCountryClub, DistributedCountryClubRoom, DistributedMoleField, DistributedCountryClubBattle, DistributedMaze, DistributedFoodBelt, DistributedBanquetTable, DistributedGolfSpot

View file

@ -5,8 +5,31 @@ class DistributedGardenAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenAI")
def __init__(self, air):
DistributedObjectAI.__init__(self, air)
self.air = air
self.props = []
def sendNewProp(self, prop, x, y, z):
self.props.append([prop, x, y, z])
def generate(self):
DistributedObjectAI.generate(self)
def announceGenerate(self):
DistributedObjectAI.announceGenerate(self)
def disable(self):
DistributedObjectAI.disable(self)
def delete(self):
DistributedObjectAI.delete(self)
def b_setProps(self, props):
self.setProps(props)
self.d_setProps(props)
def d_setProps(self, props):
aProps = []
for prop in props:
aProps = aProps + prop
self.sendUpdate('setProps', [aProps])
def setProps(self, props):
self.props = props