} /* setActive() */ public void setInactive(FrontendIDType frontendID) { lock (this._frontendState) { if (this._frontendState.ContainsKey(frontendID)) { if (!this.IsActive(frontendID)) { UnityEngine.Debug.LogWarning( "<color=orange>Warning: </color> ApollonFrontendManager.setInactive(" + frontendID + ") : requested frontendID is already inactive, skip" ); return; } this._frontendState[frontendID] = false; this.RaisFrontendInactivationRequestedEvent(frontendID); } else { UnityEngine.Debug.LogWarning( "<color=orange>Warning: </color> ApollonFrontendManager.setInactive(" + frontendID + ") : requested menuID is not intantiated yet..." ); return; } /* if() */ } /* lock() */ } /* setInactive() */
internal void RaisFrontendInactivationRequestedEvent(FrontendIDType frontendID) { lock (this._eventTable) { var callback = (System.EventHandler <FrontendEventArgs>) this._eventTable["FrontendInactivationRequested"]; callback?.Invoke(this, new FrontendEventArgs(frontendID)); } }
} /* RegisterAllAvailableFrontendBridge() */ public ApollonAbstractFrontendBridge getBridge(FrontendIDType ID) { // check if (this._frontendBridgeTable.ContainsKey(ID)) { return(this._frontendBridgeTable[ID]); } // log UnityEngine.Debug.LogWarning( "<color=orange>Warning: </color> ApollonFrontendManager.getBridge(" + ID + ") : requested ID not found ..." ); // failed return(null); } /* getBridge() */
public bool IsActive(FrontendIDType frontendID) { lock (this._frontendState) { if (this._frontendState.ContainsKey(frontendID)) { return(this._frontendState[frontendID]); } else { UnityEngine.Debug.LogWarning( "<color=orange>Warning: </color> ApollonFrontendManager.IsActive(" + frontendID + ") : requested frontendID is not intantiated yet..." ); return(false); } /* if() */ } /* lock() */ } /* IsActive() */
// ctor public FrontendEventArgs(FrontendIDType categoryID = FrontendIDType.None, string groupID = "", int instanceID = -1) : base() { this.ID = categoryID; }