コード例 #1
0
 public void HandleActionFellowshipChangeOpenness(bool openness)
 {
     if (Fellowship != null)
     {
         Fellowship.UpdateOpenness(openness);
     }
 }
コード例 #2
0
ファイル: Player_Fellowship.cs プロジェクト: roidzilla/ACE
 public void FellowshipSetOpen(bool openness)
 {
     if (Fellowship != null)
     {
         Fellowship.UpdateOpenness(openness);
     }
 }
コード例 #3
0
 public void HandleActionFellowshipChangeOpenness(bool openness)
 {
     if (Fellowship != null)
     {
         if (!Fellowship.IsLocked)
         {
             Fellowship.UpdateOpenness(openness);
         }
         else
         {
             Session.Network.EnqueueSend(new GameEventWeenieError(Session, WeenieError.FellowshipIsLocked));
         }
     }
 }
コード例 #4
0
        public void HandleActionFellowshipChangeOpenness(bool openness)
        {
            if (Fellowship != null)
            {
                if (Guid.Full != Fellowship.FellowshipLeaderGuid)
                {
                    Session.Network.EnqueueSend(new GameEventWeenieError(Session, WeenieError.YouMustBeLeaderOfFellowship));
                    return;
                }

                if (!Fellowship.IsLocked)
                {
                    Fellowship.UpdateOpenness(openness);
                }
                else
                {
                    Session.Network.EnqueueSend(new GameEventWeenieError(Session, WeenieError.FellowshipIsLocked));
                }
            }
        }