0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-18 15:49:47 +03:00

комментарии и дополнительные изыскания

This commit is contained in:
bird_egop
2025-03-05 18:15:48 +03:00
parent 135777a4c6
commit 8c4fc8f096
6 changed files with 73 additions and 18 deletions

View File

@ -33,13 +33,7 @@ public class ScrEntryInner
public int UnkInner2 { get; set; }
public int UnkInner3 { get; set; }
/// <summary>
/// 0,1,2,3,4,5,6,-1
/// </summary>
///
/// <para>1 - неизвестно</para>
/// <para>2 - noop</para>
public int Type { get; set; }
public ScrEntryInnerType Type { get; set; }
public int UnkInner5 { get; set; }
@ -48,4 +42,19 @@ public class ScrEntryInner
public List<int> Arguments { get; set; }
public int UnkInner7 { get; set; }
}
public enum ScrEntryInnerType
{
Unspecified = -1,
_0 = 0,
_1 = 1,
_2 = 2,
_3 = 3,
_4 = 4,
CheckInternalState = 5,
/// <summary>
/// В случае 6, игра берёт UnkInner2 (индекс в Varset) и устанавливает ему значение UnkInner3
/// </summary>
SetVarsetValue = 6,
}

View File

@ -31,7 +31,7 @@ public class ScrParser
entryInner.UnkInner2 = fs.ReadInt32LittleEndian();
entryInner.UnkInner3 = fs.ReadInt32LittleEndian();
entryInner.Type = fs.ReadInt32LittleEndian();
entryInner.Type = (ScrEntryInnerType)fs.ReadInt32LittleEndian();
entryInner.UnkInner5 = fs.ReadInt32LittleEndian();
entryInner.ArgumentsCount = fs.ReadInt32LittleEndian();