Exemple #1
0
 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;
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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();
        }
Exemple #4
0
        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();
        }
Exemple #5
0
 public YmapBoxOccluder(YmapFile ymap, Unk_975711773 box)
 {
     Ymap = ymap;
     _Box = box;
 }
Exemple #6
0
 public YmapOccludeModel(YmapFile ymap, Unk_2741784237 model)
 {
     Ymap          = ymap;
     _OccludeModel = model;
 }