Exemple #1
0
 public void Initialize(Building bld, string roomname, string nodename)
 {
     this.bld          = bld;
     this.bm           = bld.bm;
     this.name         = roomname;
     this.roomFullName = bld.name + "/" + roomname;
     this.roomNodeName = nodename;
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     sman     = FindObjectOfType <SceneMan>();
     linkctrl = sman.linkcloudman;
     gm       = sman.gaman;
     bm       = sman.bdman;
     pm       = sman.psman;
     zm       = sman.znman;
 }
Exemple #3
0
 public void AddPrsDetails(PersonMan pm, PersonMan.GenderE gender, string persname, string avatarname, PersonMan.empStatusE empstat, bool hasHololens = false)
 {
     this.pm           = pm;
     this.bm           = pm.sman.bdman;
     this.personGender = gender;
     this.personName   = persname;
     this.avatarName   = avatarname;
     this.idleScript   = "";
     this.walkScript   = "";
     this.danceScript  = "";
     this.placeBld     = "";
     this.placeNode    = "";
     this.perstate     = PersonAniStateE.standing;
     this.homeBld      = "";
     this.homeRoom     = "";
     this.homeNode     = "";
     this.empStatus    = empstat;
     this.hasHololens  = hasHololens;
     //this.prsgos = new List<GameObject>();
 }
Exemple #4
0
        public void AddBldDetails(BuildingMan bm)
        {
            this.bm         = bm;
            bldgos          = new List <GameObject>();
            maingaragename  = "";
            selectionweight = 1;
            destnodes       = new List <string>();
            switch (name)
            {
            case "Bld11":
            {
                maingaragename = "Garage11_1";
                destnodes      = new List <string> {
                    "b11-f01-lobby"
                };
                shortname = "b11";
                break;
            }

            case "Bld19":
            {
                maingaragename      = "Garage19_1";
                roomspecs           = B19roomspec;
                destnodes           = SplitOutDestNodes(roomspecs);
                shortname           = "b19";
                journeyChoiceWeight = 20;
                var b19comp = this.transform.gameObject.AddComponent <B19Willow>();
                b19comp.init();
                break;
            }

            case "Bld40":
            {
                maingaragename = "Garage40_1";
                destnodes      = new List <string> {
                    "b40-f01-lobby"
                };
                shortname = "b40";
                break;
            }

            case "Bld43":
            {
                maingaragename = "Garage43_1";
                destnodes      = new List <string> {
                    "b43-f01-rm1001", "b43-f01-rm1002", "b43-f01-rm1003"
                };
                shortname = "b43";
                break;
            }

            case "BldSX":
            {
                maingaragename = "GarageX_1";
                destnodes      = new List <string> {
                    "bSX-f01-lobby"
                };
                shortname = "bSX";
                break;
            }

            case "Bld99":
            {
                maingaragename = "Garage99_1";
                destnodes      = new List <string> {
                    "b99-f01-lobby"
                };
                shortname = "b99";
                break;
            }

            case "BldRWB":
            {
                maingaragename  = "GarageRWB_1";
                selectionweight = 10;
                destnodes       = new List <string> {
                    "bRWB-f01-lobby", "rwb-f03-rm3999"
                };
                SceneMan sman = FindObjectOfType <SceneMan>();
                //var destnodelst = sman.linkcloudctrl.FindNodes("rwb-f03-rm");
                //Debug.Log("Found " + destnodelst.Count + "destinations for "+name);
                shortname = "bRWB";
                break;
            }

            case "Eb12-22":
            {
                maingaragename = "Eb12_1";
                roomspecs      = Eb12roomspec;
                destnodes      = new List <string> {
                    "eb12-08-lob", "eb12-10-lob", "eb12-12-lob", "eb12-14-lob",
                    "eb12-16-lob", "eb12-18-lob", "eb12-20-lob", "eb12-22-lob"
                };
                shortname = "eb12";
                break;
            }

            case "Eb12-test":
            {
                shortname = "test";
                break;
            }

            case "Eb12-carport":
            {
                shortname = "carport";
                break;
            }

            case "Eb17":
            {
                shortname = "Eb17";
                break;
            }

            case "Eb19":
            {
                shortname = "Eb19";
                break;
            }

            case "Eb30":
            {
                shortname = "Eb30";
                break;
            }

            case "EbIdb25":
            {
                shortname = "EbIdb25";
                break;
            }

            case "EbIdb35":
            {
                shortname = "EbIdb35";
                break;
            }

            case "EbOphome":
            {
                shortname = "Ophm";
                break;
            }

            case "EbRewe":
            {
                maingaragename = "Eb12_Rewe";
                destnodes      = new List <string> {
                    "eb12-rewe-lob", "eb12-rewe-rm01", "eb12-rewe-rm02"
                };
                shortname = "Rewe";
                break;
            }

            case "DubBld1":
            {
                shortname = "DubBld1";
                destnodes = new List <string> {
                    "dub-oso01"
                };
                break;
            }

            default:
            {
                throw new UnityException("bad building name:" + name);
            }
            }
        }