예제 #1
0
        private static string[] ReturnAnimationArray(int heroAnimationList, int enemyAnimationList, int animationClipIndex)
        {
            string[]        temp;
            List <string[]> tempList   = new List <string[]>();
            AnimationsData  animations = new AnimationsData();

            if (heroAnimationList == 0)
            {
                tempList = animations.SpearmanAnimations(enemyAnimationList);
                temp     = tempList[animationClipIndex];
                return(temp);
            }
            else if (heroAnimationList == 1)
            {
                tempList = animations.SwordsmanAnimations(enemyAnimationList);
                temp     = tempList[animationClipIndex];
                return(temp);
            }
            else if (heroAnimationList == 2)
            {
                tempList = animations.RangerAnimations(enemyAnimationList);
                temp     = tempList[animationClipIndex];
                return(temp);
            }
            else
            {
                return(new string[] { "no", "string" });
            }
        }
예제 #2
0
        public static AnimationsData Load(string id)
        {
            TextAsset      textAsset = Resources.Load("Data/animations/" + id) as TextAsset;
            AnimationsData data      = JsonUtility.FromJson <AnimationsData>(textAsset.text);

            return(data);
        }
예제 #3
0
파일: Art.cs 프로젝트: byterj/phoenix
        private Art(string mulFile, IndexFile indexFile, Stream dataStream)
        {
            this.mulFile    = mulFile;
            this.indexFile  = indexFile;
            this.dataStream = dataStream;

            tileObject       = new LandscapeData(this);
            itemsObject      = new ItemsData(this);
            animationsObject = new AnimationsData(this);
        }
예제 #4
0
    private static AnimationsData GetAnimationsData(string animation)
    {
        if (animationsDataList.ContainsKey(animation))
        {
            return(animationsDataList[animation]);
        }
        AnimationsData animationData = AnimationsData.Load(animation);

        animationsDataList.Add(animation, animationData);
        return(animationData);
    }
예제 #5
0
파일: Art.cs 프로젝트: byterj/phoenix
        /// <summary>
        /// Initializes the new empty Art object.
        /// </summary>
        public Art()
        {
            mulFile    = null;
            dataStream = Stream.Null;

            indexFile = new IndexFile();
            indexFile.Resize(65536);

            tileObject       = new LandscapeData(this);
            itemsObject      = new ItemsData(this);
            animationsObject = new AnimationsData(this);
        }
예제 #6
0
        public static void CharacterDisplay(HeroClassTypes heroClass, EnemyClassType enemyClass)
        {
            AnimationsData animationsData = new AnimationsData();
            int            playerIndex;
            int            enemyIndex;
            string         display;

            playerIndex = ReturnHeroAnimationListNumber(heroClass);
            enemyIndex  = ReturnEnemyAnimationListNumber(enemyClass);

            display = animationsData.DisplayCharacter(playerIndex, enemyIndex);
            Console.WriteLine(display);
        }
예제 #7
0
파일: Art.cs 프로젝트: greeduomacro/phoenix
        private Art(string mulFile, IndexFile indexFile, Stream dataStream)
        {
            this.mulFile = mulFile;
            this.indexFile = indexFile;
            this.dataStream = dataStream;

            tileObject = new LandscapeData(this);
            itemsObject = new ItemsData(this);
            animationsObject = new AnimationsData(this);
        }
예제 #8
0
파일: Art.cs 프로젝트: greeduomacro/phoenix
        /// <summary>
        /// Initializes the new empty Art object.
        /// </summary>
        public Art()
        {
            mulFile = null;
            dataStream = Stream.Null;

            indexFile = new IndexFile();
            indexFile.Resize(65536);

            tileObject = new LandscapeData(this);
            itemsObject = new ItemsData(this);
            animationsObject = new AnimationsData(this);
        }