public MapDataStoreNode(YmapFile ymap) { Name = ymap._CMapData.name; ParentName = ymap._CMapData.parent; ContentFlags = ymap._CMapData.contentFlags; streamingExtentsMin = ymap._CMapData.streamingExtentsMin; streamingExtentsMax = ymap._CMapData.streamingExtentsMax; entitiesExtentsMin = ymap._CMapData.entitiesExtentsMin; entitiesExtentsMax = ymap._CMapData.entitiesExtentsMax; }
public YmapCarGen(YmapFile ymap, CCarGen cargen) { float hlen = cargen.perpendicularLength * 0.5f; Ymap = ymap; CCarGen = cargen; Position = cargen.position; CalcOrientation(); BBMin = new Vector3(-hlen); BBMax = new Vector3(hlen); }
public YmapEntityDef(YmapFile ymap, int index, ref CMloInstanceDef mlo) { Ymap = ymap; Index = index; CEntityDef = mlo.CEntityDef; Scale = new Vector3(new Vector2(CEntityDef.scaleXY), CEntityDef.scaleZ); Position = CEntityDef.position; Orientation = new Quaternion(CEntityDef.rotation); //if (Orientation != Quaternion.Identity) //{ // Orientation = Quaternion.Invert(Orientation); //} IsMlo = true; UpdateWidgetPosition(); UpdateWidgetOrientation(); }
public YmapEntityDef(YmapFile ymap, int index, ref CEntityDef def) { Ymap = ymap; Index = index; CEntityDef = def; Scale = new Vector3(new Vector2(CEntityDef.scaleXY), CEntityDef.scaleZ); Position = CEntityDef.position; Orientation = new Quaternion(CEntityDef.rotation); if (Orientation != Quaternion.Identity) { Orientation = Quaternion.Invert(Orientation); } IsMlo = false; UpdateWidgetPosition(); UpdateWidgetOrientation(); }
public YmapBoxOccluder(YmapFile ymap, Unk_975711773 box) { Ymap = ymap; _Box = box; }
public YmapOccludeModel(YmapFile ymap, Unk_2741784237 model) { Ymap = ymap; _OccludeModel = model; }