コード例 #1
0
 /// <summary>
 /// 查询UI
 /// </summary>
 protected void UIForQuery()
 {
     GUILayout.BeginHorizontal();
     if (EditorUI.GUIButton("Id 查询生态", 150))
     {
         long[] ids = queryBiomeIds.SplitForArrayLong(',');
         listQueryData = serviceForBiomeInfo.QueryDataByIds(ids);
     }
     queryBiomeIds = EditorUI.GUIEditorText(queryBiomeIds, 150);
     GUILayout.Space(50);
     if (EditorUI.GUIButton("name 查询生态(中文)", 150))
     {
         listQueryData = serviceForBiomeInfo.QueryDataByName(LanguageEnum.cn, queryBiomeName);
     }
     queryBiomeName = EditorUI.GUIEditorText(queryBiomeName, 150);
     GUILayout.Space(50);
     if (EditorUI.GUIButton("查询所有生态", 150))
     {
         listQueryData = serviceForBiomeInfo.QueryAllData();
     }
     GUILayout.EndHorizontal();
 }
コード例 #2
0
    /// <summary>
    /// 获取所有数据
    /// </summary>
    /// <returns></returns>
    public List <BiomeInfoBean> GetAllBiomeInfoData()
    {
        List <BiomeInfoBean> listData = serviceBiomeInfo.QueryAllData();

        return(listData);
    }