OpenNos.GameObject.Character.GeneratePidx C# (CSharp) Method

GeneratePidx() public method

public GeneratePidx ( bool isLeaveGroup = false ) : string
isLeaveGroup bool
return string
        public string GeneratePidx(bool isLeaveGroup = false)
        {
            if (!isLeaveGroup && Group != null)
            {
                string str = $"pidx {Group.GroupId}";
                string result = str;
                foreach (ClientSession s in Group.Characters)
                {
                    if (s.Character != null)
                    {
                        result = result + $" {(Group.IsMemberOfGroup(CharacterId) ? 1 : 0)}.{s.Character.CharacterId} ";
                    }
                }
                return result;
            }
            return $"pidx -1 1.{CharacterId}";
        }
Character