示例#1
0
 public RestaurantAdminController()
 {
     _restaurantFacade = new RestaurantFacade();
     _companyFacade    = new CompanyFacade();
     _menuFacade       = new MenuFacade();
     _tableFacade      = new TableFacade();
     _imageFacade      = new ImageFacade();
 }
示例#2
0
 static void Main(string[] args)
 {
     TableFacade.ItemTable.Parse(Encoding.UTF8.GetBytes(File.ReadAllText("json/ItemTable.json")));
     TableFacade.EquipTable.Parse(Encoding.UTF8.GetBytes(File.ReadAllText("json/EquipTable.json")));
     TableFacade.EquipTable.Relate();
     TableFacade.GeneralSettings = (GeneralSettingsStruct)TableFacade.Parse(typeof(GeneralSettingsStruct), Encoding.UTF8.GetBytes(File.ReadAllText("json/GeneralSettings.json")));
     Console.WriteLine(TableFacade.EquipTable[1001].ID2Item.Name);
     Console.WriteLine(TableFacade.GeneralSettings.WorldName);
 }