mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-05-10 14:11:04 -05:00
20 lines
731 B
C#
20 lines
731 B
C#
// ScriptCommandPosition.cs
|
|
using System;
|
|
|
|
namespace DSPRE.ROMFiles {
|
|
public class ScriptCommandPosition {
|
|
public ScriptCommand Command { get; set; }
|
|
public int Offset { get; set; }
|
|
public string Label { get; set; } // null if no label needed
|
|
public bool IsEntryPoint { get; set; }
|
|
public int EntryPointIndex { get; set; } // -1 if not an entry point
|
|
|
|
public ScriptCommandPosition(ScriptCommand cmd, int offset, string label = null, bool isEntryPoint = false, int entryPointIndex = -1) {
|
|
Command = cmd;
|
|
Offset = offset;
|
|
Label = label;
|
|
IsEntryPoint = isEntryPoint;
|
|
EntryPointIndex = entryPointIndex;
|
|
}
|
|
}
|
|
} |