2018-11-28 19:28:41 -05:00
|
|
|
|
using System.Collections.Generic;
|
2018-11-28 21:20:01 -05:00
|
|
|
|
using System.Drawing;
|
2018-11-28 19:28:41 -05:00
|
|
|
|
using OpenDiablo2.Common.Enums;
|
2018-11-24 22:34:16 -05:00
|
|
|
|
using OpenDiablo2.Common.Models;
|
|
|
|
|
|
|
|
|
|
namespace OpenDiablo2.Common.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IGameState
|
|
|
|
|
{
|
|
|
|
|
int Act { get; }
|
2018-11-25 14:15:13 -05:00
|
|
|
|
int Seed { get; }
|
2018-11-24 22:34:16 -05:00
|
|
|
|
string MapName { get; }
|
|
|
|
|
Palette CurrentPalette { get; }
|
|
|
|
|
|
2018-11-29 19:11:25 -05:00
|
|
|
|
bool ToggleShowInventoryPanel();
|
|
|
|
|
bool ShowInventoryPanel { get; set; }
|
|
|
|
|
|
|
|
|
|
bool ToggleShowCharacterPanel();
|
|
|
|
|
bool ShowCharacterPanel { get; set; }
|
|
|
|
|
|
2018-11-24 22:34:16 -05:00
|
|
|
|
void Initialize(string text, eHero value);
|
2018-11-28 19:28:41 -05:00
|
|
|
|
void Update(long ms);
|
|
|
|
|
IEnumerable<MapCellInfo> GetMapCellInfo(int cellX, int cellY, eRenderCellType renderCellType);
|
|
|
|
|
void UpdateMapCellInfo(int cellX, int cellY, eRenderCellType renderCellType, IEnumerable<MapCellInfo> mapCellInfo);
|
2018-11-28 21:20:01 -05:00
|
|
|
|
MapInfo LoadMap(eLevelId levelId, Point origin);
|
|
|
|
|
MapInfo LoadSubMap(int levelDefId, Point origin);
|
2018-11-24 22:34:16 -05:00
|
|
|
|
}
|
|
|
|
|
}
|