Exemplo n.º 1
0
 public void CheckAgainstFlag(FlagCodex.FlagID enFlag)
 {
     if (Program.GetTheGame().xGameSessionData.henActiveFlags.Contains(enFlag))
     {
         this.xRenderComponent.SwitchAnimation(2, Animation.CancelOptions.IgnoreIfPlaying);
         this.bHasBeenOpened = true;
     }
 }
Exemplo n.º 2
0
 public TreasureMapEntry(TreasureMapEntry.TreasureMapID enMapID, Level.ZoneEnum enZone, Vector2 v2BuriedPos, Trophies.TrophyReward xReward, FlagCodex.FlagID enFlag)
 {
     this.enMapID = enMapID;
     this.enFlag = enFlag;
     this.v2BuriedPos = v2BuriedPos;
     this.xReward = xReward;
     this.enZone = enZone;
 }
Exemplo n.º 3
0
		public void SetInfo(Collider colInteractCollider, byte byDir, FlagCodex.FlagID enFlagID)
		{
			this.colInteractCollider = colInteractCollider;
			if (byDir < 4)
			{
				this.xRenderComponent.SwitchAnimation((ushort)byDir, Animation.CancelOptions.IgnoreIfPlaying);
			}
			this.enFlagID = enFlagID;
		}
Exemplo n.º 4
0
 public void SetInfo(Level.WorldRegion enLockRegion, Rectangle recTriggerRec, FlagCodex.FlagID enFlagToSet)
 {
     this.enLockRegion = enLockRegion;
     this.recTriggerRec = recTriggerRec;
     this.enFlagToSet = enFlagToSet;
 }
Exemplo n.º 5
0
		public ActivateFlagTrigger(FlagCodex.FlagID enFlagID, byte bySubFlag)
		{
			this.enFlagID = enFlagID;
			this.bySubFlag = bySubFlag;
		}
Exemplo n.º 6
0
 public void SetInfo(FlagCodex.FlagID enFlagToTrigger, byte bySubTrigger = 0)
 {
     this.enFlagToTrigger = enFlagToTrigger;
     this.recTriggerRec = new Rectangle((int)this.xTransform.v2Pos.X - 5, (int)this.xTransform.v2Pos.Y - 5, 10, 10);
     this.bySubTrigger = bySubTrigger;
 }
Exemplo n.º 7
0
 public void SetInfo(Rectangle recCollider, FlagCodex.FlagID enFlagToTriggerOnFinish)
 {
     this.recCollider = recCollider;
     this.enFlagToTriggerOnFinish = enFlagToTriggerOnFinish;
 }
Exemplo n.º 8
0
 public void HandleFlagTrigger(FlagCodex.FlagID enFlag)
 {
     if (Program.game.xGameSessionData.henActiveFlags.Contains(FlagCodex.FlagID._HeyListen_ShutUp) && Program.game.xLevelMaster.xCurrentLevel.enRegion != Level.WorldRegion.SeasonTemple)
     {
         return;
     }
     if (enFlag == FlagCodex.FlagID._HeyListen_Introduction)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_Introduction"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._BagTips_Naniva1)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetBagOfTricks(CAS.GetLibraryText("NoticesAndTips", "BagTips_Naniva"));
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_Introduction2)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_Introduction02"));
     }
     else if (enFlag == FlagCodex.FlagID._BagTips_Naniva2)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetBagOfTricks(CAS.GetLibraryText("NoticesAndTips", "BagTips_Naniva2"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_Bush)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_Bush"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_Jar)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_Jar"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_Barrel)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_Barrel"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_Crate)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_Crate"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_NPC)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_NPC"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_Enemy)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_Enemy"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_EXP)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_EXP"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_Energy)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_Energy"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_Fishing)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_FishingSpot"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_LevelUp)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_LevelUp"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_Loot)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_Loot"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_Shield)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_Shield"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
     }
     else if (enFlag == FlagCodex.FlagID._BagTips_Naniva3)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetBagOfTricks(CAS.GetLibraryText("NoticesAndTips", "BagTips_Naniva3"));
         Program.game.xGameSessionData.henActiveFlags.Add(enFlag);
         this.enQueuedHint = FlagCodex.FlagID._HeyListen_BagBanter01;
     }
     else if (enFlag == FlagCodex.FlagID._HeyListen_BagBanter01)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetHeyListen(CAS.GetLibraryText("DialogueSnippets", "NanivaHeyListen_BagBanter01"));
         this.enQueuedHint = FlagCodex.FlagID._BagTips_Naniva4;
     }
     else if (enFlag == FlagCodex.FlagID._BagTips_Naniva4)
     {
         Program.game.xLocalPlayer.xGUIStuff.SetBagOfTricks(CAS.GetLibraryText("NoticesAndTips", "BagTips_NanivaShutUp"));
         this.enQueuedHint = FlagCodex.FlagID.Null;
         this.iHintCooldown = 600;
     }
     this.enCurrentHint = enFlag;
     if (!Program.game.xGameSessionData.henActiveFlags.Contains(FlagCodex.FlagID._BagTips_Naniva3) && this.CheckHeyListenCount() >= 4)
     {
         this.enQueuedHint = FlagCodex.FlagID._BagTips_Naniva3;
     }
 }
Exemplo n.º 9
0
 public void SetInfo(Level.WorldRegion enRegion, FlagCodex.FlagID enFlagToTrigger)
 {
     this.enRegion = enRegion;
     this.enFlagToTrigger = enFlagToTrigger;
     this.recTriggerRec = new Rectangle((int)this.xTransform.v2Pos.X - 5, (int)this.xTransform.v2Pos.Y - 5, 10, 10);
 }
Exemplo n.º 10
0
		public SpecialFlagReward(FlagCodex.FlagID p_enFlagID)
		{
			this.enFlagID = p_enFlagID;
		}
Exemplo n.º 11
0
 public void SetInfo(Level.WorldRegion enRegion, FlagCodex.FlagID enFlagToTrigger)
 {
     this.enRegion = enRegion;
     this.enFlagToTrigger = enFlagToTrigger;
     this.CheckAgainstFlag(enFlagToTrigger);
 }
Exemplo n.º 12
0
		public GroundFlagTrigger(FlagCodex.FlagID p_enFlagToTrigger, byte p_byFlagSubTrigger, Collider p_colHitbox, List<Collider> p_lcolCollidersToCheckAgainst, bool p_bBroadcast) : base(p_colHitbox, p_lcolCollidersToCheckAgainst, p_bBroadcast)
		{
			this.enFlagToTrigger = p_enFlagToTrigger;
			this.byFlagSubTrigger = p_byFlagSubTrigger;
		}