More comments and a fix.
This commit is contained in:
@@ -19,34 +19,49 @@ namespace Content.Client.Eui
|
||||
IoCManager.InjectDependencies(this);
|
||||
}
|
||||
|
||||
public void Initialize(EuiManager mgr, uint id)
|
||||
internal void Initialize(EuiManager mgr, uint id)
|
||||
{
|
||||
Manager = mgr;
|
||||
Id = id;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when the EUI is opened by the server.
|
||||
/// </summary>
|
||||
public virtual void Opened()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when the EUI is closed by the server.
|
||||
/// </summary>
|
||||
public virtual void Closed()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when a new state comes in from the server.
|
||||
/// </summary>
|
||||
public virtual void HandleState(EuiStateBase state)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when a message comes in from the server.
|
||||
/// </summary>
|
||||
public virtual void HandleMessage(EuiMessageBase msg)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Send a message to the server-side implementation.
|
||||
/// </summary>
|
||||
protected void SendMessage(EuiMessageBase msg)
|
||||
{
|
||||
var netMsg = _netManager.CreateNetMessage<MsgEuiMessage>();
|
||||
netMsg.Id = Id;
|
||||
netMsg.Message = msg;
|
||||
|
||||
|
||||
_netManager.ClientSendMessage(netMsg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user