コード例 #1
0
 public Player(string name, ClubType club, BallType ball, GloveType glove)
 {
     _name = name;
     _clubType = club;
     _ballType = ball;
     _gloveType = glove;
 }
コード例 #2
0
    // Token: 0x0600035A RID: 858 RVA: 0x0003A860 File Offset: 0x00038C60
    public static bool GetQuitClub(ClubType clubID)
    {
        string str = "QuitClub_";
        int    num = (int)clubID;

        return(GlobalsHelper.GetBool(str + num.ToString()));
    }
コード例 #3
0
 // Token: 0x06000180 RID: 384 RVA: 0x00019BE8 File Offset: 0x00017FE8
 public void CheckGrudge(ClubType Check)
 {
     if (Check == ClubType.Occult)
     {
         this.ClubIDs = this.Club3IDs;
     }
     else if (Check == ClubType.MartialArts)
     {
         this.ClubIDs = this.Club6IDs;
     }
     this.LeaderGrudge = false;
     this.ClubGrudge   = false;
     this.ID           = 1;
     while (this.ID < this.ClubIDs.Length)
     {
         if (this.StudentManager.Students[this.ClubIDs[this.ID]] != null && this.StudentManager.Students[this.ClubIDs[this.ID]].Grudge)
         {
             this.ClubGrudge = true;
         }
         this.ID++;
     }
     if (Check == ClubType.Occult)
     {
         if (this.StudentManager.Students[26].Grudge)
         {
             this.LeaderGrudge = true;
         }
     }
     else if (Check == ClubType.MartialArts && this.StudentManager.Students[21].Grudge)
     {
         this.LeaderGrudge = true;
     }
 }
コード例 #4
0
ファイル: AdminController.cs プロジェクト: Ivanhuan/Clubs
        public ActionResult ClubTypeDelete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ClubType ClubT = db.ClubTypes.Find(id);

            if (ClubT == null)
            {
                return(HttpNotFound());
            }
            var clubs = db.ClubNumbers.Where(c => c.Type.Id == ClubT.Id);
            List <ClubsNumberModel> clubsmodel = new List <ClubsNumberModel>();

            foreach (ClubNumber club in clubs)
            {
                ClubsNumberModel clubmodel = new ClubsNumberModel()
                {
                    ClubId     = club.ClubId,
                    ClubName   = club.Name,
                    State      = club.State == null ? "未知" : Enum.GetName(typeof(EnumState), club.State),
                    CreateDate = club.CreateDate == null ? "未知" : club.CreateDate.ToString()
                };
                clubsmodel.Add(clubmodel);
            }
            DelClubTypeModel model = new DelClubTypeModel()
            {
                TypeName = ClubT.Name,
                Enable   = ClubT.Enable ?? 0,
                clubs    = clubsmodel
            };

            return(View(model));
        }
コード例 #5
0
ファイル: AdminController.cs プロジェクト: Ivanhuan/Clubs
 public ActionResult AddClubType(ClubType model)
 {
     if (ModelState.IsValid)
     {
         try
         {
             var type = db.ClubTypes.Where(t => t.Name == model.Name).FirstOrDefault();
             if (type == null)
             {
                 db.ClubTypes.Add(model);
                 int res = db.SaveChanges();
                 return(RedirectToAction("ClubType", new { Msg = "成功添加" + res + "个社团类型" }));
             }
             else
             {
                 ModelState.AddModelError("", "已存在名为" + model.Name + "的类型,不可重复添加!");
             }
         }
         catch (Exception ex)
         {
             ModelState.AddModelError("", ex.Message);
         }
     }
     return(View());
 }
コード例 #6
0
    /// <summary>
    /// Toggle shot mode based on current mode and club.
    /// </summary>
    public void Toggle()
    {
        ClubType clubType = game.GetBag().GetClub().GetClubType();

        if (mode == Mode.NORMAL)
        {
            mode = Mode.POWER;
        }
        else if (mode == Mode.POWER)
        {
            if (clubType.GetClubClass() == ClubClass.WEDGE)
            {
                mode = Mode.APPROACH;
            }
            else
            {
                mode = Mode.NORMAL;
            }
        }
        else if (mode == Mode.APPROACH)
        {
            mode = Mode.NORMAL;
        }
        else
        {
            throw new Exception("Unexpected shot Mode");
        }
    }
