コード例 #1
0
ファイル: MyGameplayLayer.cs プロジェクト: liruenth/Bartizan
        public override void BatchedRender()
        {
            base.BatchedRender();

            List <Entity> teamRevivers = base.Scene[GameTags.Dummy]; // Using Dummy tag for MyTeamReviver

            for (int i = 0; i < teamRevivers.Count; i++)
            {
                MyTeamReviver teamReviver = (MyTeamReviver)teamRevivers[i];
                teamReviver.HUDRender();
            }
        }
コード例 #2
0
ファイル: MyLevel.cs プロジェクト: liruenth/Bartizan
        public override void Update()
        {
            base.Update();
            List <Entity> teamRevivers = base[GameTags.Dummy];            // Using Dummy tag for MyTeamReviver

            for (int i = 0; i < teamRevivers.Count; i++)
            {
                MyTeamReviver teamReviver = (MyTeamReviver)(teamRevivers[i]);
                if (teamReviver.Active)
                {
                    teamReviver.ReviveUpdate();
                }
            }
        }
コード例 #3
0
ファイル: MyPlayerCorpse.cs プロジェクト: liruenth/Bartizan
 public override void Update()
 {
     base.Update();
     if (this.reviverAdded == true)
     {
         this.reviverAdded = false;
         List <Entity> teamRevivers = base.Level[GameTags.TeamReviver];
         if (teamRevivers.Count > 0)
         {
             TeamReviver teamReviver = (TeamReviver)(teamRevivers[teamRevivers.Count - 1]);
             base.Level.Layers[teamReviver.LayerIndex].Remove(teamReviver);
             MyTeamReviver myTeamReviver = new MyTeamReviver(
                 this,
                 TeamReviver.Modes.TeamDeathmatch,
                 ((MyMatchVariants)(base.Level.Session.MatchSettings.Variants)).GhostRevives
                 );
             base.Level.Layers[myTeamReviver.LayerIndex].Add(myTeamReviver, false);
         }
     }
 }