コード例 #1
0
        //** AddSkinSlot **
        //Insert a new skin slot
        public int AddSkinSlot(int idStructure, string partName, string objName)
        {
            int iReturn = 1;

            //Get number of new record
            if (skinSlots.Count(x => x.IDStructure == idStructure) > 0)
            {
                iReturn = skinSlots.OrderBy(x => x.IDSlot).Where(x => x.IDStructure == idStructure).Last().IDSlot + 1;
            }

            BodySkinsSlots toAdd = new BodySkinsSlots();

            toAdd.IDSlot      = iReturn;
            toAdd.IDStructure = idStructure;
            toAdd.SlotName    = partName;
            toAdd.ObjectName  = objName;

            skinSlots.Add(toAdd);

            return(iReturn);
        }
コード例 #2
0
        //** GetSkinSlotRecord **
        //Retrieve record of a skin slot
        public BodySkinsSlots GetSkinSlotRecord(int id)
        {
            BodySkinsSlots recReturn = new BodySkinsSlots();

            return(recReturn);
        }