public Skin() { csps = new ArrayList(); models = new ArrayList(); Library = new LibraryHandler(Application.StartupPath + "/mmsl_config/Library.xml"); Properties = new PropertyHandler(Application.StartupPath + "/mmsl_config/Config.xml"); }
// basic Constructor public Skin(String fullname, int slot, String libraryname, String origin, LibraryHandler global_library, PropertyHandler global_properties, Logger global_log) { //Gathering parameters into class variables this.fullname = fullname; this.slot = slot; this.modelslot = slot - 1; this.libraryname = libraryname; this.origin = origin; logger = global_log; //Creating lists csps = new ArrayList(); models = new ArrayList(); //Instanciating handlers to get info Library = global_library; Properties = global_properties; check_skin(); //Getting the info I talked about earlier this.dlc = Library.get_dlc_status(this.fullname); this.modelfolder = Library.get_modelfolder_fullname(this.fullname); this.cspfolder = Library.get_cspfolder_fullname(this.fullname); this.datafolder = Properties.property_get("datafolder"); //Now setting folders, easy ones this.modelpath = Application.StartupPath + "/mmsl_workspace/data/fighter/" + modelfolder + "/model/"; this.csppath = Application.StartupPath + "/mmsl_workspace/data/ui/replace/chr/"; if (dlc) { this.dlc_csppath = Application.StartupPath + "/mmsl_workspace/" + datafolder + "/ui/replace/append/chr/"; if (Properties.property_get("unlocalised") == "1") { this.dlc_csppath = Application.StartupPath + "/mmsl_workspace/data/ui/replace/append/chr/"; } } //Config meta this.metapath = Application.StartupPath + "/mmsl_config/meta/" + this.modelfolder + "/slot_" + slot + "/"; loadMeta(); load_models(); load_csp(); //setting slot texts this.modelslotstring = (this.modelslot < 10 ? "0" + this.modelslot.ToString() : this.modelslot.ToString()); this.slotstring = (this.slot < 10 ? "0" + this.slot.ToString() : this.slot.ToString()); temped = false; }
//Character Constructor public Character(String full_name, LibraryHandler global_lib, PropertyHandler global_properties, UICharDBHandler global_ui_char, Logger global_log) { //Setting variables this.fullname = full_name; //Instanciating handlers to get info Library = global_lib; properties = global_properties; ui = global_ui_char; log = global_log; //Getting skins skins = new ArrayList(); getSkins(); }