コード例 #7
0
        public ActionResult DeleteConfirmed(int id)
        {
            ClubType clubType = db.ClubTypes.Find(id);

            db.ClubTypes.Remove(clubType);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #8
0
    // Token: 0x0600035B RID: 859 RVA: 0x0003A88C File Offset: 0x00038C8C
    public static void SetQuitClub(ClubType clubID, bool value)
    {
        int    num  = (int)clubID;
        string text = num.ToString();

        KeysHelper.AddIfMissing("QuitClub_", text);
        GlobalsHelper.SetBool("QuitClub_" + text, value);
    }
コード例 #9
0
 public static string GetClubColor(ClubType club)
 {
     if (!DefaultPalette.TryGetValue(club, out var color))
     {
         return("rgb(255,255,255)");
     }
     return($"rgb({color.R},{color.G},{color.B})");
 }
コード例 #10
0
ファイル: GolfBag.cs プロジェクト: jnocjar/GolfCaddy
    public GolfBag(ClubType clubType, BallType ballType, GloveType gloveType)
    {
        _builder = new GolfBagBuilder(clubType, ballType, gloveType);

        _club = _builder.CreateGolfClub();
        _ball = _builder.CreateGolfBall();
        _glove = _builder.CreateGolfGlove();
    } /* end Constructor */
コード例 #11
0
ファイル: AdminController.cs プロジェクト: Ivanhuan/Clubs
        public ActionResult ApplyTypeDelete(int id)
        {
            ClubType ClubT = db.ClubTypes.Find(id);

            db.ClubTypes.Remove(ClubT);
            db.SaveChanges();
            return(RedirectToAction("ClubType", new { Msg = "已成功删除社团类型[ " + ClubT.Name + " ]" }));
        }
コード例 #12
0
    /// <summary>
    /// Validate that shot mode and club combo is valid. Correct otherwise.
    /// </summary>
    public void Validate()
    {
        ClubType clubType = game.GetBag().GetClub().GetClubType();

        if (mode == Mode.APPROACH && clubType.GetClubClass() != ClubClass.WEDGE)
        {
            mode = Mode.NORMAL;
        }
    }
コード例 #13
0
ファイル: Club.cs プロジェクト: WilliamASease/rogolf
 public Club(Game game, ClubType type, float power, float loft)
 {
     this.game  = game;
     this.type  = type;
     this.power = power;
     this.loft  = loft;
     // Distances get simulated by the bag
     this.distances = new Dictionary <Mode, float>();
 }
コード例 #14
0
 // Token: 0x0600017F RID: 383 RVA: 0x000199D4 File Offset: 0x00017DD4
 public void CheckClub(ClubType Check)
 {
     if (Check == ClubType.Occult)
     {
         this.ClubIDs = this.Club3IDs;
     }
     else if (Check == ClubType.MartialArts)
     {
         this.ClubIDs = this.Club6IDs;
     }
     this.LeaderMissing = false;
     this.LeaderDead    = false;
     this.ClubMembers   = 0;
     this.ID            = 1;
     while (this.ID < this.ClubIDs.Length)
     {
         if (!StudentGlobals.GetStudentDead(this.ClubIDs[this.ID]) && !StudentGlobals.GetStudentDying(this.ClubIDs[this.ID]) && !StudentGlobals.GetStudentKidnapped(this.ClubIDs[this.ID]) && !StudentGlobals.GetStudentArrested(this.ClubIDs[this.ID]) && StudentGlobals.GetStudentReputation(this.ClubIDs[this.ID]) > -100)
         {
             this.ClubMembers++;
         }
         this.ID++;
     }
     if (this.TranqCase.VictimClubType == Check)
     {
         this.ClubMembers--;
     }
     if (ClubGlobals.Club == Check)
     {
         this.ClubMembers++;
     }
     if (Check == ClubType.Occult)
     {
         int num = 26;
         if (StudentGlobals.GetStudentDead(num) || StudentGlobals.GetStudentDying(num) || StudentGlobals.GetStudentArrested(num) || StudentGlobals.GetStudentReputation(num) <= -100)
         {
             this.LeaderDead = true;
         }
         if (StudentGlobals.GetStudentMissing(num) || StudentGlobals.GetStudentKidnapped(num) || this.TranqCase.VictimID == num)
         {
             this.LeaderMissing = true;
         }
     }
     else if (Check == ClubType.MartialArts)
     {
         int num2 = 21;
         if (StudentGlobals.GetStudentDead(num2) || StudentGlobals.GetStudentDying(num2) || StudentGlobals.GetStudentArrested(num2) || StudentGlobals.GetStudentReputation(num2) <= -100)
         {
             this.LeaderDead = true;
         }
         if (StudentGlobals.GetStudentMissing(num2) || StudentGlobals.GetStudentKidnapped(num2) || this.TranqCase.VictimID == num2)
         {
             this.LeaderMissing = true;
         }
     }
 }
コード例 #15
0
ファイル: Clubs.cs プロジェクト: WilliamASease/rogolf
 public static float GetForce(this ClubType clubType, float power)
 {
     if (powerCurves.ContainsKey(clubType))
     {
         return(powerCurves[clubType].Solve(power));
     }
     else
     {
         UnityEngine.Debug.Log(String.Format("ClubType {0} not found in powerCurve Dictionary!", clubType));
         return(power);
     }
 }
コード例 #16
0
    // Token: 0x0600149B RID: 5275 RVA: 0x000B4A50 File Offset: 0x000B2C50
    public static bool GetQuitClub(ClubType clubID)
    {
        object[] array = new object[4];
        array[0] = "Profile_";
        array[1] = GameGlobals.Profile;
        array[2] = "_QuitClub_";
        int num  = 3;
        int num2 = (int)clubID;

        array[num] = num2.ToString();
        return(GlobalsHelper.GetBool(string.Concat(array)));
    }
コード例 #17
0
        // GET: ClubTypes/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ClubType clubType = db.ClubTypes.Find(id);

            if (clubType == null)
            {
                return(HttpNotFound());
            }
            return(View(clubType));
        }
