public string Accept(TVector4 type)
 {
     if (DefAssemblyBase.IsUseUnityVectors)
     {
         return("UnityEngine.Vector4");
     }
     return("System.Numerics.Vector4");
 }
        public DType Accept(TVector4 type, ExcelStream x)
        {
            var d = x.Read();

            if (CheckNull(type.IsNullable, d))
            {
                return(null);
            }
            return(DataUtil.CreateVector(type, d.ToString()));
        }
Exemple #3
0
        public DType Accept(TVector4 type, object converter, ExcelStream x, DefAssembly ass)
        {
            var d = x.Read();

            if (CheckNull(type.IsNullable, d))
            {
                return(null);
            }
            return(DataUtil.CreateVector(type, d.ToString()));
        }
 public string Accept(TVector4 type, string fieldName, string tablesName)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 public string Accept(TVector4 type, string jsonVarName, string fieldName)
 {
     return($"{fieldName} = Vector4.fromJson({jsonVarName})");
 }
Exemple #6
0
 public string Accept(TVector4 type)
 {
     return("readVector4");
 }
 public DType Accept(TVector4 type, IEnumerable <ExcelStream> x, bool y, DefAssembly ass)
 {
     throw new NotImplementedException();
 }
Exemple #8
0
 public string Accept(TVector4 type)
 {
     return("VECTOR4");
 }
Exemple #9
0
 public override bool Accept(TVector4 type)
 {
     return(false);
 }
 public virtual void Accept(TVector4 type, T x)
 {
 }
 public virtual void Accept(TVector4 type, T x)
 {
     DoAccept(type, x);
 }
Exemple #12
0
 public override string Accept(TVector4 type)
 {
     return("Vector4");
 }
Exemple #13
0
 public string Accept(TVector4 type, string bufName, string fieldName)
 {
     return($"{bufName}.WriteVector4({fieldName});");
 }
Exemple #14
0
 public virtual TR Accept(TVector4 type)
 {
     return DoAccept(type);
 }
Exemple #15
0
 public string Accept(TVector4 type, string bufName)
 {
     return($"{bufName}.ReadVector4()");
 }
Exemple #16
0
 public DType Accept(TVector4 type, string x)
 {
     throw new NotSupportedException();
 }
Exemple #17
0
 public string Accept(TVector4 type)
 {
     return("FJsonValueObject");
 }
 public string Accept(TVector4 type)
 {
     return("writeVector4");
 }
Exemple #19
0
 public string Accept(TVector4 type)
 {
     return("System.Numerics.Vector4");
 }
 public void Accept(TVector4 type, Dictionary <string, DefTypeBase> x)
 {
 }
Exemple #21
0
 public string Accept(TVector4 type, string bufName, string fieldName)
 {
     return($"if(!{bufName}.readVector4({fieldName})) return false;");
 }
Exemple #22
0
 public DType Accept(TVector4 type, XElement x, DefAssembly ass)
 {
     return(DataUtil.CreateVector(type, x.Value));
 }
Exemple #23
0
 public string Accept(TVector4 type)
 {
     return($"math.Vector4");
 }
Exemple #24
0
 public string Accept(TVector4 type, string x)
 {
     throw new NotImplementedException();
 }
 public string Accept(TVector4 type)
 {
     return($"serialization.Vector4");
 }
Exemple #26
0
 public string Accept(TVector4 type, string fieldName, string logType)
 {
     return($"{fieldName} = default;");
 }
Exemple #27
0
 public void Accept(TVector4 type, HashSet <DefTypeBase> x)
 {
 }
        public static DType CreateVector(TVector4 type, string x)
        {
            var values = SplitVectorString(x);

            return(new DVector4(new System.Numerics.Vector4(float.Parse(values[0]), float.Parse(values[1]), float.Parse(values[2]), float.Parse(values[3]))));
        }
 public string Accept(TVector4 type, string bufName, string fieldName)
 {
     return($"{fieldName} = {bufName}.ReadVector4();");
 }
 public string Accept(TVector4 type, string json, string field)
 {
     return(DefaultLoad(json, field));
 }