コード例 #1
0
ファイル: ExportViewModel.cs プロジェクト: Khitiara/Nophica
        private Exportable GetExportableData()
        {
            Exportable ex = new Exportable();

            CharaMakeViewModel       cm = Parent.CharaMake;
            EquipmentSelectViewModel es = Parent.EquipmentSelect;

            ex.Race  = cm.SelectedRace;
            ex.Tribe = cm.SelectedTribe;
            ex.Sex   = cm.SelectedSex;

            ex.Mainhand = es.MainhandSelect.SelectedEquipment;
            ex.Head     = es.HeadSelect.SelectedEquipment;
            ex.Body     = es.BodySelect.SelectedEquipment;
            ex.Hands    = es.HandsSelect.SelectedEquipment;
            ex.Legs     = es.LegsSelect.SelectedEquipment;
            ex.Feet     = es.FeetSelect.SelectedEquipment;

            ex.Offhand   = es.OffhandSelect.SelectedEquipment;
            ex.Ears      = es.EarsSelect.SelectedEquipment;
            ex.Neck      = es.NeckSelect.SelectedEquipment;
            ex.Wrist     = es.WristSelect.SelectedEquipment;
            ex.RingLeft  = es.RingLSelect.SelectedEquipment;
            ex.RingRight = es.RingRSelect.SelectedEquipment;

            return(ex);
        }
コード例 #2
0
        void Initialize(ARealmReversed realm)
        {
            realm.Packs.GetPack(new SaintCoinach.IO.PackIdentifier("exd", SaintCoinach.IO.PackIdentifier.DefaultExpansion, 0)).KeepInMemory = true;
            PathFormatter.Init(realm);

            Realm           = realm;
            EquipmentSelect = new EquipmentSelectViewModel(this);
            Export          = new ExportViewModel(this);
            CharaMake       = new CharaMakeViewModel(this);
        }