コード例 #18
0
    // Token: 0x06001499 RID: 5273 RVA: 0x000B49C8 File Offset: 0x000B2BC8
    public static void SetClubKicked(ClubType clubID, bool value)
    {
        int    num  = (int)clubID;
        string text = num.ToString();

        KeysHelper.AddIfMissing("Profile_" + GameGlobals.Profile + "_ClubKicked_", text);
        GlobalsHelper.SetBool(string.Concat(new object[]
        {
            "Profile_",
            GameGlobals.Profile,
            "_ClubKicked_",
            text
        }), value);
    }
コード例 #19
0
ファイル: Clubs.cs プロジェクト: WilliamASease/rogolf
        public static ClubClass GetClubClass(this ClubType clubType)
        {
            switch (clubType)
            {
            case ClubType.ONE_WOOD:
            case ClubType.TWO_WOOD:
            case ClubType.THREE_WOOD:
            case ClubType.FOUR_WOOD:
            case ClubType.FIVE_WOOD:
            case ClubType.SEVEN_WOOD:
            case ClubType.NINE_WOOD:
                return(ClubClass.WOOD);

            case ClubType.TWO_HYBRID:
            case ClubType.THREE_HYBRID:
            case ClubType.FOUR_HYBRID:
            case ClubType.FIVE_HYBRID:
            case ClubType.SIX_HYBRID:
            case ClubType.SEVEN_HYBRID:
                return(ClubClass.HYBRID);

            case ClubType.ONE_IRON:
            case ClubType.TWO_IRON:
            case ClubType.THREE_IRON:
            case ClubType.FOUR_IRON:
            case ClubType.FIVE_IRON:
            case ClubType.SIX_IRON:
            case ClubType.SEVEN_IRON:
            case ClubType.EIGHT_IRON:
            case ClubType.NINE_IRON:
                return(ClubClass.IRON);

            case ClubType.PITCHING_WEDGE:
            case ClubType.GAP_WEDGE:
            case ClubType.SAND_WEDGE:
            case ClubType.LOB_WEDGE:
            case ClubType.FINAL_WEDGE:
                return(ClubClass.WEDGE);

            case ClubType.PUTTER:
                return(ClubClass.PUTTER);

            default:
                return(ClubClass.NONE);
            }
        }
