当前位置: 首页>>代码示例>>C#>>正文


C# Decal.IsYouLeftFellowship方法代码示例

本文整理汇总了C#中Decal.IsYouLeftFellowship方法的典型用法代码示例。如果您正苦于以下问题:C# Decal.IsYouLeftFellowship方法的具体用法?C# Decal.IsYouLeftFellowship怎么用?C# Decal.IsYouLeftFellowship使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Decal的用法示例。


在下文中一共展示了Decal.IsYouLeftFellowship方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: _decalEventsProxy_ChatBoxMessage

        void _decalEventsProxy_ChatBoxMessage(object sender, Decal.Adapter.ChatTextInterceptEventArgs e)
        {
            string tmpValue;
            string tmpValue2;

            // TODO : Support MemberDied

            if (e.IsFellowshipCreated(out tmpValue))
            {
                var createdEventArgs = new FellowshipCreatedEventArgs(tmpValue);

                REPlugin.Instance.Debug.WriteObject(createdEventArgs);

                if (this.Created != null)
                {
                    this.Created(this, createdEventArgs);
                }
            }
            else if (e.IsFellowshipDisbanded(out tmpValue))
            {
                var disbandEventArgs = new FellowshipDisbandEventArgs(tmpValue);

                REPlugin.Instance.Debug.WriteObject(disbandEventArgs);

                if (this.Disband != null)
                {
                    this.Disband(sender, disbandEventArgs);
                }
            }
            else if (e.IsYouHaveBeenDismissedFromFellowship(out tmpValue))
            {
                var dismissedYouEventArgs = new FellowshipDismissedYouEventArgs(tmpValue);

                REPlugin.Instance.Debug.WriteObject(dismissedYouEventArgs);

                if (this.DismissedYou != null)
                {
                    this.DismissedYou(sender, dismissedYouEventArgs);
                }
            }
            else if (e.IsPlayerJoinedFellowship(out tmpValue))
            {
                var joinedEventArgs = new FellowshipJoinedOtherEventArgs(tmpValue);

                REPlugin.Instance.Debug.WriteObject(joinedEventArgs);

                if (this.JoinedOther != null)
                {
                    this.JoinedOther(this, joinedEventArgs);
                }
            }
            else if (e.IsYouHaveBeenRecruitedToFellowship(out tmpValue, out tmpValue2))
            {
                var recruitedEventArgs = new FellowshipJoinedYouEventArgs(tmpValue, tmpValue2);

                REPlugin.Instance.Debug.WriteObject(recruitedEventArgs);

                if (this.JoinedYou != null)
                {
                    this.JoinedYou(this, recruitedEventArgs);
                }
            }
            else if (e.IsPlayerLeftFellowship(out tmpValue))
            {
                var leftEventArgs = new FellowshipQuitOtherEventArgs(tmpValue);

                REPlugin.Instance.Debug.WriteObject(leftEventArgs);

                if (this.QuitOther != null)
                {
                    this.QuitOther(this, leftEventArgs);
                }
            }

            else if (e.IsYouLeftFellowship(out tmpValue))
            {
                var quitYouEventArgs = new FellowshipQuitYouEventArgs(tmpValue);

                REPlugin.Instance.Debug.WriteObject(quitYouEventArgs);

                if (this.QuitYou != null)
                {
                    this.QuitYou(this, quitYouEventArgs);
                }
            }
        }
开发者ID:mrvoorhe,项目名称:redox-extensions,代码行数:86,代码来源:FellowshipEvents.cs


注:本文中的Decal.IsYouLeftFellowship方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。