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); }
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(); }
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(); }
public void Read(AssetsFile owner, UnityReader reader) { Offset = reader.ReadUInt32(); Size = reader.ReadUInt32(); Path = reader.ReadStringFixed(reader.ReadInt32()); }