// ReSharper disable CheckNamespace, InconsistentNaming -- matches Stardew Valley's code // ReSharper disable UnusedMember.Global -- used dynamically for unit tests using Netcode; namespace StardewValley { /// A simplified version of Stardew Valley's StardewValley.Item class for unit testing. public class Item { /// A net int field with an equivalent non-net Category property. public readonly NetInt category = new() { Value = 42 }; /// A generic net int field with no equivalent non-net property. public readonly NetInt netIntField = new() { Value = 42 }; /// A generic net ref field with no equivalent non-net property. public readonly NetRef netRefField = new(); /// A generic net int property with no equivalent non-net property. public NetInt netIntProperty = new() { Value = 42 }; /// A generic net ref property with no equivalent non-net property. public NetRef netRefProperty { get; } = new(); /// A sample net list. public readonly NetList netList = new(); /// A sample net object list. public readonly NetObjectList netObjectList = new(); /// A sample net collection. public readonly NetCollection netCollection = new(); } }