Esempio n. 1
0
        public override void FromString(string[] d, UAsset asset)
        {
            var tempStr = FString.FromString(d[0]);

            EnumType = tempStr == null ? 0 : asset.AddNameReference(tempStr);
            if (byte.TryParse(d[1], out byte res))
            {
                ByteType = BytePropertyType.Byte;
                Value    = res;
            }
            else
            {
                ByteType = BytePropertyType.Long;

                tempStr = FString.FromString(d[1]);
                Value   = tempStr == null ? 0 : asset.AddNameReference(tempStr);
            }
        }
Esempio n. 2
0
        public override void FromString(string[] d, UAsset asset)
        {
            if (d[0] != "null" && d[0] != null)
            {
                FName output = FName.FromString(d[0]);
                asset.AddNameReference(output.Value);
                EnumType = output;
            }
            else
            {
                EnumType = null;
            }

            if (d[1] != "null" && d[1] != null)
            {
                FName output = FName.FromString(d[1]);
                asset.AddNameReference(output.Value);
                Value = output;
            }
            else
            {
                Value = null;
            }
        }
        public override void FromString(string[] d, UAsset asset)
        {
            FName output = FName.FromString(d[0]);

            asset.AddNameReference(output.Value);
            Value = output;

            if (uint.TryParse(d[1], out uint res2))
            {
                ID = res2;
            }
            else
            {
                ID = 0;
            }
        }
        public override void FromString(string[] d, UAsset asset)
        {
            if (asset.EngineVersion < UE4Version.VER_UE4_ADDED_SOFT_OBJECT_PATH)
            {
                Path = FString.FromString(d[0]);
            }
            else
            {
                FName output = FName.FromString(d[0]);
                asset.AddNameReference(output.Value);
                AssetPathName = output;

                if (d.Length > 1)
                {
                    SubPathString = FString.FromString(d[1]);
                }
            }
        }
 public override void FromString(string[] d, UAsset asset)
 {
     asset.AddNameReference(FString.FromString(d[0]));
     Value = FString.FromString(d[0]);
 }