Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // SQL Server Connection for RepoDb
            SqlServerBootstrap.Initialize();

            // Instantiate Menu and WelcomeText
            Menu        menu        = new Menu();
            WelcomeText welcomeText = new WelcomeText();

            // Method for displaing Welcome screen (see Helper folder for refference)
            welcomeText.Print();


            /*Navigation to Menu or Exit of the application.
             * If 'Enter' is pressed -> Menu
             * else if 'Escape' || another key pressed -> close app*/
            switch (Console.ReadKey().Key)
            {
            case ConsoleKey.Enter:
                menu.Index();
                break;

            case ConsoleKey.Escape:
            { }
            break;
            }
        }
Exemplo n.º 2
0
    IEnumerator TutState5()
    {
        Animation anim     = WelcomeImage.GetComponent <Animation>();
        Animation animText = WelcomeText.GetComponent <Animation>();

        anim["FadeTB1"].wrapMode = WrapMode.Once;
        anim.Play("FadeTB1");
        animText.Play("TextDisappear");
        WelcomeImage.SetActive(false);
        yield return(new WaitForSeconds(0.5f));

        Player player = GameObject.Find("Player").GetComponent <Player>();

        player.SpawnSpecificWeapon(1); //Staff is ID 1.
        UIControl.ResumeButton();
        WelcomeImage.transform.localScale          = new Vector3(17.72895f, 1.921767f, 2.03252f);
        WelcomeImage.transform.localPosition       = new Vector3(-18, -210, 0);
        WelcomeText.transform.localPosition        = new Vector3(-350, -162, 0);
        WelcomeText.GetComponent <Text>().fontSize = 50;
        WelcomeText.GetComponent <Text>().text     = "This is your health bar. Make sure it doesn't reach 0!";
        anim["ShowTB1"].wrapMode = WrapMode.Once;
        anim.Play("ShowTB1");
        animText.Play("TextAppear");
        JumpingArrow.SetActive(true);
        yield return(new WaitForSeconds(0.5f));

        TutorialStage = 6;
    }
Exemplo n.º 3
0
 public void PutWelcomeText(WelcomeText welcomeText)
 {
     if (welcomeText != null)
     {
         _context.Entry(welcomeText).State = EntityState.Modified;
     }
 }
Exemplo n.º 4
0
    IEnumerator TutState13()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        UIControl.setLockPauseMenu(true);
        animText.Play("TextDisappear");
        yield return(new WaitForSeconds(0.5f));

        WelcomeText.GetComponent <Text>().text = "Well done! Wave complete!\n The corruption inside you starts to grow...";
        animText.Play("TextAppear");
        yield return(new WaitForSeconds(2f));

        animText.Play("TextDisappear");
        yield return(new WaitForSeconds(2f));

        animText.Play("TextAppear");
        WelcomeText.transform.localPosition        = new Vector3(-233, 238, 0);
        WelcomeText.GetComponent <Text>().fontSize = 45;
        animText.GetComponent <Text>().text        = "Choose a power to drain...";
        UIControl.SetIsPaused(true);
        UIControl.PowerDrainScreen(0, 0);
        TutorialStage = 14;
    }
        public ActionResult Edit([Bind(Include = "Id,Title,Content,IsActive,NoteForClosedDay,DaysHour")] WelcomeText welcomeText)
        {
            if (!ModelState.IsValid)
            {
                return(View(welcomeText));
            }

            _unitOfWork.WelcomeText.PutWelcomeText(welcomeText);
            _unitOfWork.Complete();

            return(RedirectToAction("Index"));
        }
Exemplo n.º 6
0
 public override void WriteData(ESPWriter writer)
 {
     if (EditorID != null)
     {
         EditorID.WriteBinary(writer);
     }
     if (ObjectBounds != null)
     {
         ObjectBounds.WriteBinary(writer);
     }
     if (Name != null)
     {
         Name.WriteBinary(writer);
     }
     if (Model != null)
     {
         Model.WriteBinary(writer);
     }
     if (Script != null)
     {
         Script.WriteBinary(writer);
     }
     if (Destructable != null)
     {
         Destructable.WriteBinary(writer);
     }
     if (WelcomeText != null)
     {
         WelcomeText.WriteBinary(writer);
     }
     if (LoopingSound != null)
     {
         LoopingSound.WriteBinary(writer);
     }
     if (Password != null)
     {
         Password.WriteBinary(writer);
     }
     if (Data != null)
     {
         Data.WriteBinary(writer);
     }
     if (Selections != null)
     {
         foreach (var item in Selections)
         {
             item.WriteBinary(writer);
         }
     }
 }
