示例#1
0
        public override SubRecord CreateUninitializedSubRecord(string subRecordName)
        {
            switch (subRecordName)
            {
            case "NAME":
                NAME = new NAMESubRecord();
                return(NAME);

            case "MODL":
                MODL = new MODLSubRecord();
                return(MODL);

            case "FNAM":
                FNAM = new FNAMSubRecord();
                return(FNAM);

            case "NPDT":
                NPDT = new NPDTSubRecord();
                return(NPDT);

            case "FLAG":
                FLAG = new FLAGSubRecord();
                return(FLAG);

            case "SCRI":
                SCRI = new SCRISubRecord();
                return(SCRI);

            case "NPCO":
                NPCO = new NPCOSubRecord();
                return(NPCO);

            case "AIDT":
                AIDT = new AIDTSubRecord();
                return(AIDT);

            case "AI_W":
                AI_W = new AI_WSubRecord();
                return(AI_W);

            /* case "AI_T":
             *   AI_T = new NPC_Record.AI_TSubRecord();
             *   return AI_T;
             * case "AI_F":
             *   AI_F = new NPC_Record.AI_FSubRecord();
             *   return AI_F;
             * case "AI_E":
             *   AI_E = new NPC_Record.AI_ESubRecord();
             *   return AI_E;
             * case "AI_A":
             *   AI_A = new NPC_Record.AI_ASubRecord();
             *   return AI_A;*/
            case "XSCL":
                XSCL = new XSCLSubRecord();
                return(XSCL);

            default:
                return(null);
            }
        }
示例#2
0
        public override SubRecord CreateUninitializedSubRecord(string subRecordName)
        {
            switch (subRecordName)
            {
            case "NAME":
                NAME = new NAMESubRecord();
                return(NAME);

            case "FNAM":
                FNAM = new FNAMSubRecord();
                return(FNAM);

            case "MODL":
                MODL = new MODLSubRecord();
                return(MODL);

            case "RNAM":
                RNAM = new RNAMSubRecord();
                return(RNAM);

            case "ANAM":
                ANAM = new ANAMSubRecord();
                return(ANAM);

            case "BNAM":
                BNAM = new BNAMSubRecord();
                return(BNAM);

            case "CNAM":
                CNAM = new CNAMSubRecord();
                return(CNAM);

            case "KNAM":
                KNAM = new KNAMSubRecord();
                return(KNAM);

            case "NPDT":
                NPDT = new NPDTSubRecord();
                return(NPDT);

            case "FLAG":
                FLAG = new FLAGSubRecord();
                return(FLAG);

            //case "NPCO":
            //NPCO = new NPCOSubRecord();
            //return NPCO;
            case "AIDT":
                AIDT = new AIDTSubRecord();
                return(AIDT);

            case "AI_W":
                AI_W = new AI_WSubRecord();
                return(AI_W);

            //case "AI_T":
            //AI_T = new AI_TSubRecord();
            //return AI_T;
            //case "AI_F":
            //AI_F = new AI_FSubRecord();
            //return AI_F;
            case "AI_E":
                AI_E = new AI_ESubRecord();
                return(AI_E);

            case "CNDT":
                CNDT = new CNDTSubRecord();
                return(CNDT);

            case "AI_A":
                AI_A = new AI_ASubRecord();
                return(AI_A);

            case "DODT":
                DODT = new DODTSubRecord();
                return(DODT);

            case "DNAM":
                DNAM = new DNAMSubRecord();
                return(DNAM);

            case "XSCL":
                XSCL = new XSCLSubRecord();
                return(XSCL);
            }

            return(null);
        }