コード例 #20
0
ファイル: AdminController.cs プロジェクト: Ivanhuan/Clubs
        public ActionResult ClubTypeClose(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ClubType ClubT = db.ClubTypes.Find(id);

            if (ClubT == null)
            {
                return(HttpNotFound());
            }
            if (ClubT.Enable == 1)
            {
                ClubT.Enable = 0;
                db.SaveChanges();
                return(RedirectToAction("ClubType", new { Msg = "[" + ClubT.Name + "]已关闭" }));
            }
            return(Content("<script>alert('已关闭的类型');window.location.href='../ClubType';</script>"));
        }
コード例 #21
0
ファイル: TypeService.cs プロジェクト: MrZablah/CMCore
        public string AddClubR(TypeDto typeDto, Club clubInDb)
        {
            var typeInDb = ExistName(typeDto.Name).FirstOrDefault();

            if (typeInDb == null)
            {
                var createdType = CreateNew(typeDto);
                if (createdType == null)
                {
                    return("Type couldn't be created!");
                }

                var newType     = createdType;
                var newClubType = new ClubType
                {
                    ClubId = clubInDb.Id,
                    TypeId = newType.Id
                };
                Context.ClubTypes.AddAsync(newClubType);

                return(null);
            }

            if (string.IsNullOrEmpty(typeDto.Name))
            {
                return("You send a null or empty Type!");
            }

            if (!clubInDb.ClubTypes.Any(cr => cr.TypeId == typeInDb.Id))
            {
                var newClubType = new ClubType
                {
                    ClubId = clubInDb.Id,
                    TypeId = typeInDb.Id
                };
                Context.ClubTypes.AddAsync(newClubType);
            }

            return(null);
        }
コード例 #22
0
        public ActionResult Edit([Bind(Include = "ID,ClubTypeName,LastModified,LastModifiedBy")] ClubType clubType)
        {
            if (ModelState.IsValid)
            {
                ClubType m = new ClubType()
                {
                    ID             = clubType.ID,
                    ClubTypeName   = clubType.ClubTypeName,
                    LastModified   = clubType.LastModified,
                    LastModifiedBy = clubType.LastModifiedBy,
                };

                if (m.LastModified == null)
                {
                    DateTime date       = DateTime.Now;
                    string   formatDate = date.ToString("MM/dd/yyyy");
                    m.LastModified = Convert.ToDateTime(formatDate);
                }
                db.Entry(m).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }
            return(View(clubType));
        }
コード例 #23
0
ファイル: Clubs.cs プロジェクト: WilliamASease/rogolf
        public static string GetClubName(this ClubType clubType)
        {
            switch (clubType)
            {
            case ClubType.ONE_WOOD:
                return("1W");

            case ClubType.TWO_WOOD:
                return("2W");

            case ClubType.THREE_WOOD:
                return("3W");

            case ClubType.FOUR_WOOD:
                return("4W");

            case ClubType.FIVE_WOOD:
                return("5W");

            case ClubType.SEVEN_WOOD:
                return("7W");

            case ClubType.NINE_WOOD:
                return("9W");

            case ClubType.TWO_HYBRID:
                return("2H");

            case ClubType.THREE_HYBRID:
                return("3H");

            case ClubType.FOUR_HYBRID:
                return("4H");

            case ClubType.FIVE_HYBRID:
                return("5H");

            case ClubType.SIX_HYBRID:
                return("6H");

            case ClubType.SEVEN_HYBRID:
                return("7H");

            case ClubType.ONE_IRON:
                return("1I");

            case ClubType.TWO_IRON:
                return("2I");

            case ClubType.THREE_IRON:
                return("3I");

            case ClubType.FOUR_IRON:
                return("4I");

            case ClubType.FIVE_IRON:
                return("5I");

            case ClubType.SIX_IRON:
                return("6I");

            case ClubType.SEVEN_IRON:
                return("7I");

            case ClubType.EIGHT_IRON:
                return("8I");

            case ClubType.NINE_IRON:
                return("9I");

            case ClubType.PITCHING_WEDGE:
                return("PW");

            case ClubType.GAP_WEDGE:
                return("GW");

            case ClubType.SAND_WEDGE:
                return("SW");

            case ClubType.LOB_WEDGE:
                return("LW");

            case ClubType.FINAL_WEDGE:
                return("FW");

            case ClubType.PUTTER:
                return("P");

            default:
                return("N");
            }
        }
