// --------------------------------------------------------------------------------------------- // Copyright (c) 2021-2025, Jiaqi (0x7c13) Liu. All rights reserved. // See LICENSE file in the project root for license information. // --------------------------------------------------------------------------------------------- namespace Pal3.Game.Script { using System.Collections.Generic; /// /// Represents a store for variables of type /// associated with keys of type . /// /// The type of the variable keys. /// The type of the variable values. public interface IUserVariableStore : IEnumerable> { /// /// Sets the value of the variable associated with the specified key. /// /// The key of the variable to set. /// The value to set. public void Set(TVariable variable, TValue value); /// /// Gets the value of the variable associated with the specified key. /// /// The key of the variable to get. /// The value of the variable associated with the specified key. public TValue Get(TVariable variable); } }