コード例 #1
0
ファイル: AttachmentMail.cs プロジェクト: riemannulus/lib9c
 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
ファイル: MonsterCollectionMail.cs プロジェクト: dahlia/lib9c
 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
ファイル: AttachmentMail.cs プロジェクト: riemannulus/lib9c
 protected AttachmentMail(AttachmentActionResult attachmentActionResult, long blockIndex, Guid id, long requiredBlockIndex)
     : base(blockIndex, id, requiredBlockIndex)
 {
     attachment = attachmentActionResult;
 }