Ejemplo n.º 1
0
        private void Parse(DataReader reader)
        {
            reader.Assert(0L, 0, "UNKNOWN", "Part", "First 4 bytes");

            model = reader.ReadString(13);
            reader.Assert((byte)0xCC, 0, "Model: " + model, "UNKNOWN PART", "Model");

            icon        = reader.ReadString(13);
            name        = reader.ReadString(25);
            description = reader.ReadString(200);
            group       = reader.ReadShort();
            techtree    = new Techtree(reader);

            reader.Assert((ushort)0xCCCC, 0, name, "UNKNOWN PART", "Techtree");

            mass           = reader.ReadFloat();
            sigmod         = reader.ReadFloat();
            uid            = reader.ReadUShort();
            specUID        = uid;
            overriding_uid = reader.ReadShort();
            parttype       = reader.ReadShort();
            usemask        = new BitArray(reader.ReadBytes(2));
            slot           = reader.ReadString(13);

            string PartTypeName = PartType.GetName(typeof(PartType), parttype);

            //reader.Assert((byte)0xCC, uid, name, PartTypeName, "Slot");
            reader.Skip(1);
            reader.Assert((ushort)0xCCCC, uid, name, PartTypeName, "Slot");
        }
Ejemplo n.º 2
0
 private void Parse(DataReader reader)
 {
     amount         = reader.ReadUShort();
     uid            = reader.ReadUShort();
     overriding_uid = reader.ReadShort();
     parttype       = reader.ReadShort();
     group          = reader.ReadShort();
     slot           = reader.ReadString(13);
     reader.Assert((byte)0xCC, uid, name, PartType.GetName(typeof(PartType), parttype), "Slot");
 }
Ejemplo n.º 3
0
        private void Parse(DataReader reader)
        {
            shld_stats_s1 = reader.ReadFloat();
            shld_stats_s2 = reader.ReadFloat();
            shld_AC       = (IGCArmorClass)reader.ReadByte();

            string PartTypeName = PartType.GetName(typeof(PartType), parttype);

            reader.Assert((byte)0xCC, uid, name, PartTypeName, "ShieldAC");

            shld_sound1 = reader.ReadUShort();
            shld_sound2 = reader.ReadUShort();

            reader.Assert((ushort)0xCCCC, uid, name, PartTypeName, "Deactivate Sound");
        }
Ejemplo n.º 4
0
        private void Parse(DataReader reader)
        {
            wep_stats_s1 = reader.ReadFloat();
            wep_stats_s2 = reader.ReadFloat();
            wep_stats_s3 = reader.ReadFloat();
            wep_stats_s4 = reader.ReadFloat();

            wep_stats_ss1      = reader.ReadUShort();
            wep_projectile_uid = reader.ReadUShort();
            wep_stats_ss2      = reader.ReadUShort();
            wep_stats_ss3      = reader.ReadUShort();
            wep_stats_ss4      = reader.ReadUShort();

            reader.Assert((ushort)0xCCCC, uid, name, PartType.GetName(typeof(PartType), parttype), "Burst sound");
        }