1
This commit is contained in:
parent
53f4a3c44d
commit
81dfa342a6
@ -23,19 +23,7 @@ public class BattleMgr
|
|||||||
{
|
{
|
||||||
//CUILoading.OpenLoading();
|
//CUILoading.OpenLoading();
|
||||||
//CUILoading.SetLoading(0);
|
//CUILoading.SetLoading(0);
|
||||||
string path = Application.dataPath;
|
|
||||||
Mt.Table.Load();
|
Mt.Table.Load();
|
||||||
try
|
|
||||||
{
|
|
||||||
var test = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<string, string>>("{\"id\":123423.45454, \"Name\":\"Test\", \"age\":38.4344}");
|
|
||||||
int i = 2;
|
|
||||||
var t1 = new Test();
|
|
||||||
|
|
||||||
}catch(Exception e)
|
|
||||||
{
|
|
||||||
int i = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
GameObject fightRootObject = new GameObject("fight");
|
GameObject fightRootObject = new GameObject("fight");
|
||||||
{
|
{
|
||||||
fightRootObject.transform.parent = LuaHelper.GetGameManager().m_pGameMap.transform;
|
fightRootObject.transform.parent = LuaHelper.GetGameManager().m_pGameMap.transform;
|
||||||
|
22
Mt/Map.cs
Normal file
22
Mt/Map.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Mt
|
||||||
|
{
|
||||||
|
class Map : Mtb.Map
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
class MapTable : F6.IdMetaTable<Map>
|
||||||
|
{
|
||||||
|
|
||||||
|
public MapTable(string fileName, string primKey) : base(fileName, primKey)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -8,11 +8,14 @@ namespace Mt
|
|||||||
{
|
{
|
||||||
class Table
|
class Table
|
||||||
{
|
{
|
||||||
public static EquipTable Equip = new EquipTable(@"D:\opensource\pubgv4\branch\config_v4_dev3d_10_9\upload_files\equip@equip.json", "id");
|
public static string RES_PATH = @"D:\opensource\pubgv4\branch\config_v4_dev3d_10_9\upload_files\equip@equip.json";
|
||||||
|
public static EquipTable Equip = new EquipTable(RES_PATH + "equip@equip.json", "id");
|
||||||
|
public static MapTable Map = new MapTable(RES_PATH + "map@map.json", "map_id");
|
||||||
|
|
||||||
public static void Load()
|
public static void Load()
|
||||||
{
|
{
|
||||||
Equip.Load();
|
Equip.Load();
|
||||||
|
Map.Load();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
14
Mtb/Map.cs
Normal file
14
Mtb/Map.cs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Mtb
|
||||||
|
{
|
||||||
|
class Map : F6.BaseTable
|
||||||
|
{
|
||||||
|
public readonly int map_id;
|
||||||
|
public readonly string asset_name;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user