Esempio n. 1
0
 public ModDataSetVM(string Name, ModDataSet DataSet) : base(Name, true)
 {
     // Add new format
     m_SupportedFormats.Add(typeof(IModData), (s, e) => {
         e.Childs.Add(new ModDataVM("[" + e.Childs.Count + "]",
                                    JMXAbstract.GetTypes(
                                        typeof(ModDataMtrl),
                                        typeof(ModDataTexAni),
                                        typeof(ModDataMultiTex),
                                        typeof(ModDataMultiTexRev),
                                        typeof(ModDataParticle),
                                        typeof(ModDataEnvMap),
                                        typeof(ModDataBumpEnv),
                                        typeof(ModDataSound),
                                        typeof(ModDataDyVertex),
                                        typeof(ModDataDyJoint),
                                        typeof(ModDataDyLattice),
                                        typeof(ModDataProgEquipPow)),
                                    e.Obj?.GetType(), e.Obj));
     });
     // Create nodes
     Childs.Add(new JMXAttribute("Type", DataSet.Type));
     Childs.Add(new JMXOption("AnimationType", DataSet.AnimationType, JMXOption.GetValues <object>(typeof(PrimAnimationType))));
     Childs.Add(new JMXAttribute("Name", DataSet.Name));
     AddChildArray("ModsData", DataSet.ModData.ToArray(), true, true);
 }
Esempio n. 2
0
 public ObjectGeneralInfoVM(string Name, ObjectGeneralInfo ObjectInfo) : base(Name, true)
 {
     // create nodes
     Childs.Add(new JMXOption("Type", ObjectInfo.Type, JMXOption.GetValues <object>(typeof(ObjectGeneralType))));
     Childs.Add(new JMXOption("Category", ObjectInfo.Category, JMXOption.GetValues <object>(typeof(ObjectGeneralCategory))));
     Childs.Add(new JMXAttribute("Name", ObjectInfo.Name));
     Childs.Add(new JMXAttribute("Int01", ObjectInfo.Int01));
     Childs.Add(new JMXAttribute("Int02", ObjectInfo.Int02));
 }
 public Slot(string Name, ResAttachable.Slot Slot) : base(Name, true)
 {
     Childs.Add(new JMXOption("Type", Slot.Type, JMXOption.GetValues <object>(typeof(ResAttachable.SlotType))));
     Childs.Add(new JMXAttribute("MeshSetIndex", Slot.MeshSetIndex));
 }