Esempio n. 1
0
        public Effect(EffectType type, EffectOptions option)
        {
            Type     = type;
            channels = new HDMAChannel[Type.ChannelsLength];
            Option   = option;

            int         j = 0;
            HDMAChannel c;

            for (int i = 0; i < 8 && j < channels.Length; i++)
            {
                c = i;
                if (!c.UsedByOriginalGame)
                {
                    channels[j] = c;
                    j++;
                }
            }

            if (j < channels.Length - 1)
            {
                for (int i = 0; i < 8 && j < channels.Length; i++)
                {
                    c = i;
                    if (c.UsedByOriginalGame)
                    {
                        channels[j] = c;
                        j++;
                    }
                }
            }
        }
Esempio n. 2
0
 public void SetChannel(uint id, HDMAChannel channel)
 {
     if (id >= channels.Length)
     {
         id = (uint)(channels.Length - 1);
     }
     channels[id] = channel;
 }
Esempio n. 3
0
        public static void SetUsedByTheOriginalGame(int ID, bool value)
        {
            HDMAChannel c = ID;

            c.UsedByOriginalGame = value;
        }