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

GenerateGp() public method

public GenerateGp ( ) : List
return List
        public List<string> GenerateGp()
        {
            List<string> gpList = new List<string>();
            int i = 0;
            foreach (PortalDTO portal in ServerManager.GetMap(MapId).Portals)
            {
                gpList.Add($"gp {portal.SourceX} {portal.SourceY} {portal.DestinationMapId} {portal.Type} {i} {(portal.IsDisabled ? 1 : 0)}");
                i++;
            }

            return gpList;
        }

Same methods

Character::GenerateGp ( PortalDTO portal ) : string
Character