internal AdvGraphicOperaitonArg(AdvCommand command, GraphicInfoList graphic, float fadeTime, bool isNoPtattern = false)
        {
            this.RowData      = command.RowData;
            this.Graphic      = graphic;
            this.FadeTime     = fadeTime;
            this.IsNoPtattern = isNoPtattern;

            this.Arg2 = command.ParseCellOptional <string>(AdvColumnName.Arg2, "");
            this.Arg3 = command.ParseCellOptional <string>(AdvColumnName.Arg3, "");
            this.Arg4 = command.ParseCellOptional <string>(AdvColumnName.Arg4, "");
            this.Arg5 = command.ParseCellOptional <string>(AdvColumnName.Arg5, "");
            float x;

            if (float.TryParse(Arg4, out x))
            {
                this.X = x;
            }
            float y;

            if (float.TryParse(Arg5, out y))
            {
                this.Y = y;
            }
            else
            {
                MotionPlayType type;
                if (UtageToolKit.TryParaseEnum <MotionPlayType>(Arg5, out type))
                {
                    PlayType = type;
                }
            }
        }
		internal AdvGraphicOperaitonArg(StringGridRow row, GraphicInfoList graphic, float fadeTime, bool isNoPtattern = false)
		{
			this.RowData = row;
			this.Graphic = graphic;
			this.FadeTime = fadeTime;
			this.IsNoPtattern = isNoPtattern;

			this.Arg2 = AdvParser.ParseCellOptional<string>(row, AdvColumnName.Arg2, "");
			this.Arg3 = AdvParser.ParseCellOptional<string>(row, AdvColumnName.Arg3, "");
			this.Arg4 = AdvParser.ParseCellOptional<string>(row, AdvColumnName.Arg4, "");
			this.Arg5 = AdvParser.ParseCellOptional<string>(row, AdvColumnName.Arg5, "");
			float x;
			if (float.TryParse(Arg4, out x))
			{
				this.X = x;
			}
			float y;
			if (float.TryParse(Arg5, out y))
			{
				this.Y = y;
			}
			else
			{
				MotionPlayType type;
				if (UtageToolKit.TryParaseEnum<MotionPlayType>(Arg5, out type))
				{
					PlayType = type;
				}
			}
		}
		//モーション変更可能かチェック
		public static bool CheckReplayMotion( string currentMotion, string nextMotion, MotionPlayType playType )
		{
			//同じモーションの場合は、プレイタイプのよってはモーションを再生しない
			if(currentMotion == nextMotion)
			{
				switch(playType)
				{
					case MotionPlayType.Loop:
					case MotionPlayType.NoReplay:
						return false;
				}
			}
			return true;
		}
Example #4
0
 public static bool CheckReplayMotion(string currentMotion, string nextMotion, MotionPlayType playType)
 {
     if ((currentMotion == nextMotion) && ((playType == MotionPlayType.Loop) || (playType == MotionPlayType.NoReplay)))
     {
         return(false);
     }
     return(true);
 }
Example #5
0
 //モーション変更可能かチェック
 public static bool CheckReplayMotion(string currentMotion, string nextMotion, MotionPlayType playType)
 {
     //同じモーションの場合は、プレイタイプのよってはモーションを再生しない
     if (currentMotion == nextMotion)
     {
         switch (playType)
         {
         case MotionPlayType.Loop:
         case MotionPlayType.NoReplay:
             return(false);
         }
     }
     return(true);
 }