Exemplo n.º 1
0
        private void BuildSign(TileIndex tile, string text)
        {
            AILog.Info("Sign (" + AIMap.GetTileX(tile) + ", " + AIMap.GetTileY(tile) + "): " + text);
            var signId = AISign.BuildSign(tile, "" + text);

            this.signs.AddItem(signId, 0);
        }
Exemplo n.º 2
0
        internal void BuildSign(TileIndex tile, string text)
        {
            if (signDictionary.ContainsKey(tile))
            {
                AISign.RemoveSign(signDictionary[tile]);
            }

            if (!string.IsNullOrEmpty(text))
            {
                var signId = AISign.BuildSign(tile, "" + text);
                this.signs.AddItem(signId, 0);
                signDictionary[tile] = signId;
            }
        }