Exemplo n.º 7
0
        public override void Write()
        {
            _worldPacket.WriteInt32(NumAccounts);
            _worldPacket.WritePackedTime(CreateDate);
            _worldPacket.WriteInt32(GuildFlags);
            _worldPacket.WriteUInt32(MemberData.Count);
            _worldPacket.WriteBits(WelcomeText.GetByteCount(), 10);
            _worldPacket.WriteBits(InfoText.GetByteCount(), 10);
            _worldPacket.FlushBits();

            MemberData.ForEach(p => p.Write(_worldPacket));

            _worldPacket.WriteString(WelcomeText);
            _worldPacket.WriteString(InfoText);
        }
Exemplo n.º 8
0
 private void Tutorial()
 {
     if (TutorialStage == 1)
     {
         powerController.powerHandler[0].SetPowerAvailable(true);
         powerController.powerHandler[0].SetPowerActive(true);
         UIControl.SetIsPaused(true);
         TutorialStage = 2;
         WelcomeImage.SetActive(true);
         WelcomeText.SetActive(true);
         WelcomeText.GetComponent <Text>().text = "Welcome to Regression!\nPlease press left click to continue.";
         WelcomeText.transform.localPosition    = new Vector3(-244, 108, 0);
     }
     if (TutorialStage == 3)
     {
         StartCoroutine("TutState2");
     }
     if (TutorialStage == 5)
     {
         StartCoroutine("TutState5");
     }
     if (TutorialStage == 7)
     {
         StartCoroutine("TutState7");
     }
     if (TutorialStage == 9)
     {
         StartCoroutine("TutState9");
     }
     if (TutorialStage == 11)
     {
         StartCoroutine("TutState11");
         UIControl.ResumeButton();
     }
     if (TutorialStage == 13)
     {
         StartCoroutine("TutState13");
     }
     if (TutorialStage == 15)
     {
         StartCoroutine("TutState15");
     }
     if (TutorialStage == 17)
     {
         StartCoroutine("TutState17");
     }
 }
Exemplo n.º 9
0
    IEnumerator TutState15()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        animText.Play("TextDisappear");
        yield return(new WaitForSeconds(0.5f));

        WelcomeText.GetComponent <Text>().text = "You are no longer immune to death!" +
                                                 "\nPlease kill the final enemy to complete the tutorial!";
        WelcomeText.transform.localPosition        = new Vector3(-547, 271, 0);
        WelcomeText.GetComponent <Text>().fontSize = 60;
        animText.Play("TextAppear");
        Enemy2.SetActive(true);
        TutorialStage = 16;
    }
Exemplo n.º 10
0
            public async Task <PluginResult> Handle(BotMessage message, CommandItems commandItems,
                                                    CancellationToken token)
            {
                var           chatId = message.ChatId;
                StringBuilder result = new();

                var user = await _userService.GetUserAsync(chatId, token);

                if (user == null)
                {
                    var sourceAdapter = _sourceAdapterFactory.GetAdapter(message.SourceId);
                    var name          = await sourceAdapter.GetName(message.ChatId, token);

                    user = await _userService.AddUserAsync(new AddUserRequest { ChatId = chatId, Name = name }, token);
                }
                result.AppendLine(WelcomeText.WelcomeUser(user.Name));

                return(PluginResult.Success(result.ToString()));
            }