コード例 #24
0
ファイル: Clubs.cs プロジェクト: WilliamASease/rogolf
 public static bool IsNotPutter(this ClubType clubType)
 {
     return(clubType != ClubType.PUTTER);
 }
コード例 #25
0
 public Club(ClubType type)
 {
     this.type = type;
 }
コード例 #26
0
	private void Start()
	{
		this.targetRotation = base.transform.rotation;
		this.Student.Club = this.Club;
	}
コード例 #27
0
 private void Update()
 {
     if (this.Yandere.transform.position.x > base.transform.position.x && Vector3.Distance(base.transform.position, this.Yandere.transform.position) < 1f)
     {
         if (this.Yandere.Dragging)
         {
             if (this.Ragdoll == null)
             {
                 this.Ragdoll = this.Yandere.Ragdoll.GetComponent <RagdollScript>();
             }
             if (this.Ragdoll.Tranquil)
             {
                 if (!this.Prompt.enabled)
                 {
                     this.Prompt.enabled = true;
                 }
             }
             else if (this.Prompt.enabled)
             {
                 this.Prompt.Hide();
                 this.Prompt.enabled = false;
             }
         }
         else if (this.Prompt.enabled)
         {
             this.Prompt.Hide();
             this.Prompt.enabled = false;
         }
     }
     else if (this.Prompt.enabled)
     {
         this.Prompt.Hide();
         this.Prompt.enabled = false;
     }
     if (this.Prompt.enabled && this.Prompt.Circle[0].fillAmount == 0f)
     {
         this.Prompt.Circle[0].fillAmount = 1f;
         if (!this.Yandere.Chased && this.Yandere.Chasers == 0)
         {
             this.Yandere.TranquilHiding = true;
             this.Yandere.CanMove        = false;
             this.Prompt.enabled         = false;
             this.Prompt.Hide();
             this.Ragdoll.TranqCase   = this;
             this.VictimClubType      = this.Ragdoll.Student.Club;
             this.VictimID            = this.Ragdoll.StudentID;
             this.Door.Prompt.enabled = true;
             this.Door.enabled        = true;
             this.Occupied            = true;
             this.Animate             = true;
             this.Open = true;
         }
     }
     if (this.Animate)
     {
         if (this.Open)
         {
             this.Rotation = Mathf.Lerp(this.Rotation, 105f, Time.deltaTime * 10f);
         }
         else
         {
             this.Rotation = Mathf.Lerp(this.Rotation, 0f, Time.deltaTime * 10f);
             this.Ragdoll.Student.OsanaHairL.transform.localScale = Vector3.MoveTowards(this.Ragdoll.Student.OsanaHairL.transform.localScale, new Vector3(0f, 0f, 0f), Time.deltaTime * 10f);
             this.Ragdoll.Student.OsanaHairR.transform.localScale = Vector3.MoveTowards(this.Ragdoll.Student.OsanaHairR.transform.localScale, new Vector3(0f, 0f, 0f), Time.deltaTime * 10f);
             if (this.Rotation < 1f)
             {
                 this.Animate  = false;
                 this.Rotation = 0f;
             }
         }
         this.Hinge.localEulerAngles = new Vector3(0f, 0f, this.Rotation);
     }
 }
