{
	"name": "ev_triggers",
	"events": [
		{
			"eventType": "block",
			"conditions": [
				{
					"id": "on-collision-with-another-object",
					"objectClass": "player_base",
					"sid": 216482029183186,
					"parameters": {
						"object": "trigger"
					}
				}
			],
			"actions": [],
			"sid": 398148811065058,
			"children": [
				{
					"eventType": "block",
					"conditions": [
						{
							"id": "compare-instance-variable",
							"objectClass": "trigger",
							"sid": 172761581921137,
							"parameters": {
								"instance-variable": "id",
								"comparison": 0,
								"value": "0"
							}
						}
					],
					"actions": [],
					"sid": 716258096129618,
					"children": [
						{
							"eventType": "block",
							"conditions": [
								{
									"id": "compare-two-values",
									"objectClass": "System",
									"sid": 587892793847515,
									"parameters": {
										"first-value": "shipController.Count",
										"comparison": 0,
										"second-value": "0"
									}
								}
							],
							"actions": [
								{
									"callFunction": "FadeOut",
									"sid": 543631823720216,
									"parameters": [
										"FADE_TIME"
									]
								},
								{
									"id": "wait",
									"objectClass": "System",
									"sid": 524697451680962,
									"parameters": {
										"seconds": "FADE_TIME"
									}
								},
								{
									"id": "set-eventvar-value",
									"objectClass": "System",
									"sid": 678393711475517,
									"parameters": {
										"variable": "spaceLayoutGameplayState",
										"value": "GAME_STATE_PILOTING"
									}
								},
								{
									"id": "go-to-layout",
									"objectClass": "System",
									"sid": 190509857556473,
									"parameters": {
										"layout": "lay_repair"
									}
								}
							],
							"sid": 263398394226927
						},
						{
							"eventType": "block",
							"conditions": [
								{
									"id": "else",
									"objectClass": "System",
									"sid": 368986395750368
								}
							],
							"actions": [
								{
									"callFunction": "DestroyShipAndReset",
									"sid": 716419489507914
								},
								{
									"callFunction": "FadeOut",
									"sid": 990592347997434,
									"parameters": [
										"FADE_TIME"
									]
								},
								{
									"id": "wait",
									"objectClass": "System",
									"sid": 940460525616322,
									"parameters": {
										"seconds": "FADE_TIME"
									}
								},
								{
									"id": "go-to-layout",
									"objectClass": "System",
									"sid": 514660028292396,
									"parameters": {
										"layout": "lay_gameover"
									}
								}
							],
							"sid": 537003381081958
						}
					]
				},
				{
					"eventType": "block",
					"conditions": [
						{
							"id": "compare-instance-variable",
							"objectClass": "trigger",
							"sid": 753610328026039,
							"parameters": {
								"instance-variable": "id",
								"comparison": 0,
								"value": "1"
							}
						}
					],
					"actions": [
						{
							"callFunction": "FadeOut",
							"sid": 603843839099422,
							"parameters": [
								"FADE_TIME"
							]
						},
						{
							"id": "wait",
							"objectClass": "System",
							"sid": 760465250172560,
							"parameters": {
								"seconds": "FADE_TIME"
							}
						},
						{
							"id": "go-to-layout",
							"objectClass": "System",
							"sid": 953525285849718,
							"parameters": {
								"layout": "lay_space"
							}
						}
					],
					"sid": 699119909100272
				}
			]
		},
		{
			"eventType": "block",
			"conditions": [
				{
					"id": "on-collision-with-another-object",
					"objectClass": "ship_entire_collider_1",
					"sid": 894397294155112,
					"parameters": {
						"object": "trigger"
					}
				}
			],
			"actions": [],
			"sid": 533163420996588,
			"children": [
				{
					"eventType": "block",
					"conditions": [
						{
							"id": "compare-instance-variable",
							"objectClass": "trigger",
							"sid": 270378584264128,
							"parameters": {
								"instance-variable": "id",
								"comparison": 0,
								"value": "1"
							}
						}
					],
					"actions": [
						{
							"callFunction": "FadeOut",
							"sid": 106617480679049,
							"parameters": [
								"FADE_TIME"
							]
						},
						{
							"id": "wait",
							"objectClass": "System",
							"sid": 387211726318188,
							"parameters": {
								"seconds": "FADE_TIME"
							}
						},
						{
							"id": "set-eventvar-value",
							"objectClass": "System",
							"sid": 454483151911738,
							"parameters": {
								"variable": "zoomLevel",
								"value": "ZOOMED_OUT"
							}
						},
						{
							"id": "go-to-layout",
							"objectClass": "System",
							"sid": 798624173170301,
							"parameters": {
								"layout": "lay_space"
							}
						}
					],
					"sid": 429790748467291
				}
			]
		},
		{
			"functionName": "DestroyShipAndReset",
			"functionDescription": "",
			"functionCategory": "",
			"functionReturnType": "none",
			"functionIsAsync": false,
			"functionParameters": [],
			"eventType": "function-block",
			"conditions": [],
			"actions": [
				{
					"id": "set-eventvar-value",
					"objectClass": "System",
					"sid": 932001790017374,
					"parameters": {
						"variable": "spaceLayoutGameplayState",
						"value": "GAME_STATE_FALLING"
					}
				},
				{
					"id": "destroy",
					"objectClass": "shipController",
					"sid": 209595516667886
				},
				{
					"id": "destroy",
					"objectClass": "ship_col_1",
					"sid": 402037458682852
				},
				{
					"id": "destroy",
					"objectClass": "repairObj",
					"sid": 487446653079063
				},
				{
					"id": "destroy",
					"objectClass": "repairProgressBar",
					"sid": 665233747752667
				},
				{
					"id": "destroy",
					"objectClass": "shipWhole",
					"sid": 347201469768540
				},
				{
					"id": "set-enabled",
					"objectClass": "player_base",
					"sid": 501458326100610,
					"behaviorType": "Platform",
					"parameters": {
						"state": "enabled"
					}
				},
				{
					"id": "set-collisions-enabled",
					"objectClass": "player_base",
					"sid": 784691551529992,
					"parameters": {
						"collisions": "enabled"
					}
				},
				{
					"id": "set-eventvar-value",
					"objectClass": "System",
					"sid": 479629878633527,
					"parameters": {
						"variable": "zoomLevel",
						"value": "BASE_ZOOM"
					}
				},
				{
					"id": "set-boolean-instvar",
					"objectClass": "player_base",
					"sid": 148646834947776,
					"parameters": {
						"instance-variable": "isInvulnerable",
						"value": "false"
					}
				}
			],
			"sid": 986655341973310
		}
	],
	"sid": 269161011555763
}