internal static object GetAddIndex(RecordAddIndexContext context) { var index = GetAddIndexStrict(context.modFile, RecordNames.CellRecordOrder); if (index != -1) { return(index + 1); } index = GetAddIndexUnordered(context.modFile, RecordNames.GameItemRecords); return(index == -1 ? GetAddIndexFirst(context.modFile, RecordNames.InitialRecordOrder) : -1); }
internal static object GetAddIndex(RecordAddIndexContext context) { return(RecordNames.GetAddIndexGameItem(context)); }
internal static object GetAddIndex(RecordAddIndexContext context) { return(GetAddIndexOrdered(context.modFile, "RACE", RecordNames.InitialRecordOrder)); }
internal static object GetAddIndex(RecordAddIndexContext context) { throw new InvalidOperationException(GetStrictMessage("LAND")); }
internal static int GetAddIndexGameItem(RecordAddIndexContext context) { var index = GetAddIndexUnordered(context.modFile, GameItemRecords); return(index == -1 ? GetAddIndexFirst(context.modFile, InitialRecordOrder) : index + 1); }