コード例 #1
0
ファイル: Missions.cs プロジェクト: yazici/FRONTIERS
        public override void WakeUp()
        {
            base.WakeUp();

            Get = this;
            mInstantiatedMissions = new Dictionary <string, Mission> ();
            mActiveQuestItems     = new Dictionary <string, WorldItem> ();
        }
コード例 #2
0
 public override void OnLocalPlayerSpawn()
 {
     if (UseStartupPosition)
     {
         if (CurrentStartupPosition.ClearInventory)
         {
             Player.Local.Inventory.ClearInventory(CurrentStartupPosition.DestroyClearedItems);
         }
         if (CurrentStartupPosition.ClearWearables)
         {
             Player.Local.Wearables.ClearWearables();
         }
         if (!string.IsNullOrEmpty(CurrentStartupPosition.InventoryFillCategory))
         {
             Player.Local.Inventory.FillInventory(CurrentStartupPosition.InventoryFillCategory);
         }
         if (!string.IsNullOrEmpty(CurrentStartupPosition.WearableFillCategory))
         {
             Player.Local.Wearables.FillWearables(CurrentStartupPosition.WearableFillCategory);
         }
         for (int i = 0; i < CurrentStartupPosition.CurrencyToAdd.Count; i++)
         {
             Player.Local.Inventory.InventoryBank.Add(CurrentStartupPosition.CurrencyToAdd [i].Number, CurrentStartupPosition.CurrencyToAdd [i].Type);
         }
         if (CurrentStartupPosition.ClearLog)
         {
             Books.ClearLog();
             Missions.ClearLog();
             Conversations.ClearLog();
             Blueprints.ClearLog();
         }
         for (int i = 0; i < CurrentStartupPosition.BooksToAdd.Count; i++)
         {
             Books.AquireBook(CurrentStartupPosition.BooksToAdd [i]);
         }
     }
 }