コード例 #28
0
    public void UpdateStats()
    {
        Debug.Log("The Stats script just checked the Class script for info and updated the bars accordingly.");
        this.Grade = this.Class.BiologyGrade;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite = this.Subject1Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite.color = new Color(1f, 1f, 1f, 1f);
                this.Grade--;
            }
            else
            {
                uisprite.color = new Color(1f, 1f, 1f, 0.5f);
            }
            this.BarID++;
        }
        if (this.Class.BiologyGrade < 5)
        {
            this.Subject1Bars[this.Class.BiologyGrade + 1].color = ((this.Class.BiologyBonus > 0) ? new Color(1f, 0f, 0f, 1f) : new Color(1f, 1f, 1f, 0.5f));
        }
        this.Grade = this.Class.ChemistryGrade;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite2 = this.Subject2Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite2.color = new Color(uisprite2.color.r, uisprite2.color.g, uisprite2.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite2.color = new Color(uisprite2.color.r, uisprite2.color.g, uisprite2.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (this.Class.ChemistryGrade < 5)
        {
            this.Subject2Bars[this.Class.ChemistryGrade + 1].color = ((this.Class.ChemistryBonus > 0) ? new Color(1f, 0f, 0f, 1f) : new Color(1f, 1f, 1f, 0.5f));
        }
        this.Grade = this.Class.LanguageGrade;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite3 = this.Subject3Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite3.color = new Color(uisprite3.color.r, uisprite3.color.g, uisprite3.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite3.color = new Color(uisprite3.color.r, uisprite3.color.g, uisprite3.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (this.Class.LanguageGrade < 5)
        {
            this.Subject3Bars[this.Class.LanguageGrade + 1].color = ((this.Class.LanguageBonus > 0) ? new Color(1f, 0f, 0f, 1f) : new Color(1f, 1f, 1f, 0.5f));
        }
        this.Grade = this.Class.PhysicalGrade;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite4 = this.Subject4Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite4.color = new Color(uisprite4.color.r, uisprite4.color.g, uisprite4.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite4.color = new Color(uisprite4.color.r, uisprite4.color.g, uisprite4.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (this.Class.PhysicalGrade < 5)
        {
            this.Subject4Bars[this.Class.PhysicalGrade + 1].color = ((this.Class.PhysicalBonus > 0) ? new Color(1f, 0f, 0f, 1f) : new Color(1f, 1f, 1f, 0.5f));
        }
        this.Grade = this.Class.PsychologyGrade;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite5 = this.Subject5Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite5.color = new Color(uisprite5.color.r, uisprite5.color.g, uisprite5.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite5.color = new Color(uisprite5.color.r, uisprite5.color.g, uisprite5.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (this.Class.PsychologyGrade < 5)
        {
            this.Subject5Bars[this.Class.PsychologyGrade + 1].color = ((this.Class.PsychologyBonus > 0) ? new Color(1f, 0f, 0f, 1f) : new Color(1f, 1f, 1f, 0.5f));
        }
        this.Grade = this.Class.Seduction;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite6 = this.Subject6Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite6.color = new Color(uisprite6.color.r, uisprite6.color.g, uisprite6.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite6.color = new Color(uisprite6.color.r, uisprite6.color.g, uisprite6.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (this.Class.Seduction < 5)
        {
            this.Subject6Bars[this.Class.Seduction + 1].color = ((this.Class.SeductionBonus > 0) ? new Color(1f, 0f, 0f, 1f) : new Color(1f, 1f, 1f, 0.5f));
        }
        this.Grade = this.Class.Numbness;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite7 = this.Subject7Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite7.color = new Color(uisprite7.color.r, uisprite7.color.g, uisprite7.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite7.color = new Color(uisprite7.color.r, uisprite7.color.g, uisprite7.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (this.Class.Numbness < 5)
        {
            this.Subject7Bars[this.Class.Numbness + 1].color = ((this.Class.NumbnessBonus > 0) ? new Color(1f, 0f, 0f, 1f) : new Color(1f, 1f, 1f, 0.5f));
        }
        this.Grade = this.Class.Enlightenment;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite8 = this.Subject8Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite8.color = new Color(uisprite8.color.r, uisprite8.color.g, uisprite8.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite8.color = new Color(uisprite8.color.r, uisprite8.color.g, uisprite8.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (this.Class.Enlightenment < 5)
        {
            this.Subject8Bars[this.Class.Enlightenment + 1].color = ((this.Class.EnlightenmentBonus > 0) ? new Color(1f, 0f, 0f, 1f) : new Color(1f, 1f, 1f, 0.5f));
        }
        this.Ranks[1].text = "Rank: " + this.Class.BiologyGrade.ToString();
        this.Ranks[2].text = "Rank: " + this.Class.ChemistryGrade.ToString();
        this.Ranks[3].text = "Rank: " + this.Class.LanguageGrade.ToString();
        this.Ranks[4].text = "Rank: " + this.Class.PhysicalGrade.ToString();
        this.Ranks[5].text = "Rank: " + this.Class.PsychologyGrade.ToString();
        this.Ranks[6].text = "Rank: " + this.Class.Seduction.ToString();
        this.Ranks[7].text = "Rank: " + this.Class.Numbness.ToString();
        this.Ranks[8].text = "Rank: " + this.Class.Enlightenment.ToString();
        ClubType club = this.PauseScreen.Yandere.Club;
        string   str;

        this.ClubLabels.TryGetValue(club, out str);
        this.ClubLabel.text = "Club: " + str;
    }
コード例 #29
0
    // Token: 0x060007D2 RID: 2002 RVA: 0x00077B90 File Offset: 0x00075F90
    public void UpdateStats()
    {
        this.Grade = ClassGlobals.BiologyGrade;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite = this.Subject1Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite.color = new Color(1f, 1f, 1f, 1f);
                this.Grade--;
            }
            else
            {
                uisprite.color = new Color(1f, 1f, 1f, 0.5f);
            }
            this.BarID++;
        }
        if (ClassGlobals.BiologyGrade < 5)
        {
            this.Subject1Bars[ClassGlobals.BiologyGrade + 1].color = ((ClassGlobals.BiologyBonus <= 0) ? new Color(1f, 1f, 1f, 0.5f) : new Color(1f, 0f, 0f, 1f));
        }
        this.Grade = ClassGlobals.ChemistryGrade;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite2 = this.Subject2Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite2.color = new Color(uisprite2.color.r, uisprite2.color.g, uisprite2.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite2.color = new Color(uisprite2.color.r, uisprite2.color.g, uisprite2.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (ClassGlobals.ChemistryGrade < 5)
        {
            this.Subject2Bars[ClassGlobals.ChemistryGrade + 1].color = ((ClassGlobals.ChemistryBonus <= 0) ? new Color(1f, 1f, 1f, 0.5f) : new Color(1f, 0f, 0f, 1f));
        }
        this.Grade = ClassGlobals.LanguageGrade;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite3 = this.Subject3Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite3.color = new Color(uisprite3.color.r, uisprite3.color.g, uisprite3.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite3.color = new Color(uisprite3.color.r, uisprite3.color.g, uisprite3.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (ClassGlobals.LanguageGrade < 5)
        {
            this.Subject3Bars[ClassGlobals.LanguageGrade + 1].color = ((ClassGlobals.LanguageBonus <= 0) ? new Color(1f, 1f, 1f, 0.5f) : new Color(1f, 0f, 0f, 1f));
        }
        this.Grade = ClassGlobals.PhysicalGrade;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite4 = this.Subject4Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite4.color = new Color(uisprite4.color.r, uisprite4.color.g, uisprite4.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite4.color = new Color(uisprite4.color.r, uisprite4.color.g, uisprite4.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (ClassGlobals.PhysicalGrade < 5)
        {
            this.Subject4Bars[ClassGlobals.PhysicalGrade + 1].color = ((ClassGlobals.PhysicalBonus <= 0) ? new Color(1f, 1f, 1f, 0.5f) : new Color(1f, 0f, 0f, 1f));
        }
        this.Grade = ClassGlobals.PsychologyGrade;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite5 = this.Subject5Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite5.color = new Color(uisprite5.color.r, uisprite5.color.g, uisprite5.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite5.color = new Color(uisprite5.color.r, uisprite5.color.g, uisprite5.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (ClassGlobals.PsychologyGrade < 5)
        {
            this.Subject5Bars[ClassGlobals.PsychologyGrade + 1].color = ((ClassGlobals.PsychologyBonus <= 0) ? new Color(1f, 1f, 1f, 0.5f) : new Color(1f, 0f, 0f, 1f));
        }
        this.Grade = PlayerGlobals.Seduction;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite6 = this.Subject6Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite6.color = new Color(uisprite6.color.r, uisprite6.color.g, uisprite6.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite6.color = new Color(uisprite6.color.r, uisprite6.color.g, uisprite6.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (PlayerGlobals.Seduction < 5)
        {
            this.Subject6Bars[PlayerGlobals.Seduction + 1].color = ((PlayerGlobals.SeductionBonus <= 0) ? new Color(1f, 1f, 1f, 0.5f) : new Color(1f, 0f, 0f, 1f));
        }
        this.Grade = PlayerGlobals.Numbness;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite7 = this.Subject7Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite7.color = new Color(uisprite7.color.r, uisprite7.color.g, uisprite7.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite7.color = new Color(uisprite7.color.r, uisprite7.color.g, uisprite7.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (PlayerGlobals.Numbness < 5)
        {
            this.Subject7Bars[PlayerGlobals.Numbness + 1].color = ((PlayerGlobals.NumbnessBonus <= 0) ? new Color(1f, 1f, 1f, 0.5f) : new Color(1f, 0f, 0f, 1f));
        }
        this.Grade = PlayerGlobals.Enlightenment;
        this.BarID = 1;
        while (this.BarID < 6)
        {
            UISprite uisprite8 = this.Subject8Bars[this.BarID];
            if (this.Grade > 0)
            {
                uisprite8.color = new Color(uisprite8.color.r, uisprite8.color.g, uisprite8.color.b, 1f);
                this.Grade--;
            }
            else
            {
                uisprite8.color = new Color(uisprite8.color.r, uisprite8.color.g, uisprite8.color.b, 0.5f);
            }
            this.BarID++;
        }
        if (PlayerGlobals.Enlightenment < 5)
        {
            this.Subject8Bars[PlayerGlobals.Enlightenment + 1].color = ((PlayerGlobals.EnlightenmentBonus <= 0) ? new Color(1f, 1f, 1f, 0.5f) : new Color(1f, 0f, 0f, 1f));
        }
        this.Ranks[1].text = "Rank: " + ClassGlobals.BiologyGrade.ToString();
        this.Ranks[2].text = "Rank: " + ClassGlobals.ChemistryGrade.ToString();
        this.Ranks[3].text = "Rank: " + ClassGlobals.LanguageGrade.ToString();
        this.Ranks[4].text = "Rank: " + ClassGlobals.PhysicalGrade.ToString();
        this.Ranks[5].text = "Rank: " + ClassGlobals.PsychologyGrade.ToString();
        this.Ranks[6].text = "Rank: " + PlayerGlobals.Seduction.ToString();
        this.Ranks[7].text = "Rank: " + PlayerGlobals.Numbness.ToString();
        this.Ranks[8].text = "Rank: " + PlayerGlobals.Enlightenment.ToString();
        ClubType club = ClubGlobals.Club;
        string   str;
        bool     flag = this.ClubLabels.TryGetValue(club, out str);

        this.ClubLabel.text = "Club: " + str;
    }
コード例 #30
0
 public GolfBagBuilder(ClubType clubType, BallType ballType, GloveType gloveType)
 {
 }