コード例 #1
0
ファイル: ContentTable.cs プロジェクト: ILYA-PP/OnlineCinema
        public void AddData(string name, object value)
        {
            switch (name)
            {
            case "КодКонтента": ID.Add((int)value); break;

            case "Название": ContentName.Add((string)value); break;

            case "Рейтинг": Rating.Add(double.Parse(value.ToString())); break;

            case "Год": Year.Add((int)value); break;

            case "Сюжет": Story.Add((string)value); break;

            case "Продолжительность": Duration.Add((int)value); break;

            case "ЦенаПокупки": PurchasePrice.Add(double.Parse(value.ToString())); break;

            case "ЦенаПроката": RentalPrice.Add(double.Parse(value.ToString())); break;

            case "Постер": Poster.Add((string)value); break;

            default: MessageBox.Show($"Поле {name} отсутствует!"); break;
            }
        }
コード例 #2
0
        public override void Initialize()
        {
            Quests.Add(new HeritageQuestInfo(typeof(IngenuityQuest), 1074350));
            Quests.Add(new HeritageQuestInfo(typeof(HeaveHoQuest), 1074351));
            Quests.Add(new HeritageQuestInfo(typeof(ResponsibilityQuest), 1074352));
            Quests.Add(new HeritageQuestInfo(typeof(AllSeasonAdventurerQuest), 1074353));

            Objectives.Add(1074403); // Greetings, traveler and welcome.
            Objectives.Add(1074404);
            // Perhaps you have heard of the service I offer?  Perhaps you wish to avail yourself of the opportunity I lay before you.
            Objectives.Add(1074405);
            // Elves and humans; we lived together once in peace.  Mighty relics that attest to our friendship remain, of course.  Yet, memories faded when the Gem was shattered and the world torn asunder.  Alone in The Heartwood, our elven brothers and sisters wondered what terrible evil had befallen Sosaria.
            Objectives.Add(1074406);
            // Violent change marked the sundering of our ties.  We are different -- elves and humans.  And yet we are much alike.  I can give an elf the chance to walk as a human upon Sosaria.  I can undertake the transformation.
            Objectives.Add(1074407);
            // But you must prove yourself to me.  Humans possess a strength of character and back.  Humans are quick-witted and able to pick up a smattering of nearly any talent.  Humans are tough both mentally and physically.  And of course, humans defend their own -- sometimes with their own lives.
            Objectives.Add(1074408);
            // Seek Sledge the Versatile and learn about human ingenuity and creativity.  Seek Patricus and demonstrate your integrity and strength.
            Objectives.Add(1074409);
            // Seek out a human in need and prove your worth as a defender of humanity.  Seek Belulah in Nu'Jelm and heartily challenge the elements in a display of toughness to rival any human.
            Objectives.Add(1074411); // Or turn away and embrace your heritage.  It matters not to me.

            Story.Add(1074004);
            // You have carved a path in history, sought to understand the way from our sage companions.
            Story.Add(1074005);
            // And now you have returned full circle to the place of your origin within the arms of Mother Sosaria. There is but one thing left to do if you truly wish to embrace your elven heritage.
            Story.Add(1074006);
            // To be born once more an elf, you must strip of all worldly possessions. Nothing of man or beast much touch your skin.
            Story.Add(1074007); // Then you may step forth into history.
        }
コード例 #3
0
ファイル: Darius.cs プロジェクト: twiztedpsycho1/JustUO
        public override void Initialize()
        {
            Quests.Add(new HeritageQuestInfo(typeof(TheJoysOfLifeQuest), 1072787));
            Quests.Add(new HeritageQuestInfo(typeof(DefendingTheHerdQuest), 1072785));
            Quests.Add(new HeritageQuestInfo(typeof(CaretakerOfTheLandQuest), 1072783));
            Quests.Add(new HeritageQuestInfo(typeof(SeasonsQuest), 1072782));
            Quests.Add(new HeritageQuestInfo(typeof(TheBalanceOfNatureQuest), 1072786));
            Quests.Add(new HeritageQuestInfo(typeof(WisdomOfTheSphynxQuest), 1072784));

            Objectives.Add(1073998); // Blessings of Sosaria to you and merry met, friend.
            Objectives.Add(1073999);
            // I am glad for your company and wonder if you seek the heritage of your people?  I sense within you an elven bloodline -- the purity of which was lost when our brothers and sisters were exiled here in the Rupture.
            Objectives.Add(1074000);
            // If it is your desire to reclaim your place amongst the people, you must demonstrate that you understand and embrace the responsibilities expected of you as an elf.
            Objectives.Add(1074001);
            // The most basic lessons of our Sosaria are taught by her humblest children.  Seek Maul, the great bear, who understands instictively the seasons.

            Story.Add(1074004);
            // You have carved a path in history, sought to understand the way from our sage companions.
            Story.Add(1074005);
            // And now you have returned full circle to the place of your origin within the arms of Mother Sosaria. There is but one thing left to do if you truly wish to embrace your elven heritage.
            Story.Add(1074006);
            // To be born once more an elf, you must strip of all worldly possessions. Nothing of man or beast much touch your skin.
            Story.Add(1074007); // Then you may step forth into history.
        }
コード例 #4
0
        public void StoryAddsScene()
        {
            var sceneName = "test";
            var story     = new Story();
            var scene     = new Scene(sceneName);

            story.Add(scene);
            var single = Assert.Single(story.Scenes);

            Assert.Equal(sceneName, single.Key);
            Assert.Equal(scene, single.Value);
        }