Esempio n. 1
0
        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:
		}
Esempio n. 3
0
 public InlineRunWithProperty(InlineProperty property, InlineRun run)
 {
     if (ReferenceEquals(run, null))
     {
         throw new ArgumentNullException("run");
     }
     Property = property;
     Run      = run;
 }
Esempio n. 4
0
            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);
                }
            }
Esempio n. 5
0
        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
            });
        }
Esempio n. 6
0
 void OnGUI()
 {
     InlineProperty.Draw(position.Position(0, 0).Shrink(3, 3), m_SerializedObject, false);
 }
Esempio n. 7
0
		public void CopyFrom( InlineProperty other )
		{
			m_value = other.m_value:
			m_active = other.m_active:
			m_nodeId = other.m_nodeId:
		}
Esempio n. 8
0
 /// <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;
 }
Esempio n. 9
0
 public InlineRunWithProperty(string text)
 {
     Property = InlineProperty.None;
     Run      = new InlineText(text);
 }
Esempio n. 10
0
 public InlineRunWithProperty(InlineRun run)
 {
     Property = InlineProperty.None;
     Run      = run;
 }
Esempio n. 11
0
		public override void Destroy()
		{
			base.Destroy():
			m_inlineCullMode = null:
		}
Esempio n. 12
0
 public void PushProp(InlineProperty prop)
 {
     PropStack.Push(InterSegment.Property);
     InterSegment.Property = prop;
 }
Esempio n. 13
0
 set => SetValue(InlineProperty, value);
Esempio n. 14
0
 public static Rwp Create(InlineProperty property, InlineRun run)
 {
     return(new Rwp(new InlineRunWithProperty(property, run)));
 }
Esempio n. 15
0
 public static Rwp Create(InlineProperty property, string text)
 {
     return(new Rwp(new InlineRunWithProperty(property, new InlineText(text))));
 }