Ejemplo n.º 1
0
    /// <summary> All Event Flag values for the savegame </summary>
    public static bool[] GetEventFlags(this IEventFlagArray source)
    {
        var result = new bool[source.EventFlagCount];

        for (int i = 0; i < result.Length; i++)
        {
            result[i] = source.GetEventFlag(i);
        }
        return(result);
    }
Ejemplo n.º 2
0
 /// <summary> All Event Flag values for the savegame </summary>
 public static void SetEventFlags(this IEventFlagArray source, ReadOnlySpan <bool> value)
 {
     if (value.Length != source.EventFlagCount)
     {
         return;
     }
     for (int i = 0; i < value.Length; i++)
     {
         source.SetEventFlag(i, value[i]);
     }
 }