Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --@Author: Alex2009, Sven777b
- --@Web: www.alex2009.de, www.LS-Landtechnik.com
- waterTankPlaceable = {};
- waterTankPlaceable_mt = Class(waterTankPlaceable, Placeable);
- InitObjectClass(waterTankPlaceable, "waterTankPlaceable");
- function waterTankPlaceable:new(isServer, isClient, customMt)
- local self = Placeable:new(isServer, isClient, waterTankPlaceable_mt);
- registerObjectClassName(self, "waterTankPlaceable");
- return self;
- end;
- function waterTankPlaceable:delete()
- removeTrigger(self.SprayerFillTriggerId);
- unregisterObjectClassName(self);
- waterTankPlaceable:superClass().delete(self);
- end;
- function waterTankPlaceable:deleteFinal()
- waterTankPlaceable:superClass().deleteFinal(self);
- end;
- function waterTankPlaceable:load(xmlFilename, x,y,z, rx,ry,rz, moveMode, initRandom)
- if not waterTankPlaceable:superClass().load(self, xmlFilename, x,y,z, rx,ry,rz, moveMode, initRandom) then
- return false;
- end;
- local xmlFile = loadXMLFile("TempXML", xmlFilename);
- self.SprayerFillTriggerId = Utils.indexToObject(self.nodeId, getXMLString(xmlFile, "placeable.FillTrigger#index"));
- FillTrigger:onCreate(self.SprayerFillTriggerId);
- delete(xmlFile);
- return true;
- end;
- function waterTankPlaceable:update(dt)
- end;
- registerPlaceableType("waterTankPlaceable", waterTankPlaceable);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement