public void SetUp()
 {
     statDef = new FakeStatDefinition()
     {
         statName   = "Health",
         category   = "Default",
         baseValue  = 10,
         maxValue   = 100,
         startLevel = 2,
         levels     = new StatLevel[]
         {
             new StatLevel()
             {
                 maxValue = 100f
             },
             new StatLevel()
             {
                 maxValue = 200f
             },
             new StatLevel()
             {
                 maxValue = 300f
             },
             new StatLevel()
             {
                 maxValue = 400f
             },
             new StatLevel()
             {
                 maxValue = 500f
             },
         },
     };
 }
Exemple #2
0
        public void SetUp()
        {
            statDef = new FakeStatDefinition()
            {
                statName           = "Health",
                category           = "Default",
                baseValue          = 10,
                maxValue           = 100,
                startLevel         = 2,
                autoProgressLevels = true,
                levels             = new StatLevel[]
                {
                    new StatLevel()
                    {
                        maxValue = 100f, experienceRequired = 0f
                    },
                    new StatLevel()
                    {
                        maxValue = 200f, experienceRequired = 200f
                    },
                    new StatLevel()
                    {
                        maxValue = 300f, experienceRequired = 500f
                    },
                    new StatLevel()
                    {
                        maxValue = 400f, experienceRequired = 1000f
                    },
                    new StatLevel()
                    {
                        maxValue = 500f, experienceRequired = 3000f
                    },
                },
            };

            statDefBlank = new FakeStatDefinition()
            {
                statName           = "Blank",
                category           = "Default",
                baseValue          = 0,
                maxValue           = 100,
                startLevel         = 0,
                autoProgressLevels = true,
                levels             = new StatLevel[]
                {
                },
            };
        }