Example #1
0
        public static void AddQuestEntities(VehicleDetail details, DataSet dataSet, List <Fox2EntityClass> entityList)
        {
            List <Vehicle>  vehicles  = details.vehicles;
            VehicleMetadata hMetadata = details.vehicleMetadata;

            if (vehicles.Count() > 0)
            {
                List <Fox2EntityClass> tempVehicleList = new List <Fox2EntityClass>();
                foreach (Vehicle vehicle in vehicles)
                {
                    if (!HasBodyData(entityList, vehicle.vehicle))
                    {
                        entityList.Add(new TppVehicle2BodyData(vehicle.vehicle, dataSet));
                    }
                    if (!HasAttachmentData(entityList, vehicle.vehicle))
                    {
                        entityList.Add(new TppVehicle2AttachmentData(vehicle.vehicle, dataSet));
                    }

                    GameObjectLocator           locator      = new GameObjectLocator(vehicle.GetObjectName(), dataSet, "TppVehicle2");
                    Transform                   transform    = new Transform(locator, vehicle.position);
                    TppVehicle2LocatorParameter locatorParam = new TppVehicle2LocatorParameter(locator);

                    locator.SetTransform(transform);
                    locator.SetParameter(locatorParam);

                    entityList.Add(locator);
                    entityList.Add(transform);
                    entityList.Add(locatorParam);
                }
            }
        }
Example #2
0
        public VehicleBox(Vehicle qObject, VehicleMetadata meta)
        {
            InitializeComponent();
            ID = qObject.ID;
            groupBox_main.Text = qObject.GetObjectName();

            textBox_xcoord.Text = qObject.position.coords.xCoord;
            textBox_ycoord.Text = qObject.position.coords.yCoord;
            textBox_zcoord.Text = qObject.position.coords.zCoord;
            textBox_rot.Text    = qObject.position.rotation.GetDegreeRotY();

            checkBox_target.Checked = qObject.isTarget;

            comboBox_vehicle.Items.AddRange(new string[]
            {
                "TT77 NOSOROG", "M84A MAGLOADER", "ZHUK BR-3", "ZHUK RS-ZO", "STOUT IFV-SC", "STOUT IFV-FS"
            });
            comboBox_vehicle.Text = qObject.vehicle;

            comboBox_class.Items.AddRange(new string[]
            {
                "DEFAULT", "DARK_GRAY", "OXIDE_RED"
            });
            comboBox_class.Text = qObject.vehicleClass;
        }
Example #3
0
 internal void SetMetadata(VehicleMetadata meta)
 {
     comboBox_ObjType.Text = meta.ObjectiveType;
 }
Example #4
0
 public VehicleDetail(List <Vehicle> vehicleList, VehicleMetadata vehicleMeta)
 {
     vehicles = vehicleList; vehicleMetadata = vehicleMeta;
 }