private void FireUsingPortalComplete(object sender, UsingPortalCompleteEventArgs eventArgs) { this._usingPortalPending.Reset(); REPlugin.Instance.Debug.WriteObject(eventArgs); if (this.UsingPortalComplete != null) { this.UsingPortalComplete(sender, eventArgs); } }
private void DecalEventsProxy_ChangePortalMode(object sender, Decal.Adapter.Wrappers.ChangePortalModeEventArgs e) { // TODO : Hook up failure case. Unable to Move object event if (e.Type == Decal.Adapter.Wrappers.PortalEventType.EnterPortal && this._usingPortalPending.WaitOne(0)) { var eventArgs = new UsingPortalCompleteEventArgs(true); this.FireUsingPortalComplete(sender, eventArgs); } }
internal void WriteObject(UsingPortalCompleteEventArgs obj) { if (ActiveSettings.Instance.DebugLevel == DebugLevel.None) return; lock (this._writeLock) { using (StreamWriter stream = new StreamWriter(this._currentPath, true)) { this.LogRawMessage(this.FormatWithPrefix("UsingPortalCompleteEventArgs"), stream); this.LogRawMessage(string.Format(" Successful = {0}", obj.Successful), stream); //this.WriteCurrentStateStuff(stream, false); this.LogRawMessage("", stream); } } }