Exemplo n.º 1
0
        //** AddModel **
        //Insert a new model
        public void AddModel(int IDSubtype, int IDCloth, string prefabName)
        {
            PropModels toAdd = new PropModels();

            toAdd.PropID        = IDCloth;
            toAdd.IDBodySubtype = IDSubtype;
            toAdd.ModelName     = prefabName;

            propModelsList.Add(toAdd);
        }
Exemplo n.º 2
0
        //** GetModelObjectName **
        //Retrieve the name of a prop object for a specified bpdy subtype
        public string GetModelObjectName(int idProp, int bodySubtype)
        {
            string toReturn = "";

            PropModels tRec = propModelsList.Find(x => x.PropID == idProp && x.IDBodySubtype == bodySubtype);

            if (tRec != null)
            {
                toReturn = tRec.ModelName;
            }

            return(toReturn);
        }