ME3Explorer.UnrealHelper.UPropertyReader.PropToIntVector3 C# (CSharp) Méthode

PropToIntVector3() public méthode

public PropToIntVector3 ( byte buff ) : System.Vector3
buff byte
Résultat System.Vector3
        public Vector3 PropToIntVector3(byte[] buff)
        {
            Vector3 v = new Vector3(0, 0, 0);
            if (buff == null || buff.Length < 12)
                return v;
            v.X = BitConverter.ToInt32(buff, buff.Length - 12);
            v.Y = BitConverter.ToInt32(buff, buff.Length - 8);
            v.Z = BitConverter.ToInt32(buff, buff.Length - 4);
            return v;
        }
    }