public void Parse(ChunkData data, ref int listOffset)
            {
                ObjectReference obj = new ObjectReference();
                obj.Parse(data.DataEntries[listOffset++].Data);
                Object = obj;

                Unknown1 = data.DataEntries[listOffset++].Data[0];
                Unknown2 = EndianessSwitchableBitConverter.ToInt32(data.DataEntries[listOffset++].Data, 0);
            }
예제 #2
0
            public void Parse(ChunkData data, ref int listOffset)
            {
                ObjectReference obj = new ObjectReference();

                obj.Parse(data.DataEntries[listOffset++].Data);
                Object = obj;

                Unknown1 = data.DataEntries[listOffset++].Data[0];
                Unknown2 = EndianessSwitchableBitConverter.ToInt32(data.DataEntries[listOffset++].Data, 0);
            }
예제 #3
0
            public void Parse(ChunkData data, ref int listOffset)
            {
                ObjectReference obj = new ObjectReference();

                obj.Parse(data.DataEntries[listOffset++].Data);
                Object = obj;

                Unknown1 = data.DataEntries[listOffset++].Data[0];
                Unknown2 = data.DataEntries[listOffset++].Data[0];
            }
예제 #4
0
 public override string ToString()
 {
     if (ObjectName == null)
     {
         ObjectReference or = new ObjectReference();
         or.Parse(_id);
         return or.ToString();
     }
     else {
         string iname = InstanceName != null ? "\"" + InstanceName + "\"" : InstanceID.ToString("X8");            
         return string.Format("Object: {0} Instance: {1}", ObjectName, iname);
     }
 }
예제 #5
0
 public override string ToString()
 {
     if (ObjectName == null)
     {
         ObjectReference or = new ObjectReference();
         or.Parse(_id);
         return(or.ToString());
     }
     else
     {
         string iname = InstanceName != null ? "\"" + InstanceName + "\"" : InstanceID.ToString("X8");
         return(string.Format("Object: {0} Instance: {1}", ObjectName, iname));
     }
 }
예제 #6
0
        public void Parse(ChunkData data)
        {
            Capacity = EndianessSwitchableBitConverter.ToInt32(data[0].Data, 0);
            UsedCount = EndianessSwitchableBitConverter.ToInt32(data[1].Data, 0);

            _objects.Clear();
            for(int i = 0; i < Capacity * 8; i+= 8)
            {
                ObjectReference obj = new ObjectReference();
                obj.Parse(data[9].Data, i);
                _objects.Add(obj);
            }

            Bits = new BitArray(data[10].Data);
            Bits.Length = Capacity;
        }
예제 #7
0
        public void Parse(ChunkData data)
        {
            Capacity  = EndianessSwitchableBitConverter.ToInt32(data[0].Data, 0);
            UsedCount = EndianessSwitchableBitConverter.ToInt32(data[1].Data, 0);

            _objects.Clear();
            for (int i = 0; i < Capacity * 8; i += 8)
            {
                ObjectReference obj = new ObjectReference();
                obj.Parse(data[9].Data, i);
                _objects.Add(obj);
            }

            Bits        = new BitArray(data[10].Data);
            Bits.Length = Capacity;
        }
        public void Parse(ChunkData data)
        {
            int savedCount1 = EndianessSwitchableBitConverter.ToInt32(data.DataEntries[0].Data, 0);

            int expectedEntryCount = savedCount1 + 1;
            
            /*
            if (data.DataEntries.Count != expectedEntryCount)
            {
                Debugger.Break();
            }
            */

            _objects.Clear();
            int listOffset = 1;
            for (int i = 0; i < savedCount1; i++)
            {
                ObjectReference obj = new ObjectReference();
                obj.Parse(data.DataEntries[listOffset++].Data);
                _objects.Add(obj);
            }
        }
예제 #9
0
        public void Parse(ChunkData data)
        {
            int savedCount1 = EndianessSwitchableBitConverter.ToInt32(data.DataEntries[0].Data, 0);

            int expectedEntryCount = savedCount1 + 1;

            /*
             * if (data.DataEntries.Count != expectedEntryCount)
             * {
             *  Debugger.Break();
             * }
             */

            _objects.Clear();
            int listOffset = 1;

            for (int i = 0; i < savedCount1; i++)
            {
                ObjectReference obj = new ObjectReference();
                obj.Parse(data.DataEntries[listOffset++].Data);
                _objects.Add(obj);
            }
        }
예제 #10
0
 public void Parse(ChunkData data, ref short listOffset)
 {
     ChallengeObject = new ObjectReference();
     ChallengeObject.Parse(data[listOffset++].Data);
     Time = EndianessSwitchableBitConverter.ToSingle(data[listOffset++].Data, 0);
 }
            public void Parse(ChunkData data, ref int listOffset)
            {
                ObjectReference obj = new ObjectReference();
                obj.Parse(data.DataEntries[listOffset++].Data);
                Object = obj;

                Unknown1 = data.DataEntries[listOffset++].Data[0];
                Unknown2 = data.DataEntries[listOffset++].Data[0];
                Unknown3 = data.DataEntries[listOffset++].Data[0];
                Unknown4 = data.DataEntries[listOffset++].Data[0];
            }
예제 #12
0
 public void Parse(ChunkData data, ref short listOffset)
 {
     ChallengeObject = new ObjectReference();
     ChallengeObject.Parse(data[listOffset++].Data);
     Time = EndianessSwitchableBitConverter.ToSingle(data[listOffset++].Data, 0); 
 }