예제 #1
0
 public void ToString(StringBuilder sb)
 {
     if (Glyphs.Count > 0)
     {
         Glyphs.ForEach(c => sb.Append(c.Char));
     }
 }
예제 #2
0
        public void Write(GamePacketWriter writer)
        {
            writer.Write(Guid);
            writer.Write(Unknown0);
            writer.Write(ItemId, 18u);
            LocationData.Write(writer);
            writer.Write(StackCount);
            writer.Write(Charges);
            writer.Write(RandomCircuitData);
            writer.Write(RandomGlyphData);
            writer.Write(ThresholdData);
            writer.Write(Durability);
            writer.Write(Unknown44);
            writer.Write(Unknown48);
            writer.Write(DyeData);
            writer.Write(DynamicFlags);
            writer.Write(ExpirationTimeLeft);

            for (uint i = 0u; i < Unknown58.Length; i++)
            {
                Unknown58[i].Write(writer);
            }

            writer.Write(Unknown70, 18u);

            writer.Write(Microchips.Count, 3u);
            Microchips.ForEach(m => writer.Write(m));
            writer.Write(Glyphs.Count, 4u);
            Glyphs.ForEach(g => writer.Write(g));
            writer.Write(Glyphs.Count, 6u);
            Unknown88.ForEach(u => u.Write(writer));

            writer.Write(Unknown8C);
        }
예제 #3
0
        public override string ToString()
        {
            if (Glyphs.Count == 0)
            {
                return(String.Empty);
            }
            StringBuilder sb = new StringBuilder(Glyphs.Count);

            Glyphs.ForEach(c => sb.Append(c.Char));
            return(sb.ToString());
        }