Beispiel #1
0
        internal static void AddQuestEntities(CameraDetail detail, DataSet dataSet, List <Fox2EntityClass> entityList)
        {
            List <Camera> cameras = detail.cameras;

            if (cameras.Count() > 0)
            {
                GameObject tppCamera = new GameObject("SecurityCameraGameObject", dataSet, "TppSecurityCamera2", cameras.Count(), cameras.Count());
                TppSecurityCamera2Parameter tppCameraParameter = new TppSecurityCamera2Parameter(tppCamera);

                tppCamera.SetParameter(tppCameraParameter);

                entityList.Add(tppCamera);
                entityList.Add(tppCameraParameter);

                foreach (Camera camera in cameras)
                {
                    GameObjectLocator locator   = new GameObjectLocator(camera.GetObjectName(), dataSet, "TppSecurityCamera2");
                    Transform         transform = new Transform(locator, camera.position);
                    TppSecurityCamera2LocatorParameter locatorParameter = new TppSecurityCamera2LocatorParameter(locator);

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

                    entityList.Add(locator);
                    entityList.Add(transform);
                    entityList.Add(locatorParameter);
                }
            }
        }
Beispiel #2
0
 internal static void GetCameraAssets(CameraDetail questDetail, FileAssets fileAssets)
 {
     if (questDetail.cameras.Count > 0)
     {
         fileAssets.AddFPKFolder(Path.Combine(CameraAssetsPath, "FPK_Files"));
         fileAssets.AddFPKDFolder(Path.Combine(CameraAssetsPath, "FPKD_Files"));
     }
 }
Beispiel #3
0
        internal static void GetMain(CameraDetail detail, MainLua mainLua)
        {
            if (detail.cameras.Count > 0)
            {
                mainLua.AddToQuestTable(BuildCameraList(detail.cameras));

                mainLua.AddToQStep_Main(QStep_MainCommonMessages.mechaNoCaptureTargetMessages);

                mainLua.AddToQStep_Start_OnEnter(SetCameraAttributes);
                mainLua.AddToAuxiliary(SetCameraAttributes);

                if (detail.cameras.Any(camera => camera.isTarget))
                {
                    CheckQuestGenericEnemy cameraCheck = new CheckQuestGenericEnemy(mainLua);
                    foreach (Camera cam in detail.cameras)
                    {
                        if (cam.isTarget)
                        {
                            mainLua.AddToTargetList(cam.GetObjectName());
                        }
                    }
                }
            }
        }