add console panel, still have scroll problem

This commit is contained in:
2022-07-21 00:23:20 +08:00
parent 7cdcaf1e2f
commit 2040afa34a
22 changed files with 558 additions and 119 deletions

View File

@ -7,15 +7,49 @@ using System.Threading.Tasks;
namespace BallanceStalkerCore {
public enum EventControllerSource {
/// <summary>
/// Default statue. It mean that we are now in camera mode.
/// </summary>
None,
/// <summary>
/// Menu take control of event input
/// </summary>
Menu,
/// <summary>
/// Console panel now take control of event input.
/// </summary>
Console,
/// <summary>
/// it is same as console, the only different is preset character
/// </summary>
Chat
}
public class StalkerManager {
public static StalkerManager Singleton = new StalkerManager();
private StalkerManager() {
mEventController = EventControllerSource.None;
mLogger = new LogManager();
mBmmoClient = new BmmoClient(mLogger);
}
public event Action<EventControllerSource> EventControllerChanged;
private EventControllerSource mEventController;
public BmmoClient mBmmoClient;
public LogManager mLogger;
public void SetEventController(EventControllerSource src) {
if (mEventController != src) {
mEventController = src;
}
EventControllerChanged?.Invoke(src);
}
public EventControllerSource GetEventController() {
return mEventController;
}
}
}