Simplify expression

#433
This commit is contained in:
Kurt 2020-12-02 12:52:12 -08:00
parent 70fe4834da
commit 6fbff26184
3 changed files with 2 additions and 8 deletions

View File

@ -119,7 +119,7 @@ public DesignPatternPRO Design
public byte DIYEndHour { get => Data[0x129D1]; set => Data[0x129D1] = value; }
public byte DIYEndMinute { get => Data[0x129D2]; set => Data[0x129D2] = value; }
public byte DIYEndSecond { get => Data[0x129D3]; set => Data[0x129D3] = value; }
public ushort DIYRecipeIndex { get => Data.Slice(0x129D4, sizeof(ushort)).ToStructure<ushort>(); set => value.ToBytes().CopyTo(Data, 0x129D4); }
public ushort DIYRecipeIndex { get => BitConverter.ToUInt16(Data, 0x129D4); set => BitConverter.GetBytes(value).CopyTo(Data, 0x129D4); }
public void SetFriendshipAll(byte value = byte.MaxValue)
{

View File

@ -119,7 +119,7 @@ public DesignPatternPRO Design
public byte DIYEndHour { get => Data[0x13151]; set => Data[0x13151] = value; }
public byte DIYEndMinute { get => Data[0x13152]; set => Data[0x13152] = value; }
public byte DIYEndSecond { get => Data[0x13153]; set => Data[0x13153] = value; }
public ushort DIYRecipeIndex { get => Data.Slice(0x13154, sizeof(ushort)).ToStructure<ushort>(); set => value.ToBytes().CopyTo(Data, 0x13154); }
public ushort DIYRecipeIndex { get => BitConverter.ToUInt16(Data, 0x13154); set => BitConverter.GetBytes(value).CopyTo(Data, 0x13154); }
public void SetFriendshipAll(byte value = byte.MaxValue)
{

View File

@ -1,12 +1,6 @@
using NHSE.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace NHSE.WinForms