Example #1
0
        public static ActionPoint alloc(ref ActionPointData p_actionPointData)
        {
            ActionPoint l_instance = new ActionPoint();

            l_instance.ActionPointData = p_actionPointData;
            return(l_instance);
        }
Example #2
0
 public static void resetActionPoints(ref ActionPointData p_actionPointData)
 {
     p_actionPointData.CurrentActionPoints = p_actionPointData.InitialActionPoints;
 }
Example #3
0
 public static void add(ref ActionPointData p_actionPointData, float p_delta)
 {
     p_actionPointData.CurrentActionPoints = math.max(p_actionPointData.CurrentActionPoints + p_delta, 0.0f);
 }