robot debug 2
This commit is contained in:
		| @@ -242,24 +242,17 @@ function LogicGate_RobotController_Data::createRobot(%this, %obj) { | ||||
| 	 | ||||
| 	%obj.luaLogicRobot = %robot; | ||||
| 	 | ||||
| 	lualogic_sendinput(%obj, 1, "P" @ %rpos SPC %obj.getAngleId()); | ||||
| 	schedule(1000, 0, lualogic_sendinput, %obj, 1, "P" @ %rpos SPC %obj.getAngleId()); | ||||
| } | ||||
|  | ||||
| function LogicGate_RobotController_Data::onDeath(%this, %obj) { | ||||
| function LogicGate_RobotController_Data::Logic_onRemove(%this, %obj) { | ||||
| 	talk("robot remove"); | ||||
| 	if(isObject(%obj.luaLogicRobot)) | ||||
| 		%obj.luaLogicRobot.delete(); | ||||
| } | ||||
|  | ||||
| function LogicGate_RobotController_Data::onRemove(%this, %obj) { | ||||
| 	if(isObject(%obj.luaLogicRobot)) | ||||
| 		%obj.luaLogicRobot.delete(); | ||||
| } | ||||
|  | ||||
| function LogicGate_RobotController_Data::onPlant(%this, %obj) { | ||||
| 	if(!isObject(%obj.luaLogicRobot)) | ||||
| 		%this.createRobot(%obj); | ||||
| } | ||||
| function LogicGate_RobotController_Data::onLoadPlant(%this, %obj) { | ||||
| function LogicGate_RobotController_Data::Logic_onPlant(%this, %obj) { | ||||
| 	talk("robot plant"); | ||||
| 	if(!isObject(%obj.luaLogicRobot)) | ||||
| 		%this.createRobot(%obj); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Redo
					Redo