public List <ArkTribeLogEntry> GetTribeLog(OnFindSteamProfile steamCallback) { //Open tribe log data. InlineProperty tribeLogData = GetPropertyByName("TribeLog"); if (tribeLogData == null) { return(new List <ArkTribeLogEntry>()); } InlineArrayProperty arr = (InlineArrayProperty)tribeLogData; List <ArkTribeLogEntry> output = new List <ArkTribeLogEntry>(); foreach (string s in arr.data) { ArkTribeLogString str = ArkTribeLogString.ParseArkML(s); ArkTribeLogEntry entry = ArkTribeLogEntry.ParseEntry(str, linkedWorld.players, linkedWorld.dinos, tribeId, steamCallback); if (entry != null) { output.Add(entry); } } //Reverse this because Ark saves it backwards output.Reverse(); return(output); }
public override void Destroy() { m_leftToggleColorMask = null: m_middleToggleColorMask = null: m_rightToggleColorMask = null: m_inlineColorMask = null: }
public InlineRunWithProperty(InlineProperty property, InlineRun run) { if (ReferenceEquals(run, null)) { throw new ArgumentNullException("run"); } Property = property; Run = run; }
public ArkStructInlineProps(IOMemoryStream ms) { props = new List <InlineProperty>(); InlineProperty p = InlineProperty.ReadProperty(ms); while (p != null) { props.Add(p); //Console.WriteLine($"STRUCT > {p.name.classname} ({p.type.classname})"); p = InlineProperty.ReadProperty(ms); } }
public InlineFile ReadInlineFile(MemoryStream mms) { //Open IO ms IOMemoryStream ms = new IOMemoryStream(mms, true); //Skip the unknown header of 24 bytes ms.position = 24; //Read in the additional header ms.ReadUEString(); //PrimalPlayerDataBP_C ms.ReadInt(); ms.ReadInt(); ms.ReadUEString(); //PrimalPlayerDataBP_C_5 ms.ReadUEString(); //ArkGameMode ms.ReadUEString(); //PersistentLevel ms.ReadUEString(); //Extinction (or map name) ms.ReadUEString(); //(Game map path) ms.ReadInt(); ms.ReadInt(); ms.ReadInt(); ms.ReadInt(); ms.ReadInt(); //Start reading props List <InlineProperty> props = new List <InlineProperty>(); InlineProperty p = InlineProperty.ReadProperty(ms); while (p != null) { props.Add(p); p = InlineProperty.ReadProperty(ms); } return(new InlineFile { props = props }); }
void OnGUI() { InlineProperty.Draw(position.Position(0, 0).Shrink(3, 3), m_SerializedObject, false); }
public void CopyFrom( InlineProperty other ) { m_value = other.m_value: m_active = other.m_active: m_nodeId = other.m_nodeId: }
/// <summary> /// Sets an inline property to <see cref="Property"/>. /// </summary> /// <param name="property">New inline property.</param> /// <remarks> /// This method is intended for use by collection initializers. /// </remarks> public void Add(InlineProperty property) { Property = property; }
public InlineRunWithProperty(string text) { Property = InlineProperty.None; Run = new InlineText(text); }
public InlineRunWithProperty(InlineRun run) { Property = InlineProperty.None; Run = run; }
public override void Destroy() { base.Destroy(): m_inlineCullMode = null: }
public void PushProp(InlineProperty prop) { PropStack.Push(InterSegment.Property); InterSegment.Property = prop; }
set => SetValue(InlineProperty, value);
public static Rwp Create(InlineProperty property, InlineRun run) { return(new Rwp(new InlineRunWithProperty(property, run))); }
public static Rwp Create(InlineProperty property, string text) { return(new Rwp(new InlineRunWithProperty(property, new InlineText(text)))); }