// ReSharper disable CheckNamespace, InconsistentNaming -- matches Stardew Valley's code 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 NetInt { Value = 42 }; /// A generic net int field with no equivalent non-net property. public readonly NetInt netIntField = new NetInt { Value = 42 }; /// A generic net ref field with no equivalent non-net property. public readonly NetRef netRefField = new NetRef(); /// A generic net int property with no equivalent non-net property. public NetInt netIntProperty = new NetInt { Value = 42 }; /// A generic net ref property with no equivalent non-net property. public NetRef netRefProperty { get; } = new NetRef(); /// A sample net list. public readonly NetList netList = new NetList(); /// A sample net object list. public readonly NetObjectList netObjectList = new NetObjectList(); /// A sample net collection. public readonly NetCollection netCollection = new NetCollection(); } }