Beispiel #1
0
 public Item(int id)
 {
     Id     = id;
     Key    = new Localized_Text();
     Value  = new Localized_Text();
     Value2 = new Localized_Text();
 }
Beispiel #2
0
 public ScriptText()
 {
     CharacterName       = new Localized_Text();
     CharacterPosition   = new Localized_Text();
     CharacterExpression = new Localized_Text();
     Text = new Localized_Text();
 }
Beispiel #3
0
        public override void Load(BinaryReader reader, long length, Localized_Text.Language language)
        {
            var fileStartPos = reader.BaseStream.Position;

            var count = Endian.ConvertUInt32(reader.ReadUInt32());

            for (var i = 0; i < count; i++)
            {
                var offset     = Endian.ConvertUInt32(reader.ReadUInt32());
                var tempOffset = reader.BaseStream.Position;

                reader.BaseStream.Position = fileStartPos + offset;

                var text = Strings.Count > i ? Strings[i] : null;
                if (text == null)
                {
                    text = new Localized_Text();
                    Strings.Add(text);
                }

                text.SetText(language, reader.ReadNullTerminatedString(encoding));

                reader.BaseStream.Position = tempOffset;
            }
        }
Beispiel #4
0
 public Item(int id, Duel_Series series)
 {
     Id     = id;
     Series = series;
     Key    = new Localized_Text();
     Value  = new Localized_Text();
 }
Beispiel #5
0
 public Item(int id, Duel_Series pack, int price, PackType type)
 {
     Id       = id;
     Series   = pack;
     Price    = price;
     Type     = type;
     CodeName = new Localized_Text();
     Name     = new Localized_Text();
     UnkStr   = new Localized_Text();
 }
Beispiel #6
0
 /// <summary>
 ///     Default contructor
 /// </summary>
 /// <param name="index">The index the card is at in a list.</param>
 public Card_Info(int index)
 {
     CardIndex      = index;
     Name           = new Localized_Text();
     Description    = new Localized_Text();
     RelatedCards   = new List <RelatedCardInfo>();
     CardEffectTags = new HashSet <Card_Tag_Info.CardEffectType>();
     NameTypes      = new HashSet <CardNameType>();
     SetIds         = new List <int>();
 }
Beispiel #7
0
 public Item(int id1, int id2, Duel_Series series, int signatureCardId, int deckOwner, int unk1)
 {
     Id1             = id1;
     Id2             = id2;
     Series          = series;
     SignatureCardId = signatureCardId;
     DeckOwnerId     = deckOwner;
     Unk1            = unk1;
     DeckFileName    = new Localized_Text();
     DeckName        = new Localized_Text();
     DeckDescription = new Localized_Text();
     UnkStr1         = new Localized_Text();
 }
Beispiel #8
0
 public Item(int id, Duel_Series series, int challengeDeckId, int unk3, int dlcId, int unk5, long type)
 {
     Id              = id;
     Series          = series;
     ChallengeDeckId = challengeDeckId;
     Unk3            = unk3;
     DlcId           = dlcId;
     Unk5            = unk5;
     Type            = type;
     CodeName        = new Localized_Text();
     Name            = new Localized_Text();
     Bio             = new Localized_Text();
 }
Beispiel #9
0
 public Item(int id, Duel_Series series, int displayIndex, int playerCharId, int opponentCharId,
             int playerDeckId, int opponentDeckId, int duelArena, int unk8, int dlcId)
 {
     Id                    = id;
     Series                = series;
     DisplayIndex          = displayIndex;
     PlayerCharId          = playerCharId;
     OpponentCharId        = opponentCharId;
     PlayerDeckId          = playerDeckId;
     OpponentDeckId        = opponentDeckId;
     ArenaId               = duelArena;
     Unk8                  = unk8;
     DlcId                 = dlcId;
     CodeName              = new Localized_Text();
     PlayerAlternateSkin   = new Localized_Text();
     OpponentAlternateSkin = new Localized_Text();
     Name                  = new Localized_Text();
     Description           = new Localized_Text();
     Tip                   = new Localized_Text();
 }
Beispiel #10
0
 public Script(int textStartIndex, int textEndIndex)
 {
     TextStartIndex = textStartIndex;
     TextEndIndex   = textEndIndex;
     CodeName       = new Localized_Text();
 }
Beispiel #11
0
 /// <summary>
 ///     Default contructor.
 /// </summary>
 public Card_Tag_Info()
 {
     Elements    = new Element[8];
     Text        = new Localized_Text();
     DisplayText = new Localized_Text();
 }