<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
    <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
    <name>main es</name>
    <events>
        <include>option es</include>
        <include>question es</include>
        <include>data_model es</include>
        <include>ui es</include>
        <include>ui_screen es</include>
        <include>loop es</include>
        <include>audio es</include>
        <include>timer es</include>
        <include>main_fsm es</include>
        <include>ending es</include>
        <event-block sid="825866864639030">
            <conditions>
                <condition id="-2" name="On start of layout" sid="267852114580543" type="System" />
            </conditions>
            <actions>
                <action id="0" name="Call function" sid="961166950032049" type="Function">
                    <param id="0" name="Name">&quot;main.fsm.init&quot;</param>
                    <param id="1" name="Parameter {n}"></param>
                </action>
            </actions>
        </event-block>
        <event-group description="" sid="521138570527834" title="game state trigge">
            <sub-events>
                <event-block sid="350042217992839">
                    <conditions>
                        <condition id="0" name="On function" sid="909540965343854" type="Function">
                            <param id="0" name="Name">&quot;main.game.init&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <comment>create ui </comment>
                        <event-block sid="265021268101839">
                            <conditions />
                            <actions>
                                <action id="0" name="Call function" sid="197093252622399" type="Function">
                                    <param id="0" name="Name">&quot;ui.buttons.create&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                                <action id="0" name="Call function" sid="170497440216182" type="Function">
                                    <param id="0" name="Name">&quot;ui.screen.create&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="414176306983418">
                    <conditions>
                        <condition id="0" name="On function" sid="823398198250104" type="Function">
                            <param id="0" name="Name">&quot;main.game.start&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <comment>start game</comment>
                        <event-block sid="162060158636660">
                            <conditions />
                            <actions />
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="174168686082137">
                    <conditions>
                        <condition id="0" name="On function" sid="968806865721478" type="Function">
                            <param id="0" name="Name">&quot;main.gameover&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="990827981132274">
                            <conditions />
                            <actions>
                                <action id="0" name="Call function" sid="543125515726393" type="Function">
                                    <param id="0" name="Name">&quot;loop.removeAllWaitFuncs&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                                <action id="0" name="Call function" sid="887913894023472" type="Function">
                                    <param id="0" name="Name">&quot;question.hide&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                                <action id="0" name="Call function" sid="683465322893301" type="Function">
                                    <param id="0" name="Name">&quot;option.hide&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                                <action id="0" name="Call function" sid="432108694860933" type="Function">
                                    <param id="0" name="Name">&quot;ending.show&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                                <action id="0" name="Call function" sid="485631628178787" type="Function">
                                    <param id="0" name="Name">&quot;ending.playVO&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <comment>pause and resume game</comment>
        <event-group description="" sid="604601025983885" title="game pause">
            <sub-events>
                <event-block sid="619414745468463">
                    <conditions>
                        <condition id="0" name="On function" sid="798702062440035" type="Function">
                            <param id="0" name="Name">&quot;main.game.pause&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="659830766949102">
                            <conditions />
                            <actions>
                                <action id="0" name="Call function" sid="590011914405762" type="Function">
                                    <param id="0" name="Name">&quot;audio.pause&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="380965186092542">
                            <conditions />
                            <actions>
                                <action id="-9" name="Set value" sid="577676163762500" type="System">
                                    <param id="0" name="Variable">gameStatusPre</param>
                                    <param id="1" name="Value">gameStatus</param>
                                </action>
                                <action id="-9" name="Set value" sid="767276115680124" type="System">
                                    <param id="0" name="Variable">gameStatus</param>
                                    <param id="1" name="Value">STATUS_PAUSE</param>
                                </action>
                                <action id="0" name="Call function" sid="840918727985621" type="Function">
                                    <param id="0" name="Name">&quot;main.fsm.goto&quot;</param>
                                    <param id="1" name="Parameter {n}">gameStatus</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="597094856349275">
                    <conditions>
                        <condition id="0" name="On function" sid="794794325660177" type="Function">
                            <param id="0" name="Name">&quot;main.game.resume&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="696719172542622">
                            <conditions />
                            <actions>
                                <action id="0" name="Call function" sid="758972693841249" type="Function">
                                    <param id="0" name="Name">&quot;audio.resume&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="271702939807796">
                            <conditions />
                            <actions>
                                <action id="-16" name="Wait" sid="587586418037296" type="System">
                                    <param id="0" name="Seconds">0</param>
                                </action>
                                <action id="-9" name="Set value" sid="311356339162616" type="System">
                                    <param id="0" name="Variable">gameStatus</param>
                                    <param id="1" name="Value">gameStatusPre</param>
                                </action>
                                <action id="-9" name="Set value" sid="837305018035898" type="System">
                                    <param id="0" name="Variable">gameStatusPre</param>
                                    <param id="1" name="Value">STATUS_PAUSE</param>
                                </action>
                                <action id="0" name="Call function" sid="950374912879170" type="Function">
                                    <param id="0" name="Name">&quot;main.fsm.goto&quot;</param>
                                    <param id="1" name="Parameter {n}">gameStatus</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <comment>game next status</comment>
    </events>
</c2eventsheet>
