コード例 #1
0
        internal static ClassPoints toClassPoints(LUA.LuaClassPoints lcp)
        {
            ClassPoints cp = new ClassPoints();

            cp.classID = lcp.ID;
            cp.points  = lcp.amount;
            return(cp);
        }
コード例 #2
0
        internal static ClassPoints Copy(BaseClass bc)
        {
            ClassPoints temp = new ClassPoints(bc);

            temp.points      = bc.classPoints.points;
            temp.spendPoints = bc.classPoints.spendPoints;

            return(temp);
        }
コード例 #3
0
        public ClassExperience(BaseClass c)
        {
            baseClass   = c;
            exp         = c.classEXP.totalExp;
            level       = c.classEXP.classLevel;
            classID     = c.classIdentifier;
            stats       = c.classStats;
            bIsUnlocked = c.bIsUnlocked;

            classPoints = ClassPoints.Copy(c);
        }
コード例 #4
0
 internal void ReloadFromSaveFile(CharacterSaveData csd)
 {
     for (int i = 0; i < csd.ccsd.postLoadCCC.charClassList.Count; i++)
     {
         var c = csd.ccsd.postLoadCCC.charClassList[i];
         c.classEXP.totalExp   = exp;
         c.classEXP.classLevel = level;
         ClassPoints.PasteBackFromSave(classPoints, c);
         c.classStats  = stats;
         c.bIsUnlocked = bIsUnlocked;
         c.classEXP.CalculateResetExpAndLevels();
     }
 }
コード例 #5
0
 public void AddPoints(ClassPoints cp)
 {
     classPoints.classID = classIdentifier;
     classPoints.points += Math.Abs(cp.points);
 }
コード例 #6
0
 internal static void PasteBackFromSave(ClassPoints cp, BaseClass bc)
 {
     bc.classPoints             = new ClassPoints(bc);
     bc.classPoints.points      = cp.points;
     bc.classPoints.spendPoints = cp.spendPoints;
 }