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())); }
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(); }
public string Accept(TVector4 type, string jsonVarName, string fieldName) { return($"{fieldName} = Vector4.fromJson({jsonVarName})"); }
public string Accept(TVector4 type) { return("readVector4"); }
public DType Accept(TVector4 type, IEnumerable <ExcelStream> x, bool y, DefAssembly ass) { throw new NotImplementedException(); }
public string Accept(TVector4 type) { return("VECTOR4"); }
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); }
public override string Accept(TVector4 type) { return("Vector4"); }
public string Accept(TVector4 type, string bufName, string fieldName) { return($"{bufName}.WriteVector4({fieldName});"); }
public virtual TR Accept(TVector4 type) { return DoAccept(type); }
public string Accept(TVector4 type, string bufName) { return($"{bufName}.ReadVector4()"); }
public DType Accept(TVector4 type, string x) { throw new NotSupportedException(); }
public string Accept(TVector4 type) { return("FJsonValueObject"); }
public string Accept(TVector4 type) { return("writeVector4"); }
public string Accept(TVector4 type) { return("System.Numerics.Vector4"); }
public void Accept(TVector4 type, Dictionary <string, DefTypeBase> x) { }
public string Accept(TVector4 type, string bufName, string fieldName) { return($"if(!{bufName}.readVector4({fieldName})) return false;"); }
public DType Accept(TVector4 type, XElement x, DefAssembly ass) { return(DataUtil.CreateVector(type, x.Value)); }
public string Accept(TVector4 type) { return($"math.Vector4"); }
public string Accept(TVector4 type, string x) { throw new NotImplementedException(); }
public string Accept(TVector4 type) { return($"serialization.Vector4"); }
public string Accept(TVector4 type, string fieldName, string logType) { return($"{fieldName} = default;"); }
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)); }