public static Layer ReadGClass69(this SCMap scMap) { Layer layer = new Layer(); layer.albedoPath = scMap.ReadString(); layer.normalPath = scMap.ReadString(); layer.tiling_albedo = scMap.ReadFloat(); layer.tiling_normal = scMap.ReadFloat(); return(layer); }
public static GClass1 ReadDecal(this SCMap scMap) { GClass1 gClass1 = new GClass1(); gClass1.unk0 = scMap.ReadInt(); gClass1.gEnum7 = scMap.ReadInt(); int texturesCount = scMap.ReadInt(); gClass1.texturePaths = new string[texturesCount]; for (int i = 0; i < texturesCount; i++) { int strLenght = scMap.ReadInt(); gClass1.texturePaths[i] = scMap.ReadString(strLenght); } gClass1.scale = scMap.ReadVector3(); gClass1.position = scMap.ReadVector3(); Vector3 rot = scMap.ReadVector3(); gClass1.rotation = Quaternion.Euler(rot); gClass1.cutOffLOD = scMap.ReadFloat(); gClass1.nearCutOffLOD = scMap.ReadFloat(); gClass1.id = scMap.ReadInt(); return(gClass1); }
public static LightingSettings ReadLightingSettings(this SCMap scMap) { LightingSettings lightingSettings = new LightingSettings(); lightingSettings.bgTexturePath = scMap.ReadString(); lightingSettings.skyCubeMapPath = scMap.ReadString(); lightingSettings.envCubeMap = scMap.ReadString(); lightingSettings.lightingMultiplier = scMap.ReadFloat(); lightingSettings.sunDirection = scMap.ReadVector3(); lightingSettings.sunAmbience = scMap.ReadColorRGB(); lightingSettings.sunColor = scMap.ReadColorRGB(); lightingSettings.shadowColor = scMap.ReadColorRGB(); lightingSettings.specularColor = scMap.ReadColorRGBA(); lightingSettings.bloom = scMap.ReadFloat(); return(lightingSettings); }
public static Wave ReadWave(this SCMap scMap) { Wave wave = new Wave(); wave.float_0 = scMap.ReadFloat(); wave.float_1 = scMap.ReadFloat(); wave.texturePath = scMap.ReadString(); return(wave); }
public static SCTerrain ReadSCTearrain(this SCMap scMap) { SCTerrain terrain = new SCTerrain(); terrain.size = scMap.ReadVector2i(); terrain.scaleFactor = scMap.ReadFloat(); terrain.heights = scMap.ReadShorts(((int)terrain.size.x + 1) * ((int)terrain.size.y + 1)); terrain.strTTerrain = scMap.ReadString(); return(terrain); }
public static GClass70 ReadGClass70(this SCMap scMap) { GClass70 gClass70 = new GClass70(); gClass70.int_0 = scMap.ReadInt(); gClass70.group = scMap.ReadString(); int lenght = scMap.ReadInt(); gClass70.int_1 = scMap.ReadInts(lenght); return(gClass70); }
public static Prop ReadProp(this SCMap scMap) { Prop prop = new Prop(); prop.string_0 = scMap.ReadString(); prop.position = scMap.ReadVector3(); prop.vector3_2 = scMap.ReadVector3(); prop.vector3_3 = scMap.ReadVector3(); prop.rotation = Quaternion.identity; prop.unk0 = scMap.ReadVector3(); return(prop); }
public static GClass0 ReadGClass0(this SCMap scMap) { GClass0 gClass0 = new GClass0(); gClass0.texturePath = scMap.ReadString(); gClass0.ramp = scMap.ReadString(); gClass0.position = scMap.ReadVector3(); float rotY = scMap.ReadFloat(); gClass0.rotation = Quaternion.Euler(0, rotY, 0); gClass0.velocity = scMap.ReadVector3(); gClass0.lifetimeFirst = scMap.ReadFloat(); gClass0.lifetimeSecond = scMap.ReadFloat(); gClass0.periodFirst = scMap.ReadFloat(); gClass0.periodSecond = scMap.ReadFloat(); gClass0.scaleFirst = scMap.ReadFloat(); gClass0.scaleSecond = scMap.ReadFloat(); gClass0.frameCount = scMap.ReadFloat(); gClass0.frameRateFirst = scMap.ReadFloat(); gClass0.frameRateSecond = scMap.ReadFloat(); gClass0.stripCount = scMap.ReadFloat(); return(gClass0); }
public static MapHeader ReadMapHeader(this SCMap scMap) { MapHeader mapHeader = new MapHeader(); mapHeader.containerName = scMap.ReadString(4); mapHeader.int0 = scMap.ReadInt(); mapHeader.int1 = scMap.ReadInt(); mapHeader.int2 = scMap.ReadInt(); mapHeader.mapSize = scMap.ReadVector2(); mapHeader.int3 = scMap.ReadInt(); mapHeader.sh4 = scMap.ReadShort(); mapHeader.preview = scMap.ReadDDS(); mapHeader.version = scMap.ReadInt(); return(mapHeader); }