mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-08-08 13:14:17 -04:00
f3793e0a60
* Initial minipanel work * Character and Inventory panel implementation, frame included * Separate panel frame from the actual inventory and character panels so they can be reused by other panels
29 lines
936 B
C#
29 lines
936 B
C#
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using OpenDiablo2.Common.Enums;
|
|
using OpenDiablo2.Common.Models;
|
|
|
|
namespace OpenDiablo2.Common.Interfaces
|
|
{
|
|
public interface IGameState
|
|
{
|
|
int Act { get; }
|
|
int Seed { get; }
|
|
string MapName { get; }
|
|
Palette CurrentPalette { get; }
|
|
|
|
bool ToggleShowInventoryPanel();
|
|
bool ShowInventoryPanel { get; set; }
|
|
|
|
bool ToggleShowCharacterPanel();
|
|
bool ShowCharacterPanel { get; set; }
|
|
|
|
void Initialize(string text, eHero value);
|
|
void Update(long ms);
|
|
IEnumerable<MapCellInfo> GetMapCellInfo(int cellX, int cellY, eRenderCellType renderCellType);
|
|
void UpdateMapCellInfo(int cellX, int cellY, eRenderCellType renderCellType, IEnumerable<MapCellInfo> mapCellInfo);
|
|
MapInfo LoadMap(eLevelId levelId, Point origin);
|
|
MapInfo LoadSubMap(int levelDefId, Point origin);
|
|
}
|
|
}
|