Exemplo n.º 1
0
 public void Read(AssetsFile owner, UnityReader reader)
 {
     Volume             = reader.ReadFloat();
     RolloffScale       = reader.ReadFloat();
     DopplerFactor      = reader.ReadFloat();
     DefaultSpeakerMode = (SpeakerMode)reader.ReadInt32();
     SampleRate         = reader.ReadInt32();
     DspBufferSize      = reader.ReadInt32();
     VirtualVoiceCount  = reader.ReadInt32();
     RealVoiceCount     = reader.ReadInt32();
     SpatializerPlugin  = reader.ReadStringFixed(reader.ReadInt32());
     DisableAudio       = reader.ReadBool();
     VirtualizeEffects  = reader.ReadBool();
 }
Exemplo n.º 2
0
        private object ReadValue(UnityReader reader)
        {
            switch (TypeName.ToLower())
            {
            case "int16": return(reader.ReadInt16());

            case "uint16": return(reader.ReadUInt16());

            case "int32": return(reader.ReadInt32());

            case "uint32": return(reader.ReadUInt32());

            case "int64": return(reader.ReadInt64());

            case "uint64": return(reader.ReadUInt64());

            case "float": return(reader.ReadFloat());

            case "boolean": return(reader.ReadBool());

            case "byte": return(reader.ReadByte());

            case "string":
                int length = reader.ReadInt32();
                return(reader.ReadStringFixed(length));
            }
            return(null);
        }
Exemplo n.º 3
0
 public void Read(AssetsFile owner, UnityReader reader)
 {
     Name                    = reader.ReadStringFixed(reader.ReadInt32());
     DescriptiveName         = reader.ReadStringFixed(reader.ReadInt32());
     DescriptiveNegativeName = reader.ReadStringFixed(reader.ReadInt32());
     NegativeButton          = reader.ReadStringFixed(reader.ReadInt32());
     PositiveButton          = reader.ReadStringFixed(reader.ReadInt32());
     NegativeButtonAlt       = reader.ReadStringFixed(reader.ReadInt32());
     PositiveButtonAlt       = reader.ReadStringFixed(reader.ReadInt32());
     Gravity                 = reader.ReadFloat();
     Dead                    = reader.ReadFloat();
     Sensitivity             = reader.ReadFloat();
     Snap                    = reader.ReadBool();
     Invert                  = reader.ReadBool();
     Type                    = reader.ReadInt32();
     Axis                    = reader.ReadInt32();
     JoyNum                  = reader.ReadInt32();
 }