Exemple #1
0
            public void ReadFromFile(BinaryReader reader, int fileVersion)
            {
                name = StringHelpers.ReadString(reader);
                translokatorNameKey = reader.ReadUInt16();
                actorFile           = StringHelpers.ReadString(reader);
                description         = StringHelpers.ReadString(reader);
                unk1        = reader.ReadInt16();
                unk2        = reader.ReadInt32();
                unk3        = reader.ReadInt32();
                numEntities = reader.ReadInt32();
                entries     = new string[numEntities];

                for (int i = 0; i != numEntities; i++)
                {
                    entries[i] = StringHelpers.ReadString(reader);
                }

                numTranslokators = reader.ReadInt32();
                translokators    = new List <TranslokatorData>();

                for (int i = 0; i != numTranslokators; i++)
                {
                    TranslokatorData translokator = new TranslokatorData();
                    translokator.ReadFromFile(reader, numEntities, fileVersion);
                    translokators.Add(translokator);
                }
            }
Exemple #2
0
 public TranslokatorData(TranslokatorData other)
 {
     name              = other.name;
     positionX         = other.positionX;
     positionY         = other.positionY;
     mapMarkerIconID   = other.mapMarkerIconID;
     mapMarkerStringID = other.mapMarkerStringID;
     entityProperties  = new List <short>();
     foreach (short val in other.entityProperties)
     {
         entityProperties.Add(val);
     }
 }