コード例 #1
0
ファイル: IDExaminable.cs プロジェクト: Ryan089/SS3D
        public void Start()
        {
            // Populate requirements for this item to be examined.
            requirements = new ReqPermitExamine(gameObject);
            requirements = new ReqMaxRange(requirements, MaxDistance);
            requirements = new ReqObstacleCheck(requirements);

            // Populate the actual ID details randomly
            IdDetails = new DataIdentificationCard();
        }
コード例 #2
0
        private void SyncIDCardDetails(int oldCharacter, int newCharacter)
        {
            EnsureInit();

            // This is our synchronised variable, and should trigger our hook method on the client.
            characterID = newCharacter;

            // Set all the ID details randomly.
            Expiry = DateTime.Today;                // Need to randomise this.
            switch (newCharacter)
            {
            case 1:
                FirstName  = "Tippo";
                Surname    = "Felangus";
                Species    = "Human";
                Title      = "Chemist";
                Gender     = "Male";
                Classifier = 4;
                Age        = 31;
                break;

            case 2:
                FirstName  = "Reinard";
                Surname    = "Parker";
                Species    = "Human";
                Title      = "Roboticist";
                Gender     = "Male";
                Classifier = 4;
                Age        = 53;

                break;

            case 3:
                FirstName  = "Robert";
                Surname    = "Oppenheimer";
                Species    = "Human";
                Title      = "Research Director";
                Gender     = "Male";
                Classifier = 2;
                Age        = 71;
                break;

            case 4:
                FirstName  = "William";
                Surname    = "Harshman";
                Species    = "Human";
                Title      = "Head of Security";
                Gender     = "Male";
                Classifier = 2;
                break;

            case 5:
                FirstName  = "George";
                Surname    = "Melons";
                Species    = "Human";
                Title      = "Assistant";
                Gender     = "Male";
                Classifier = 6;
                Age        = 18;
                break;

            case 6:
                FirstName  = "Ruth";
                Surname    = "McVork";
                Species    = "Human";
                Title      = "Geneticist";
                Gender     = "Female";
                Classifier = 4;
                Age        = 36;
                break;

            case 7:
                FirstName   = "Stuart";
                Surname     = "Maple";
                Species     = "Human";
                Title       = "Chief Engineer";
                Gender      = "Male";
                Classifier  = 2;
                Age         = 50;
                MugshotPath = "IDMugshot4";
                break;

            case 8:
                FirstName   = "Kody";
                Surname     = "Gill";
                Species     = "Human";
                Title       = "Station Engineer";
                Gender      = "Male";
                Classifier  = 4;
                Age         = 26;
                MugshotPath = "IDMugshot3";
                break;

            case 9:
                FirstName   = "Husain";
                Surname     = "Al'Shaqif";
                Species     = "Human";
                Title       = "Station Engineer";
                Gender      = "Male";
                Classifier  = 4;
                Age         = 25;
                MugshotPath = "IDMugshot2";
                break;

            case 10:
                FirstName   = "Lachlan";
                Surname     = "Bowers";
                Species     = "Human";
                Title       = "Atmospheric Technician";
                Gender      = "Male";
                Classifier  = 4;
                Age         = 31;
                MugshotPath = "IDMugshot1";
                break;
            }

            // Generate the details to be passed to the Examine system.
            IdDetails = new DataIdentificationCard(FirstName, Surname, Age, Species, Expiry, Title, Classifier, Gender, MugshotPath);
        }