Example #1
0
    // PUBLIC METHODS

    public int GetPlayedTimes()
    {
        int value = 0;

        Array.ForEach(Games, (data) => { value += data.PlayedTimes; });
        return(value);
    }
Example #2
0
    public int GetScore()
    {
        int value = 0;

        Array.ForEach(Games, (data) => { value += data.Score; });
        return(value);
    }
Example #3
0
    public float GetTimeSpent()
    {
        float value = 0;

        Array.ForEach(Games, (data) => { value += data.TimeSpent; });
        return(value);
    }
Example #4
0
    public int GetDeaths()
    {
        int value = 0;

        Array.ForEach(Games, (data) => { value += data.Deaths; });
        return(value);
    }
Example #5
0
    public int GetHeadshots()
    {
        int value = 0;

        Array.ForEach(Games, (data) => { value += data.Headshots; });
        return(value);
    }
Example #6
0
    public int GetKills()
    {
        int value = 0;

        Array.ForEach(Games, (data) => { value += data.Kills; });
        return(value);
    }
Example #7
0
    public int GetMoney()
    {
        int value = 0;

        Array.ForEach(Games, (data) => { value += data.Money; });
        return(value);
    }
Example #8
0
    public int GetExperience()
    {
        int value = 0;

        Array.ForEach(Games, (data) => { value += data.Experience; });
        return(value);
    }
Example #9
0
        public static void ForEach(
            this System.Array array,
            Action <int[]> action)
        {
            var Rank = array.Rank;
            var Ends = new int[Rank];

            for (int i = 0; i < Rank; i++)
            {
                Ends[i] = array.GetUpperBound(i) + 1;
            }
            array.ForEach(Ends, action);
        }
Example #10
0
    public double GetLastPlayedDate()
    {
        double value = 0;

        Array.ForEach(Games,
                      (data) =>
        {
            if (value < data.LastPlayedDate)
            {
                value = data.LastPlayedDate;
            }
        });
        return(value);
    }
Example #11
0
 private void BindComponentProperty(HbmComponent componentMapping, Property property, Component model)
 {
     property.IsUpdateable = componentMapping.update;
     property.IsInsertable = componentMapping.insert;
     if (componentMapping.unique)
     {
         model.Owner.Table.CreateUniqueKey(model.ColumnIterator.OfType <Column>().ToList());
     }
     HbmTuplizer[] tuplizers = componentMapping.tuplizer;
     if (tuplizers != null)
     {
         Array.ForEach(tuplizers.Select(tuplizer => new
         {
             TuplizerClassName = FullQualifiedClassName(tuplizer.@class, mappings),
             Mode = tuplizer.entitymode.ToEntityMode()
         }).ToArray(),
                       x => model.AddTuplizer(x.Mode, x.TuplizerClassName));
     }
 }
 public static void ForEach <T>(this T[] array, Action <T> action)
 {
     Array.ForEach(array, action);
 }
Example #13
0
 public void ForEach(Action <T> iterator) => Arr.ForEach(array, iterator);