Exemplo n.º 11
0
    IEnumerator TutState11()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        animText.Play("TextDisappear");
        animArrow.Stop();
        animArrow.Play("jumping arrow disappear");
        yield return(new WaitForSeconds(0.5f));

        Enemy1.transform.position = new Vector3(19.90631f, 1.021423f, -7.240521f);
        WelcomeText.GetComponent <Text>().text = "To attack, press left click. You will fire a magical bullet at the enemy.\nKill this enemy to continue.\n" +
                                                 "You can move by using WASD.\n" +
                                                 "To pause the game, simply press escape during the game.";
        WelcomeText.transform.localPosition = new Vector3(-483, -20, 0);
        Enemy1.SetActive(true);
        animText.Play("TextAppear");
        Cursor.lockState = CursorLockMode.Locked;
        TutorialStage    = 12;
    }
Exemplo n.º 12
0
    IEnumerator TutState9()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        animText.Play("TextDisappear");
        animArrow.Stop();
        animArrow.Play("jumping arrow disappear");
        yield return(new WaitForSeconds(0.5f));

        JumpingArrow.transform.localPosition   = new Vector3(267, 459, 0);
        WelcomeText.transform.localPosition    = new Vector3(460, 575, 0);
        WelcomeText.GetComponent <Text>().text = "This is your point counter.\nThe higher the difficulty,\n the more points you'll get!";
        animText.Play("TextAppear");
        animArrow["jumping arrow appear"].wrapMode = WrapMode.Once;
        animArrow.Play("jumping arrow appear");
        yield return(new WaitForSeconds(0.5f));

        animArrow.Play("jumping arrow left points");
        TutorialStage = 10;
    }
Exemplo n.º 13
0
    IEnumerator TutState17()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        animText.Play("TextDisappear");
        UIControl.setLockPauseMenu(true);
        yield return(new WaitForSeconds(0.5f));

        WelcomeText.GetComponent <Text>().text = "Congratulations! Tutorial complete.\nNow you understand the basic mechanics of Regression!\n" +
                                                 "Good luck in slaying the devil's forces!\n" +
                                                 "Returning to the main menu in 10 seconds.";
        WelcomeText.transform.localPosition        = new Vector3(-547, 271, 0);
        WelcomeText.GetComponent <Text>().fontSize = 60;
        animText.Play("TextAppear");
        UIControl.SetIsPaused(true);
        Cursor.lockState = CursorLockMode.None;
        yield return(new WaitForSeconds(10f));

        SceneManager.LoadScene("UI Scale Testing");
        PlayerPrefs.SetInt("TutorialCompleteStatus", 1);
    }
Exemplo n.º 14
0
    IEnumerator TutState2()
    {
        Animation anim = WelcomeImage.GetComponent <Animation>();

        anim["ExpandTB1"].wrapMode = WrapMode.Once;
        anim.Play("ExpandTB1");
        Animation animText = WelcomeText.GetComponent <Animation>();

        animText["TextDisappear"].wrapMode = WrapMode.Once;
        animText.Play("TextDisappear");
        yield return(new WaitForSeconds(0.5f));

        WelcomeText.GetComponent <Text>().text = "You have been cursed by the Devil himself.\n" +
                                                 "He plans to invade through the various portals here.\n" +
                                                 "As you progress through the hordes of enemies, the curse's corruption increases\n" +
                                                 "forcing you to channel this corruption into your powers, disabling their ability.\n" +
                                                 "In this tutorial, you will be able to understand this unique mechanic." +
                                                 "\nPlease press left click to continue!";
        WelcomeText.transform.localPosition = new Vector3(-700, 300, 0);
        animText["TextAppear"].wrapMode     = WrapMode.Once;
        animText.Play("TextAppear");
        TutorialStage = 4;
    }
Exemplo n.º 15
0
    IEnumerator TutState7()
    {
        Animation anim      = WelcomeImage.GetComponent <Animation>();
        Animation animText  = WelcomeText.GetComponent <Animation>();
        Animation animArrow = JumpingArrow.GetComponent <Animation>();

        animText.Play("TextDisappear");
        animArrow.Stop();
        animArrow.Play("jumping arrow disappear");
        yield return(new WaitForSeconds(0.5f));

        JumpingArrow.transform.localPosition = new Vector3(-481, -8, 0);
        JumpingArrow.transform.localRotation = Quaternion.Euler(new Vector3(0, 0, -90));
        WelcomeText.transform.localPosition  = new Vector3(-318, 25, 0);
        animText.GetComponent <Text>().text  = "These are your powers. You can see the effects in the pause menu!";
        animText.Play("TextAppear");
        animArrow["jumping arrow appear"].wrapMode = WrapMode.Once;
        animArrow.Play("jumping arrow appear");
        yield return(new WaitForSeconds(0.5f));

        animArrow.Play("Jumping arrow left");
        TutorialStage = 8;
    }
