Esempio n. 1
0
        public override void CreateStaticNodesIfNotPresent()
        {
            base.CreateStaticNodesIfNotPresent();

            if (InputEvents.Count == 0)
            {
                EntityLink <MonsterTestBase> InputLink = new EntityLink <MonsterTestBase>();
                InputLink.SetOwner(this);
                InputLink.Name = "Input";
                InputEvents.Add(InputLink);
            }

            /*		if(OutputEvents.Count != NumberOfOutputs)
             *              {
             *                      for(int CurrentLink = OutputEvents.Count; CurrentLink < NumberOfOutputs; ++CurrentLink)
             *                      {
             *                              EntityLink<MonsterTestBase> OutputLink = new EntityLink<MonsterTestBase>();
             *                              OutputLink.SetOwner(this);
             *                              OutputLink.Name = "Option " + CurrentLink;
             *                              OutputEvents.Add(OutputLink);
             *                      }
             *
             *                      for(int CurrentLink = NumberOfOutputs; CurrentLink < OutputEvents.Count;)
             *                      {
             *                              OutputEvents[CurrentLink].BreakAllLinks();
             *                              OutputEvents.RemoveAt(CurrentLink);
             *                      }
             *              }*/
        }
Esempio n. 2
0
        public override void CreateStaticNodesIfNotPresent()
        {
            base.CreateStaticNodesIfNotPresent();

            if (InputEvents.Count != 1)
            {
                InputEvents.Clear();

                EntityLink <MonsterTestBase> InputLink = new EntityLink <MonsterTestBase>();
                InputLink.SetOwner(this);
                InputLink.Name = "Start Dialogue";
                InputEvents.Add(InputLink);
            }
            if (OutputEvents.Count != 3)
            {
                EntityLink <MonsterTestBase> OutputLink = new EntityLink <MonsterTestBase>();
                OutputLink.SetOwner(this);
                OutputLink.Name = "Game Finished";
                OutputEvents.Add(OutputLink);

                OutputLink = new EntityLink <MonsterTestBase>();
                OutputLink.SetOwner(this);
                OutputLink.Name = "Problem Encountered";
                OutputEvents.Add(OutputLink);

                OutputLink = new EntityLink <MonsterTestBase>();
                OutputLink.SetOwner(this);
                OutputLink.Name = "Navigation Required";
                OutputEvents.Add(OutputLink);
            }
        }
Esempio n. 3
0
        public override void CreateStaticNodesIfNotPresent()
        {
            base.CreateStaticNodesIfNotPresent();

            if (InputEvents.Count == 0)
            {
                EntityLink <MonsterTest> InputLink = new EntityLink <MonsterTest>();
                InputLink.SetOwner(this);
                InputLink.Name = "Test Started";
                InputEvents.Add(InputLink);

                InputLink = new EntityLink <MonsterTest>();
                InputLink.SetOwner(this);
                InputLink.Name = "Test Failed To Start";
                InputEvents.Add(InputLink);
            }
        }
Esempio n. 4
0
        public override void CreateStaticNodesIfNotPresent()
        {
            base.CreateStaticNodesIfNotPresent();

            if (InputEvents.Count != 3)
            {
                InputEvents.Clear();

                EntityLink <MonsterTestBase> InputLink = new EntityLink <MonsterTestBase>();
                InputLink.SetOwner(this);
                InputLink.Name = "Start New Game";
                InputEvents.Add(InputLink);

                InputLink = new EntityLink <MonsterTestBase>();
                InputLink.SetOwner(this);
                InputLink.Name = "Load Saved Game";
                InputEvents.Add(InputLink);

                InputLink = new EntityLink <MonsterTestBase>();
                InputLink.SetOwner(this);
                InputLink.Name = "Quit";
                InputEvents.Add(InputLink);
            }
            if (OutputEvents.Count != 3)
            {
                EntityLink <MonsterTestBase> OutputLink = new EntityLink <MonsterTestBase>();
                OutputLink.SetOwner(this);
                OutputLink.Name = "Game Started";
                OutputEvents.Add(OutputLink);

                OutputLink = new EntityLink <MonsterTestBase>();
                OutputLink.SetOwner(this);
                OutputLink.Name = "Game Failed To Start";
                OutputEvents.Add(OutputLink);

                OutputLink = new EntityLink <MonsterTestBase>();
                OutputLink.SetOwner(this);
                OutputLink.Name = "Quit";
                OutputEvents.Add(OutputLink);
            }
        }