mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-10-31 00:37:54 +00:00
DistributedGardenAI is done
This commit is contained in:
parent
37fad887da
commit
ab3876ff0d
3 changed files with 28 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue