コード例 #1
0
        public static int AddStatPool(StatPool newPool)
        {
            try
            {
                using (DB_r0739290Entities entities = new DB_r0739290Entities())
                {
                    entities.StatPool.Add(newPool);

                    return(entities.SaveChanges());
                }
            }
            catch (Exception ex)
            {
                ErrorLogging(ex);
                return(0);
            }
        }
コード例 #2
0
        public string ReturnHP()
        {
            currentHp = StatPool.CurrentHealth(this);

            return(currentHp + "\t/ " + StatPool.CurrentHealth(this));
        }