Ejemplo n.º 1
0
        public void AddGatheringTempMarker(int mapX, int mapY, int radius, uint iconId = 0, uint styleFlags = 4, string tooltip = null)
        {
            var toolTip = Utf8String.FromString(tooltip ?? string.Empty);

            AddGatheringTempMarker(styleFlags, mapX, mapY, iconId, radius, toolTip);
            toolTip->Dtor();
        }
Ejemplo n.º 2
0
    public void OpenMap(uint mapId, uint territoryId = 0, string windowTitle = null, MapType type = MapType.FlagMarker)
    {
        var title = Utf8String.FromString(windowTitle ?? string.Empty);
        var info  = stackalloc OpenMapInfo[1];

        info->Type        = type == MapType.FlagMarker && IsFlagMarkerSet != 1 ? MapType.Centered : type;
        info->MapId       = mapId;
        info->TerritoryId = territoryId;
        info->TitleString = *title;
        OpenMap(info);
        title->Dtor();
    }