//
// NostaleObject.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Reloaded.Memory.Sources;
namespace NosSmooth.LocalBinding.Structs;
///
/// A NosTale object base.
///
public abstract class NostaleObject
{
///
/// Initializes a new instance of the class.
///
/// The memory.
/// The address in the memory.
protected NostaleObject(IMemory memory, nuint address)
{
Memory = memory;
Address = address;
}
///
/// Gets the memory the object is stored in.
///
internal virtual IMemory Memory { get; set; } = null!;
///
/// Gets the address of the object.
///
public virtual nuint Address { get; internal set; } = nuint.Zero;
}