add console panel, still have scroll problem
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user