Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- CGFNodeLibrary.as -->
- <root>
- <formats>
- <format id="library">
- <!-- Win -->
- <classFilePath>..\src\com\blogger\ticktockgames\cgf\data\CGFDirectorNodeLibrary.as</classFilePath>
- <!-- Mac -->
- <classFilePathMac>../src/com/blogger/ticktockgames/cgf/data/CGFDirectorNodeLibrary.as</classFilePathMac>
- <header>package com.blogger.ticktockgames.cgf.data
- {
- import com.blogger.ticktockgames.cgf.CGFGameModelInterface;
- import com.blogger.ticktockgames.epok.data.DirectorNodeLibrary;
- import com.blogger.ticktockgames.epok.data.DialogChoice;
- import com.blogger.ticktockgames.epok.data.DialogContent;
- import com.blogger.ticktockgames.epok.data.DirectorNode;
- import com.blogger.ticktockgames.epok.utils.DLog;
- import flash.utils.getDefinitionByName;
- import flash.utils.getQualifiedClassName;
- import flash.utils.getDefinitionByName;
- import flash.utils.getQualifiedClassName;
- /*
- * This is an autogenerated class.
- * Do not edit this file directly.
- * Change the corresponding XML file labeled CGFDirectorNodeLibrary.xml
- */
- public class CGFDirectorNodeLibrary extends DirectorNodeLibrary
- {
- public function CGFDirectorNodeLibrary():void
- {
- // Do nothing
- }
- /*
- public static function getNodeById( idStr:String ):DirectorNode
- {
- //var className:Class = getLibraryClass();
- //var targetFunction:Function = className[idStr]
- //var targetFunction:Function = className[idStr] as Function;
- var resultNode:DirectorNode = CGFDirectorNodeLibrary[idStr]();
- // Check if function is valid
- if( resultNode === null)
- {
- DLog.e( "DirectorNodeLibrary.getNodeById(" + idStr.toString() + ")", "Function returned invalid.");
- return null;
- }
- return resultNode = CGFDirectorNodeLibrary[idStr]();
- //return resultNode = className.targetFunction() as DirectorNode;
- }
- */
- protected override function getLibraryClass():Class
- {
- return CGFDirectorNodeLibrary;
- }
- </header>
- <footer>
- } // class
- } // package
- </footer>
- <nodeHeader>
- public static function {}():DirectorNode
- {}
- </nodeHeader>
- <nodeFooter>
- {} // function {}
- </nodeFooter>
- </format>
- <format id="flags">
- <!-- Win -->
- <classFilePath>..\src\com\blogger\ticktockgames\cgf\data\CGFDirectorFlagModel.as</classFilePath>
- <!-- Mac -->
- <classFilePathMac>../src/com/blogger/ticktockgames/cgf/data/CGFDirectorFlagModel.as</classFilePathMac>
- <header>package com.blogger.ticktockgames.cgf.data
- {
- import com.blogger.ticktockgames.epok.utils.DLog;
- import com.blogger.ticktockgames.epok.data.DirectorFlagModelBase;
- /*
- * This is an autogenerated class.
- * Do not edit this file directly.
- * Change the corresponding XML file labeled CGFDirectorNodeLibrary.xml
- */
- public class CGFDirectorFlagModel extends DirectorFlagModelBase
- {
- public function CGFDirectorFlagModel()
- {
- // Default Constructor
- super();
- }
- </header>
- <footer>
- } // class
- } // package
- </footer>
- <propertyFormat>public var {}:int = 0;</propertyFormat>
- </format>
- </formats>
- <nodes> <!-- All Nodes are defined here -->
- <node id= "KarensHouse_1">
- <meta>
- <description>No Sister</description>
- </meta>
- <condition>function(){
- return true;
- };
- </condition>
- <onEnter>function(){
- // Insert Enter code here
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- </choices>
- <nextNodes>
- <nextNode id= "KarensHouse_2"/>
- </nextNodes>
- <dialog>
- <speaker>Karen</speaker>
- <body>I can't believe Katie didn't show up to my 30th. She was so excited about it. It's just not like her to flake on me.</body>
- </dialog>
- <flags>
- <flag id= "KarensHouse_1"/>
- </flags>
- </node>
- <node id= "KarensHouse_2">
- <meta>
- <description>Action Decision</description>
- </meta>
- <condition>function(){
- return true;
- };
- </condition>
- <onEnter>function(){
- // Insert Enter code here
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- <choice targetID= "KarensHouse_3">
- <label>Check Voicemail</label>
- </choice>
- <choice targetID= "KarensHouse_4">
- <label>Call Katie</label>
- </choice>
- <choice targetID= "KarensHouse_6">
- <label>Call Police</label>
- </choice>
- <choice targetID= "KarensHouse_5">
- <label>Leave</label>
- </choice>
- </choices>
- <nextNodes>
- </nextNodes>
- <dialog>
- <speaker></speaker>
- <body></body>
- </dialog>
- <flags>
- </flags>
- </node>
- <node id= "KarensHouse_3">
- <meta>
- <description>I have your sister</description>
- </meta>
- <condition>function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- return flags.getFlagValueByName("KarensHouse_3") != 1;
- };
- </condition>
- <onEnter>function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- flags.setFlagByName("KarensHouse_3", 1);
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- </choices>
- <nextNodes>
- <nextNode id= "KarensHouse_10"/>
- </nextNodes>
- <dialog>
- <speaker></speaker>
- <body>Karen Checks her voicemail.</body>
- </dialog>
- <flags>
- <flag id= "KarensHouse_3"/>
- </flags>
- </node>
- <node id= "KarensHouse_4">
- <meta>
- <description>I'm not here...</description>
- </meta>
- <condition>function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- return flags.getFlagValueByName("KarensHouse_4") != 1;
- };
- </condition>
- <onEnter>function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- flags.setFlagByName("KarensHouse_4", 1);
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- </choices>
- <nextNodes>
- <nextNode id= "KarensHouse_11"/>
- </nextNodes>
- <dialog>
- <speaker></speaker>
- <body>Karen calls Katie</body>
- </dialog>
- <flags>
- <flag id= "KarensHouse_4"/>
- </flags>
- </node>
- <node id= "KarensHouse_5">
- <meta>
- <description>Leave Options</description>
- </meta>
- <condition>function(){
- return true;
- };
- </condition>
- <onEnter>function(){
- // Insert Enter code here
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- </choices>
- <nextNodes>
- <nextNode id= "KarensHouse_7"/>
- <nextNode id= "KarensHouse_8"/>
- </nextNodes>
- <dialog>
- <speaker></speaker>
- <body></body>
- </dialog>
- <flags>
- </flags>
- </node>
- <node id= "KarensHouse_6">
- <meta>
- <description>Call Police</description>
- </meta>
- <condition>function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- return (flags.getFlagValueByName("KarensHouse_6") == 0 && flags.getFlagValueByName("KarensHouse_9") == 1);
- };
- </condition>
- <onEnter>function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- flags.setFlagByName("KarensHouse_6", 1);
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- </choices>
- <nextNodes>
- <nextNode id= "KarensHouse_2"/>
- </nextNodes>
- <dialog>
- <speaker>Karen</speaker>
- <body>Maybe I should just do what he says. I don't want to risk it.</body>
- </dialog>
- <flags>
- <flag id= "KarensHouse_6"/>
- </flags>
- </node>
- <node id= "KarensHouse_7">
- <meta>
- <description>Leave A</description>
- </meta>
- <condition>function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- return (flags.getFlagValueByName("KarensHouse_9") == 0);
- };
- </condition>
- <onEnter>function(){
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- </choices>
- <nextNodes>
- <nextNode id= "KarensHouse_2"/>
- </nextNodes>
- <dialog>
- <speaker>Karen</speaker>
- <body>I don't even know where she would be.</body>
- </dialog>
- <flags>
- </flags>
- </node>
- <node id= "KarensHouse_8">
- <meta>
- <description>Leave B</description>
- </meta>
- <condition>function(){
- return true;
- };
- </condition>
- <onEnter>function(){
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- </choices>
- <nextNodes>
- </nextNodes>
- <dialog>
- <speaker>Tommy</speaker>
- <body>Karen leaves her home.</body>
- </dialog>
- <flags>
- </flags>
- </node>
- <node id= "KarensHouse_9">
- <meta>
- <description>Hey Karen, it's Tommy...</description>
- </meta>
- <condition>function(){
- return true;
- };
- </condition>
- <onEnter>function(){
- var flags = CGFGameModelInterface.getDirectorFlags();
- flags.setFlagByName("KarensHouse_9", 1);
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- </choices>
- <nextNodes>
- <nextNode id="KarensHouse_2"/>
- </nextNodes>
- <dialog>
- <speaker>Tommy</speaker>
- <body>Hey Karen, it's Tommy, your former brother-in-law. Katie here wishes you a happy birthday too... I'd pass the phone to her but she's a little... tied up at the moment. If you ever want to see her again you'll do exactly as I say. Meet me tonight at 888 Brannen Street. And don't try anything unless you want to become an only child. See ya soon, kiddo. *Click*</body>
- </dialog>
- <flags>
- <flag id="KarensHouse_9"/>
- </flags>
- </node>
- <node id= "KarensHouse_10">
- <meta>
- <description>Happy Birthday</description>
- </meta>
- <condition>function(){
- return true;
- };
- </condition>
- <onEnter>function(){
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- </choices>
- <nextNodes>
- <nextNode id= "KarensHouse_9"/>
- </nextNodes>
- <dialog>
- <speaker>????</speaker>
- <body>Happy birthday to you...</body>
- </dialog>
- <flags>
- </flags>
- </node>
- <node id= "KarensHouse_11">
- <meta>
- <description>Hi this is Katie</description>
- </meta>
- <condition>function(){
- return true;
- };
- </condition>
- <onEnter>function(){
- return;
- };
- </onEnter>
- <onExit>function(){
- // Insert Exit code here
- return;
- };
- </onExit>
- <choices>
- </choices>
- <nextNodes>
- <nextNode id= "KarensHouse_2"/>
- </nextNodes>
- <dialog>
- <speaker>Katie</speaker>
- <body>Hi this is Katie. I'm not here right now, but if you leave you name number, and message I'll get back to you as soon as I can! *Beep*</body>
- </dialog>
- <flags>
- </flags>
- </node>
- <!-- Example Nodes -->
- <!-- Begin Examples
- <node id= "ExampleNode">
- <meta>
- <description>Debug one object</description>
- </meta>
- <condition>function(){
- return true;
- }
- </condition>
- <actionable>function(){
- // Insert Actionable code here
- }
- </actionable>
- <choices>
- <choice id= "1" labeldialog = "Yes"/>
- <choice id= "2" labeldialog = "No"/>
- </choices>
- <nextNodes>
- <nextNode id= "1">
- </nextNodes>
- <dialog>
- <speaker>Narrator</speaker>
- <body>
- This is example dialog.
- </body>
- </dialog>
- </node>
- <node id= "IDStr">
- <meta>
- <description>Debug two object</description>
- </meta>
- <condition>function(){
- return true;
- }
- </condition>
- <actionable>
- </actionable>
- <choices>
- <choice id= "1" labeldialog = "Yes"/>
- <choice id= "2" labeldialog = "No"/>
- </choices>
- <nextNodes>
- <nextNode id= "1"/>
- </nextNodes>
- </node>
- <dialog>
- <speaker>Narrator</speaker>
- <body>
- This is example dialog.
- </body>
- </dialog>
- End Examples -->
- </nodes>
- </root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement