Skip to content

Commit

Permalink
搭建TamLee框架
Browse files Browse the repository at this point in the history
添加框架主体与若干manager
  • Loading branch information
Vondear authored and Vondear committed May 29, 2019
1 parent 9597a3d commit c4e5227
Show file tree
Hide file tree
Showing 122 changed files with 3,524 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Assets/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions Assets/Editor/ScriptCreatInit.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//===================================================
//备 注:替换代码注释
//===================================================
using UnityEngine;
using System.Collections;
using System.IO;
using System;
using UnityEditor;

/// <summary>
///
/// </summary>
public class ScriptCreatInit : UnityEditor.AssetModificationProcessor
{
private static void OnWillCreateAsset(string path)
{
path = path.Replace(".meta","");
if (path.EndsWith(".cs"))
{
string strContent = File.ReadAllText(path);
strContent = strContent.Replace("#AuthorName#", "TamLee").Replace("#CreateTime#", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
File.WriteAllText(path, strContent);
AssetDatabase.Refresh();
}
}
}
11 changes: 11 additions & 0 deletions Assets/Editor/ScriptCreatInit.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/TamLeeTool/Components.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Assets/TamLeeTool/Components/DataComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TamLee
{
public class DataComponent : TamLeeBaseComponent
{
public override void Shutdown()
{
}

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
}
11 changes: 11 additions & 0 deletions Assets/TamLeeTool/Components/DataComponent.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions Assets/TamLeeTool/Components/DataTableComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TamLee
{
public class DataTableComponent : TamLeeBaseComponent
{

public override void Shutdown()
{
}

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
}
11 changes: 11 additions & 0 deletions Assets/TamLeeTool/Components/DataTableComponent.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Assets/TamLeeTool/Components/DownloadComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TamLee
{
public class DownloadComponent : TamLeeBaseComponent
{
public override void Shutdown()
{
}

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
}
11 changes: 11 additions & 0 deletions Assets/TamLeeTool/Components/DownloadComponent.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions Assets/TamLeeTool/Components/EventComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TamLee
{
public class EventComponent : TamLeeBaseComponent
{

private EventManager m_EventManager;
public SocketEvent SocketEvent;
public CommonEvent CommonEvent;

protected override void OnAwake()
{
base.OnAwake();
m_EventManager = new EventManager();
SocketEvent = m_EventManager.SocketEvent;
CommonEvent = m_EventManager.CommonEvent;
}

public override void Shutdown()
{
m_EventManager.Dispose();
m_EventManager = null;
}
}
}
11 changes: 11 additions & 0 deletions Assets/TamLeeTool/Components/EventComponent.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Assets/TamLeeTool/Components/FsmComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TamLee
{
public class FsmComponent : TamLeeBaseComponent
{
public override void Shutdown()
{
}

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
}
11 changes: 11 additions & 0 deletions Assets/TamLeeTool/Components/FsmComponent.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Assets/TamLeeTool/Components/GameObjComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TamLee
{
public class GameObjComponent : TamLeeBaseComponent
{
public override void Shutdown()
{
}

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
}
11 changes: 11 additions & 0 deletions Assets/TamLeeTool/Components/GameObjComponent.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Assets/TamLeeTool/Components/HttpComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TamLee
{
public class HttpComponent : TamLeeBaseComponent
{
public override void Shutdown()
{
}

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
}
11 changes: 11 additions & 0 deletions Assets/TamLeeTool/Components/HttpComponent.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Assets/TamLeeTool/Components/LocalizationComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TamLee
{
public class LocalizationComponent : TamLeeBaseComponent
{
public override void Shutdown()
{
}

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
}
11 changes: 11 additions & 0 deletions Assets/TamLeeTool/Components/LocalizationComponent.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Assets/TamLeeTool/Components/PoolComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace TamLee
{
public class PoolComponent : TamLeeBaseComponent
{
public override void Shutdown()
{
}

// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
}
Loading

0 comments on commit c4e5227

Please sign in to comment.