private void SendEndPosToConfig(int stage, bool brag)
        {
            int offset = brag ? bragPosStart : endPosStart;

            while (offset < (brag ? bragPosEnd : bragPosStart))
            {
                if (exe[offset] == stage)
                {
                    offset += 4;

                    PositionEnd[] pos = new PositionEnd[brag ? 4 : 5];
                    for (int i = 0; i < pos.Length; i++)
                    {
                        pos[i] = new PositionEnd()
                        {
                            Position = new GenericStageInjectionCommon.Structs.Vector(
                                ReadFloat(offset),
                                ReadFloat(offset + 4),
                                ReadFloat(offset + 8)),
                            Pitch = ReadWord(offset + 0xC)
                        };
                        offset += 0x14;
                    }

                    if (brag)
                    {
                        Program.MainForm.ConfigEditor.GetBragPositions(pos);
                    }
                    else
                    {
                        Program.MainForm.ConfigEditor.GetEndPositions(pos);
                    }
                }
                else
                {
                    offset += 0x68;
                }
            }
        }
Exemple #2
0
 void EWrapper.positionEnd()
 {
     PositionEnd?.Invoke();
 }
 void IEWrapper.PositionEnd()
 {
     PositionEnd?.Invoke();
 }
Exemple #4
0
 /// <summary>
 /// PositionEnd event invocator
 /// </summary>
 protected virtual void OnPositionEnd()
 {
     PositionEnd?.Invoke(this, EventArgs.Empty);
 }
 public virtual void positionEnd()
 {
     PositionEnd?.Invoke(this, new PositionEndArgs());
 }
Exemple #6
0
 public void positionEnd()
 {
     PositionEnd?.Invoke();
 }
Exemple #7
0
        void EWrapper.positionEnd()
        {
            ShowDebugMessage();

            PositionEnd?.Invoke();
        }
 public void positionEnd()
 {
     PositionEnd.RaiseEvent(this, EventArgs.Empty);
 }