Пример #1
0
 public AttachmentMail(Dictionary serialized)
     : base(serialized)
 {
     attachment = AttachmentActionResult.Deserialize(
         (Dictionary)serialized["attachment"]
         );
 }
Пример #2
0
        public void UpdateV2(long blockIndex, Material material, int count)
        {
            Update(blockIndex);
            var result = new RapidCombination5.ResultModel((Dictionary)Result.Serialize())
            {
                cost = new Dictionary <Material, int> {
                    [material] = count
                }
            };

            Result = result;
        }
Пример #3
0
        public CombinationSlotState(Dictionary serialized) : base(serialized)
        {
            UnlockBlockIndex = serialized["unlockBlockIndex"].ToLong();
            UnlockStage      = serialized["unlockStage"].ToInteger();
            if (serialized.TryGetValue((Text)"result", out var result))
            {
                Result = AttachmentActionResult.Deserialize((Dictionary)result);
            }

            if (serialized.TryGetValue((Text)"startBlockIndex", out var value))
            {
                StartBlockIndex = value.ToLong();
            }
        }
Пример #4
0
 public MonsterCollectionMail(AttachmentActionResult attachmentActionResult, long blockIndex, Guid id, long requiredBlockIndex)
     : base(attachmentActionResult, blockIndex, id, requiredBlockIndex)
 {
 }
Пример #5
0
 public void Update(AttachmentActionResult result, long blockIndex, long unlockBlockIndex)
 {
     Result           = result;
     StartBlockIndex  = blockIndex;
     UnlockBlockIndex = unlockBlockIndex;
 }
Пример #6
0
 public SellerMail(AttachmentActionResult attachmentActionResult, long blockIndex, Guid id, long requiredBlockIndex) : base(attachmentActionResult,
                                                                                                                            blockIndex, id, requiredBlockIndex)
 {
 }
Пример #7
0
 protected AttachmentMail(AttachmentActionResult attachmentActionResult, long blockIndex, Guid id, long requiredBlockIndex)
     : base(blockIndex, id, requiredBlockIndex)
 {
     attachment = attachmentActionResult;
 }