<data>
	<!-- LEVEL WITH SPECIFIC LAYOUT TEMPLATES -->
	<levels>
		<level r_name="'incrementalLayout'" r_template="'emptyTemplate'">
			<layout r_name="'basic'" r_template="'incrementalLayout'"/>
			<layout r_name="'walls'" r_template="'missingWallsLayout'"/>
		</level>

		<level r_name="'incrementalLayoutWithEntry'" r_template="'emptyTemplate'">
			<layout r_name="'basic'" r_template="'incrementalLayoutWithEntry'"/>
			<layout r_name="'walls'" r_template="'missingWallsLayout'"/>
		</level>
		
		<level r_name="'scaterredCircularLayout'" r_template="'emptyTemplate'">
			<layout r_name="'basic'" r_template="'scaterredCircularLayout'"/>
			<layout r_name="'walls'" r_template="'missingWallsLayout'"/>
		</level>
		
		<level r_name="'scaterredRightLayout'" r_template="'emptyTemplate'">
			<layout r_name="'basic'" r_template="'scaterredRightLayout'"/>
			<layout r_name="'walls'" r_template="'missingWallsLayout'"/>
		</level>
		
		<level r_name="'cellularLayout'" r_template="'emptyTemplate'">
			<layout r_name="'basic'" r_template="'cellularLayout'"/>
			<layout r_name="'walls'" r_template="'missingWallsLayout'"/>
		</level>
	</levels>
	
	<!-- ELEMENTARY LAYOUTS -->
	<layouts>
		<!-- LEVEL DESGIN TEMPLATES -->
		<layoutTemplate r_name="'standardTemplate'"
										r_createdTile="groundTile"
										r_createdBorder="wallTile"
										r_groundTileIsEmpty="1"
										r_overwrite="0"
										r_minimumSurface="levelSurface"/>

		<!-- LAYOUT TEMPLATES -->
		<layoutTemplate r_name="'incrementalLayout'" r_template="'standardTemplate'"
										r_firstRoom="'C2'"
										r_generatorClass="'rngsdk.controller.layoutgenerator.CctlLayoutGeneratorIncremental'">
			<room r_name="'C2'" r_template="'mainRoomTemplate'" r_xSize="2" r_ySize="2" r_additionalExit="1">
				<exit r_name="'1'" r_template="'exitTemplate'" r_targetRoom="'S4'" r_probability="1"/>
			</room>
			<room r_name="'C4X'" r_template="'mainRoomTemplate'" r_xSize="4" r_ySize="2" r_additionalExit="1D2">
				<exit r_name="'1'" r_template="'exitTemplate'" r_targetRoom="'S4'" r_probability="1" r_extend="'X'"/>
				<exit r_name="'2'" r_template="'exitTemplate'" r_targetRoom="'C2'" r_probability="0.5" r_extend="'Y'"/>
				<exit r_name="'3'" r_template="'exitTemplate'" r_targetRoom="'C4Y'" r_probability="0.5" r_extend="'Y'"/>
			</room>
			<room r_name="'C4Y'" r_template="'mainRoomTemplate'" r_xSize="2" r_ySize="4" r_additionalExit="1D2">
				<exit r_name="'1'" r_template="'exitTemplate'" r_targetRoom="'S4'" r_probability="1" r_extend="'Y'"/>
				<exit r_name="'2'" r_template="'exitTemplate'" r_targetRoom="'C2'" r_probability="0.5" r_extend="'X'"/>
				<exit r_name="'3'" r_template="'exitTemplate'" r_targetRoom="'C4X'" r_probability="0.5" r_extend="'X'"/>
			</room>
			<room r_name="'S4'" r_template="'mainRoomTemplate'" r_xSize="4" r_ySize="4" r_additionalExit="1D2+1">
				<feature r_name="'water'" r_template="'mainFeatureTemplate'" r_tile="waterTile" r_enabled="1D5==1" r_shape="'center4'"/>
				<exit r_name="'1'" r_template="'exitTemplate'" r_targetRoom="'C2'" r_probability="0.66"/>
				<exit r_name="'2'" r_template="'exitTemplate'" r_targetRoom="'C4X'" r_probability="0.34" r_extend="'X'"/>
				<exit r_name="'3'" r_template="'exitTemplate'" r_targetRoom="'C4Y'" r_probability="0.34" r_extend="'Y'"/>
			</room>
			<feature r_name="'water'" r_template="'mainFeatureTemplate'" r_tile="waterTile"/>
		</layoutTemplate>
		<layoutTemplate r_name="'incrementalLayoutWithEntry'" r_template="'incrementalLayout'" r_firstRoom="'En'">
			<room r_name="'En'" r_template="'entryTemplate'" r_xSize="2" r_ySize="2" r_additionalExit="1">
				<exit r_name="'1'" r_template="'exitTemplate'" r_targetRoom="'C2'" r_probability="0"/>
				<exit r_name="'2'" r_template="'exitTemplate'" r_targetRoom="'DX'" r_probability="1" r_extend="'X'"/>
				<exit r_name="'3'" r_template="'exitTemplate'" r_targetRoom="'DY'" r_probability="1" r_extend="'Y'"/>
			</room>
			<room r_name="'DX'" r_template="'mainRoomTemplate'" r_xSize="1" r_ySize="1" r_additionalExit="1" r_specificGroundTile="doorTile">
				<exit r_name="'1'" r_template="'exitTemplate'" r_targetRoom="'C2'" r_probability="1" r_extend="'X'"/>
			</room>
			<room r_name="'DY'" r_template="'mainRoomTemplate'" r_xSize="1" r_ySize="1" r_additionalExit="1" r_specificGroundTile="doorTile">
				<exit r_name="'1'" r_template="'exitTemplate'" r_targetRoom="'C2'" r_probability="1" r_extend="'Y'"/>
			</room>
		</layoutTemplate>		
		
		<layoutTemplate r_name="'scaterredCircularLayout'" r_template="'standardTemplate'"
										r_firstRoom="'room'"
										r_generatorClass="'rngsdk.controller.layoutgenerator.CctlLayoutGeneratorScaterred'"
										r_globalDirection="'circular'">
			<room r_name="'room'" r_template="'mainRoomTemplate'" r_xSize="2*max(1D2+1D3-1,2)" r_ySize="2*max(1D2+1D3-1,2)" r_additionalExit="1D3"/>
		</layoutTemplate>
		
		<layoutTemplate r_name="'scaterredRightLayout'" r_template="'standardTemplate'"
										r_firstRoom="'room'"
										r_generatorClass="'rngsdk.controller.layoutgenerator.CctlLayoutGeneratorScaterred'"
										r_globalDirection="'right'">
			<room r_name="'room'" r_template="'mainRoomTemplate'" r_xSize="3D2" r_ySize="2*max(1D2+1D3-1,2)" r_additionalExit="2*max(1D2+1D3-1,2)"/>
		</layoutTemplate>
		
		<layoutTemplate r_name="'cellularLayout'" r_template="'standardTemplate'"
										r_generatorClass="'rngsdk.controller.layoutgenerator.CctlLayoutGeneratorCellular'"
										r_centerOnPrevious="0"
										r_initialWallDensity="0.45"
										r_mustConnect="1"
										r_automataLoopCount="8">
			<feature 	r_name="'water'" r_template="'mainFeatureTemplate'"
								r_shape="'asciiPattern'"
								r_asciiDesignTranslation="asciiDesignTranslation"
								r_asciiPattern="{	'..',
																	'..'}"
								r_asciiDesign="{'~~',
																'~~'}"
								r_checkConnection="1"/>
		</layoutTemplate>

		<layoutTemplate r_name="'missingWallsLayout'" r_template="'standardTemplate'"
										r_generatorClass="'rngsdk.controller.layoutgenerator.CctlLayoutGeneratorWall'"/>
	</layouts>
</data>