Example #1
0
		public Objective_VisitPlace(Level.ZoneEnum enZone, string sDescription, string sShortDescription)
		{
			this.enObjectiveType = QuestObjective.ObjectiveTypes.VisitPlace;
			this.enZone = enZone;
			this.sObjectiveDescriptionTemplate = sDescription;
			this.sShortObjectiveDescriptionTemplate = sShortDescription;
		}
Example #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;
 }
Example #3
0
 public void Reset()
 {
     this.xGoGoBanana = null;
     this.iGameOverCounter = 0;
     this.bHasPressed = false;
     this.liPlayersHasPressed.Clear();
     this.bGoingToRespawn = false;
     this.byEntryPoint = 0;
     this.enZoneInstead = Level.ZoneEnum.None;
     this.byZoningSpecial = 0;
     this.iRoguelike_NextEssence = 100000;
 }
Example #4
0
 public void SetGameOverZoning(Level.ZoneEnum enZoneInstead, byte byEntryPoint, byte byZoningSpecial)
 {
     this.enZoneInstead = enZoneInstead;
     this.byEntryPoint = byEntryPoint;
     this.byZoningSpecial = byZoningSpecial;
 }
Example #5
0
 public void CancelGameOverZoning()
 {
     this.enZoneInstead = Level.ZoneEnum.None;
 }
Example #6
0
 public Level(Rectangle p_recLevelBounds, Level.ZoneEnum p_enZone)
 {
     this.recCurrentBounds = p_recLevelBounds;
     this.enZone = p_enZone;
 }
Example #7
0
 public ZoningField(Rectangle p_recAreaLeaderBounds, Rectangle p_recAreaTeamBounds, Level.ZoneEnum p_enZoneToLoad, int p_iTargetSpawnPoint)
 {
     this.recAreaLeaderBounds = p_recAreaLeaderBounds;
     this.recAreaTeamBounds = p_recAreaTeamBounds;
     this.enZoneToLoad = p_enZoneToLoad;
     this.iTargetSpawnPoint = p_iTargetSpawnPoint;
 }
Example #8
0
 public void SetInfo(Level.ZoneEnum enZone, int iSpawnPoint, PlayerView xOwner)
 {
     this.bInstantiateInNetwork = true;
     this.xOwningPlayer = xOwner;
     foreach (DynamicEnvironment x in Program.game.xEntityMaster.dixDynamicEnvironment.Values)
     {
         if (x != this && x is TeleportField)
         {
             TeleportField xTele = x as TeleportField;
             if (xTele.xOwningPlayer == this.xOwningPlayer)
             {
                 xTele.Close();
             }
         }
     }
     this.enZone = enZone;
     this.iSpawnPoint = iSpawnPoint;
     if (TeleportMosRC.txRam == null)
     {
         TeleportMosRC.txRam = Program.game.Content.Load<Texture2D>("Effects/Teleport Field/ram");
     }
     if (TeleportMosRC.txStart == null)
     {
         TeleportMosRC.txStart = Program.game.Content.Load<Texture2D>("Effects/Teleport Field/Start");
     }
     if (TeleportMosRC.txRamStencil == null)
     {
         TeleportMosRC.txRamStencil = Program.game.Content.Load<Texture2D>("Effects/Teleport Field/ram_stencil");
     }
     if (TeleportMosRC.txStartStencil == null)
     {
         TeleportMosRC.txStartStencil = Program.game.Content.Load<Texture2D>("Effects/Teleport Field/Start_stencil");
     }
     string sAsset = "";
     if (enZone == Level.ZoneEnum.EvergrindCity_Main)
     {
         sAsset = "Effects/Teleport Field/evergrind_new";
     }
     else if (enZone == Level.ZoneEnum.HalloweenForestWest)
     {
         sAsset = "Effects/Teleport Field/pumpkin_new";
     }
     else if (enZone == Level.ZoneEnum.FirstPillarMountainTop)
     {
         sAsset = "Effects/Teleport Field/pillar_new";
     }
     else if (enZone == Level.ZoneEnum.WinterLand_FaeVillage)
     {
         sAsset = "Effects/Teleport Field/santafae_new";
     }
     else if (enZone == Level.ZoneEnum.FlyingTemple_OutsideEntrance)
     {
         sAsset = "Effects/Teleport Field/flyingfortress_new";
     }
     else if (enZone == Level.ZoneEnum.FlyingTempleEntrance)
     {
         sAsset = "Effects/Teleport Field/ancienttemple_new";
     }
     else if (enZone == Level.ZoneEnum.CollectorsHQ_MainHall)
     {
         sAsset = "Effects/Teleport Field/memoryroom_new";
     }
     this.xDistortedRC = new TeleportMosRC(Program.game.xLevelMaster.contRegionContent.Load<Texture2D>(sAsset), this.xTransform.v2Pos);
     this.xDistortedRC.v2Scale.X = 0.1f;
     this.xDistortedRC.v2Scale.Y = 0f;
     this.xDistortedRC.fAlpha = 0f;
     this.xDistortedRC.v2Offset = new Vector2(50f, 70f);
     Program.game.xRenderMaster.RegisterSortedRenderComponent(this.xDistortedRC);
 }
Example #9
0
 public override void ReadNetworkInstanceInfo(NetIncomingMessage msg)
 {
     Program.game.dixPlayers.TryGetValue(msg.ReadInt64(), out this.xOwningPlayer);
     this.enZone = (Level.ZoneEnum)msg.ReadInt32();
     this.SetInfo(this.enZone, 0, this.xOwningPlayer);
 }