Exemplo n.º 1
0
        internal bool readAIMesh(string path, out IntWarsSharp.Logic.RAF.AIMesh aimesh)
        {
            if (Root == null)
            {
                aimesh = null;
                return(false);
            }

            var entries = Root.SearchFileEntries(path);

            if (entries.Count < 1)
            {
                aimesh = null;
                return(false);
            }
            if (entries.Count > 1)
            {
                Logger.LogCoreInfo("Found more than one AIMesh for query " + path);
            }

            var entry = entries.First();

            aimesh = new IntWarsSharp.Logic.RAF.AIMesh(entry);

            return(true);
        }
Exemplo n.º 2
0
        internal bool readAIMesh(string path, out IntWarsSharp.Logic.RAF.AIMesh aimesh)
        {
            if (Root == null)
            {
                aimesh = null;
                return false;
            }

            var entries = Root.SearchFileEntries(path);
            if (entries.Count < 1)
            {
                aimesh = null;
                return false;
            }
            if (entries.Count > 1)
                Logger.LogCoreInfo("Found more than one AIMesh for query " + path);

            var entry = entries.First();
            aimesh = new IntWarsSharp.Logic.RAF.AIMesh(entry);

            return true;
        }