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