예제 #1
0
        private void FireUsingPortalComplete(object sender, UsingPortalCompleteEventArgs eventArgs)
        {
            this._usingPortalPending.Reset();

            REPlugin.Instance.Debug.WriteObject(eventArgs);

            if (this.UsingPortalComplete != null)
            {
                this.UsingPortalComplete(sender, eventArgs);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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);
                }
            }
        }