public void Read(AssetsFile owner, UnityReader reader) { FilterMode = reader.ReadInt32(); Aniso = reader.ReadInt32(); MipBias = reader.ReadInt32(); WrapMode = reader.ReadInt32(); }
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 override void Read(UnityReader reader, UnityContext context, JObject currentObject) { JArray current = new JArray(); currentObject[FieldName] = current; int count = reader.ReadInt32(); if (TemplateTypeName != null) { var template = context.TypeTable[TemplateTypeName]; for (int i = 0; i < count; i++) { JObject instance = new JObject(); current.Add(instance); template.Read(reader, context, instance); } } else { for (int i = 0; i < count; i++) { JObject instance = new JObject(); current.Add(instance); ReadChildren(reader, context, instance); } } }
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) { 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) { Offset = reader.ReadUInt32(); Size = reader.ReadUInt32(); Path = reader.ReadStringFixed(reader.ReadInt32()); }
void UnityElement.Read(UnityReader reader, int version) { FileID = reader.ReadInt32(); PathID = reader.ReadInt64(); }