Beispiel #1
0
 public static void LoadExpExcelData(
     Dictionary <string, Game.Expression> dic,
     ExcelData excelData)
 {
     foreach (ExcelData.Param obj in excelData.list)
     {
         if (!obj.list.IsNullOrEmpty <string>())
         {
             Game.Expression expression = new Game.Expression(obj.list.Skip <string>(1).ToArray <string>())
             {
                 IsChangeSkip = true
             };
             dic[obj.list[0]] = expression;
         }
     }
 }
Beispiel #2
0
 public static void Copy(Game.Expression source, Game.Expression destination)
 {
     Game.Expression expression1 = destination;
     if (!(source?.Eyebrow.Clone() is Game.Expression.Pattern pattern))
     {
         pattern = new Game.Expression.Pattern();
     }
     expression1.Eyebrow = pattern;
     Game.Expression expression2 = destination;
     if (!(source.Eyes?.Clone() is Game.Expression.Pattern pattern))
     {
         pattern = new Game.Expression.Pattern();
     }
     expression2.Eyes = pattern;
     Game.Expression expression3 = destination;
     if (!(source.Mouth?.Clone() is Game.Expression.Pattern pattern))
     {
         pattern = new Game.Expression.Pattern();
     }
     expression3.Mouth           = pattern;
     destination.EyebrowOpen     = source.EyebrowOpen;
     destination.EyesOpen        = source.EyesOpen;
     destination.MouthOpen       = source.MouthOpen;
     destination.EyesLook        = source.EyesLook;
     destination.HohoAkaRate     = source.HohoAkaRate;
     destination.TearsRate       = source.TearsRate;
     destination.IsBlink         = source.IsBlink;
     destination.IsChangeSkip    = source.IsChangeSkip;
     destination._useEyebrow     = source._useEyebrow;
     destination._useEyes        = source._useEyes;
     destination._useMouth       = source._useMouth;
     destination._useEyebrowOpen = source._useEyebrowOpen;
     destination._useEyesOpen    = source._useEyesOpen;
     destination._useMouthOpen   = source._useMouthOpen;
     destination._useEyesLook    = source._useEyesLook;
     destination._useHohoAkaRate = source._useHohoAkaRate;
     destination._useTearsLv     = source._useTearsLv;
     destination._useBlink       = source._useBlink;
 }
Beispiel #3
0
 public void Copy(Game.Expression destination)
 {
     Game.Expression.Copy(this, destination);
 }
Beispiel #4
0
 public Expression(Game.Expression other)
 {
     Game.Expression.Copy(other, this);
 }