Exemplo n.º 16
0
        public override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("EditorID", false, out subEle))
            {
                if (EditorID == null)
                {
                    EditorID = new SimpleSubrecord <String>();
                }

                EditorID.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("ObjectBounds", false, out subEle))
            {
                if (ObjectBounds == null)
                {
                    ObjectBounds = new ObjectBounds();
                }

                ObjectBounds.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Name", false, out subEle))
            {
                if (Name == null)
                {
                    Name = new SimpleSubrecord <String>();
                }

                Name.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Model", false, out subEle))
            {
                if (Model == null)
                {
                    Model = new Model();
                }

                Model.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Script", false, out subEle))
            {
                if (Script == null)
                {
                    Script = new RecordReference();
                }

                Script.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Destructable", false, out subEle))
            {
                if (Destructable == null)
                {
                    Destructable = new Destructable();
                }

                Destructable.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("WelcomeText", false, out subEle))
            {
                if (WelcomeText == null)
                {
                    WelcomeText = new SimpleSubrecord <String>();
                }

                WelcomeText.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("LoopingSound", false, out subEle))
            {
                if (LoopingSound == null)
                {
                    LoopingSound = new RecordReference();
                }

                LoopingSound.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Password", false, out subEle))
            {
                if (Password == null)
                {
                    Password = new RecordReference();
                }

                Password.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Data", false, out subEle))
            {
                if (Data == null)
                {
                    Data = new TerminalData();
                }

                Data.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Selections", false, out subEle))
            {
                if (Selections == null)
                {
                    Selections = new List <TerminalMenu>();
                }

                foreach (XElement e in subEle.Elements())
                {
                    TerminalMenu tempITXT = new TerminalMenu();
                    tempITXT.ReadXML(e, master);
                    Selections.Add(tempITXT);
                }
            }
        }
Exemplo n.º 17
0
        public override void ReadData(ESPReader reader, long dataEnd)
        {
            while (reader.BaseStream.Position < dataEnd)
            {
                string subTag = reader.PeekTag();

                switch (subTag)
                {
                case "EDID":
                    if (EditorID == null)
                    {
                        EditorID = new SimpleSubrecord <String>();
                    }

                    EditorID.ReadBinary(reader);
                    break;

                case "OBND":
                    if (ObjectBounds == null)
                    {
                        ObjectBounds = new ObjectBounds();
                    }

                    ObjectBounds.ReadBinary(reader);
                    break;

                case "FULL":
                    if (Name == null)
                    {
                        Name = new SimpleSubrecord <String>();
                    }

                    Name.ReadBinary(reader);
                    break;

                case "MODL":
                    if (Model == null)
                    {
                        Model = new Model();
                    }

                    Model.ReadBinary(reader);
                    break;

                case "SCRI":
                    if (Script == null)
                    {
                        Script = new RecordReference();
                    }

                    Script.ReadBinary(reader);
                    break;

                case "DEST":
                    if (Destructable == null)
                    {
                        Destructable = new Destructable();
                    }

                    Destructable.ReadBinary(reader);
                    break;

                case "DESC":
                    if (WelcomeText == null)
                    {
                        WelcomeText = new SimpleSubrecord <String>();
                    }

                    WelcomeText.ReadBinary(reader);
                    break;

                case "SNAM":
                    if (LoopingSound == null)
                    {
                        LoopingSound = new RecordReference();
                    }

                    LoopingSound.ReadBinary(reader);
                    break;

                case "PNAM":
                    if (Password == null)
                    {
                        Password = new RecordReference();
                    }

                    Password.ReadBinary(reader);
                    break;

                case "DNAM":
                    if (Data == null)
                    {
                        Data = new TerminalData();
                    }

                    Data.ReadBinary(reader);
                    break;

                case "ITXT":
                    if (Selections == null)
                    {
                        Selections = new List <TerminalMenu>();
                    }

                    TerminalMenu tempITXT = new TerminalMenu();
                    tempITXT.ReadBinary(reader);
                    Selections.Add(tempITXT);
                    break;

                default:
                    throw new Exception();
                }
            }
        }
 public PartialsController(IUnitOfWork unitOfWork)
 {
     _unitOfWork  = unitOfWork;
     _info        = unitOfWork.Info.GetInfo();
     _welcomeText = unitOfWork.WelcomeText.GetWelcomeText();
 }
Exemplo n.º 19
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (!Request.IsAuthenticated)
            {
                if (Request["page"] != CurrentPortal.LoginPageID.ToString())
                {
                    signInPnl.Visible = true;
                    if ((String)LogInTextSetting != String.Empty)
                    {
                        LogInPageBtn.Text = (String)LogInTextSetting;
                    }
                    else
                    {
                        LogInPageBtn.Text = "Sign in with credentials";
                    }
                    LogInPageBtn.Visible = true;
                }
                else
                {
                    LogInPageBtn.Visible = false;
                }
                lcName.Visible = false;
            }
            else
            {
                String WelcomeText;
                if ((String)WelcomeTextSetting != String.Empty)
                {
                    WelcomeText = (String)WelcomeTextSetting;
                }
                else
                {
                    WelcomeText = "Welcome ##nickname## ##lastname##";
                }

                signInPnl.Visible    = false;
                LogInPageBtn.Visible = false;
                logOut.Visible       = true;
                lcName.Text          = WelcomeText
                                       .Replace("##nickname##", (string.IsNullOrEmpty(CurrentPerson.NickName) ? CurrentPerson.FirstName : CurrentPerson.NickName))
                                       .Replace("##lastname##", CurrentPerson.LastName);
                lcName.Visible = true;
            }

            if (!Page.IsPostBack)
            {
                Session["googleID"]      = string.Empty;
                Session["RedirectValue"] = string.Empty;
                if (Request["requestUrl"] != null)
                {
                    Session["RedirectValue"] = Request["requestUrl"];
                }

                if (Request.Form["sucessLogOut"] == "true") //this signes out the current user (for now)
                {
                    gSignOut();
                }

                if (Request.Form["idtoken"] != null && Request.Form["googleID"] != null) //if the user signes in via google
                {
                    if (Request.IsAuthenticated)                                         //if already lodded in
                    {
                        if (Session["RedirectValue"] != string.Empty)                    //if redirect paramater exists
                        //Response.Write((String)Session["RedirectValue"]);
                        {
                            Response.Write(Session["RedirectValue"]);
                            Response.End();
                        }
                        else  //prevents reload loop
                        {
                            Response.Write("1");
                            Response.End();
                        }
                    }
                    else
                    {
                        Session["googleID"] = googleValidation(Request.Form["idtoken"], Request.Form["googleID"]);
                        if (Session["googleID"] != "-1") //if validation returned a value

                        {
                            googleDataLayer arenaData = new googleDataLayer();

                            int personID;
                            personID = arenaData.getUserID((String)Session["googleID"]); //lookes up userID from googleID
                            if (personID < 0)
                            {
                                if (personID == -2)      //sql error
                                {
                                    Response.Write("1"); //returning 1 prevents loop
                                    Response.End();
                                }
                                else  //no user found

                                {
                                    String   personName = (String)Request.Form["name"];
                                    String[] splitName  = personName.Split(' ');
                                    String   fname      = splitName[0];
                                    String   lname      = splitName[1];
                                    String   email      = (String)Request.Form["email"];

                                    int memberStatus;
                                    int orgID = CurrentOrganization.OrganizationID;
                                    int campusID;

                                    try { memberStatus = Int32.Parse(MemberStatusSetting); }
                                    catch { throw new ModuleException(CurrentPortalPage, CurrentModule, "Default Member Status ID must be numeric.: "); }
                                    try { campusID = Int32.Parse(DefaultCampusSetting); }
                                    catch { throw new ModuleException(CurrentPortalPage, CurrentModule, "Default Campus ID must be numeric.: "); }

                                    //makes sure the names are in proper format
                                    if (fname == String.Empty)
                                    {
                                        fname = "";
                                    }
                                    if (lname == String.Empty)
                                    {
                                        lname = "";
                                    }

                                    //make a new person
                                    personID = arenaData.newUser(splitName[0], splitName[1], email, memberStatus, orgID, campusID);
                                    //add personID to google list
                                    if (personID > 0)
                                    {
                                        int asscociateGid = arenaData.SaveGoogleID(personID, (String)Session["googleID"]);
                                    }
                                }
                            }
                            if (personID == -1 || personID == -2)
                            {
                                Response.Write("something went wrong");
                                Response.End();
                            }
                            else  //match found

                            //sign in function
                            {
                                String username;
                                username = arenaData.getUserName(personID);
                                if (username == null || username == "-1" || username == "")
                                {
                                    //make a username
                                    username = arenaData.newUserName(personID, CurrentOrganization.OrganizationID);
                                }

                                if (username == "-2")
                                {
                                    Response.Write("1");
                                    Response.End();
                                }
                                else
                                {
                                    //sign in the user
                                    Arena.Security.Login login = new Arena.Security.Login(username);

                                    FormsAuthentication.SetAuthCookie(username, true);
                                    Response.Cookies["portalroles"].Value = string.Empty;
                                    Response.Redirect(Request.ApplicationPath);

                                    if (Session["RedirectValue"] != string.Empty)
                                    {
                                        //Response.Write(Session["RedirectValue"]);
                                        Response.Write("yeeee");
                                        Response.End();
                                    }
                                    else
                                    {
                                        Response.Write("yeee");
                                        //Response.Write(Request.ApplicationPath);
                                        Response.End();
                                    }
                                }
                            }
                        }
                        else
                        {
                            Response.Write("1");
                            Response.End();
                        }
                    }
                }
            }
        } //end page load
Exemplo n.º 20
0
        public override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (EditorID != null)
            {
                ele.TryPathTo("EditorID", true, out subEle);
                EditorID.WriteXML(subEle, master);
            }
            if (ObjectBounds != null)
            {
                ele.TryPathTo("ObjectBounds", true, out subEle);
                ObjectBounds.WriteXML(subEle, master);
            }
            if (Name != null)
            {
                ele.TryPathTo("Name", true, out subEle);
                Name.WriteXML(subEle, master);
            }
            if (Model != null)
            {
                ele.TryPathTo("Model", true, out subEle);
                Model.WriteXML(subEle, master);
            }
            if (Script != null)
            {
                ele.TryPathTo("Script", true, out subEle);
                Script.WriteXML(subEle, master);
            }
            if (Destructable != null)
            {
                ele.TryPathTo("Destructable", true, out subEle);
                Destructable.WriteXML(subEle, master);
            }
            if (WelcomeText != null)
            {
                ele.TryPathTo("WelcomeText", true, out subEle);
                WelcomeText.WriteXML(subEle, master);
            }
            if (LoopingSound != null)
            {
                ele.TryPathTo("LoopingSound", true, out subEle);
                LoopingSound.WriteXML(subEle, master);
            }
            if (Password != null)
            {
                ele.TryPathTo("Password", true, out subEle);
                Password.WriteXML(subEle, master);
            }
            if (Data != null)
            {
                ele.TryPathTo("Data", true, out subEle);
                Data.WriteXML(subEle, master);
            }
            if (Selections != null)
            {
                ele.TryPathTo("Selections", true, out subEle);
                List <string> xmlNames = new List <string> {
                    "Selection"
                };
                int i = 0;
                foreach (var entry in Selections)
                {
                    i = i % xmlNames.Count();
                    XElement newEle = new XElement(xmlNames[i]);
                    entry.WriteXML(newEle, master);
                    subEle.Add(newEle);
                    i++;
                }
            }
        }