Пример #1
0
        private void PC_SpellCastComplete(int spellID, int target, int duration)
        {
            REPlugin.Instance.InvokeOperationSafely(() =>
            {
                var eventArgs = new SpellCastCompleteEventArgs(spellID, target, duration);
                if (this._enableEventDebugLogging)
                {
                    REPlugin.Instance.Debug.WriteObject(eventArgs);
                }

                if (this.SpellCastComplete != null)
                {
                    this.SpellCastComplete(uTank2.PluginCore.PC, eventArgs);
                }
            });
        }
Пример #2
0
        internal void WriteObject(SpellCastCompleteEventArgs obj)
        {
            lock (this._writeLock)
            {
                using (StreamWriter stream = new StreamWriter(this._currentPath, true))
                {
                    this.LogRawMessage(this.FormatWithPrefix("SpellCastCompleteEventArgs"), stream);
                    this.LogRawMessage(string.Format("  SpellId = {0}", obj.SpellId), stream);
                    this.LogRawMessage(string.Format("  Target = {0}", obj.Target), stream);
                    this.LogRawMessage(string.Format("  Duration = {0}", obj.Duration), stream);

                    //this.WriteCurrentStateStuff(stream, false);

                    this.LogRawMessage("", stream);
                }
            }
        }