This commit is contained in:
2020-07-04 14:41:25 +08:00
parent 70c346d2c1
commit a8f02e4da5
3748 changed files with 587372 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 037b2eec1de5e431abde87e07c3dfcf9
folderAsset: yes
timeCreated: 1484616170
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 05152f08969ca4314a48f890ae993c63
timeCreated: 1484289958
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,61 @@
-- xx界面
do
ReadMe.md = {}
local csSelf = nil;
local transform = nil;
-- 初始化,只会调用一次
function ReadMe.md.init(csObj)
csSelf = csObj;
transform = csObj.transform;
--[[
上的组件getChild(transform, "offset", "Progress BarHong"):GetComponent("UISlider");
--]]
end
-- 设置数据
function ReadMe.md.setData(paras)
end
-- 显示在c#中。show为调用refreshshow和refresh的区别在于当页面已经显示了的情况当页面再次出现在最上层时只会调用refresh
function ReadMe.md.show()
end
-- 刷新
function ReadMe.md.refresh()
end
-- 关闭页面
function ReadMe.md.hide()
end
-- 网络请求的回调cmd指命succ成功失败msg消息paras服务器下行数据
function ReadMe.md.procNetwork (cmd, succ, msg, paras)
--[[
if(succ == 0) then
if(cmd == "xxx") then
-- TODO:
end
end
--]]
end
-- 处理ui上的事件例如点击等
function ReadMe.md.uiEventDelegate( go )
local goName = go.name;
--[[
if(goName == "xxx") then
--TODO:
end
--]]
end
-- 当按了返回键时关闭自己返值为true时关闭
function ReadMe.md.hideSelfOnKeyBack( )
return true;
end
--------------------------------------------
return ReadMe.md;
end

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0b5b586e32ea946c7b2906a9f235891e
timeCreated: 1484289944
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,9 @@
@ECHO OFF
set listFile=list.tmp
del "%listFile%" /q 1>nul 2>nul
dir *.cs /a /b >> "%listFile%"
FOR /f "tokens=*" %%a IN ('more "%listFile%"') DO (ANSI2UTF8.vbs "%%a")
del "%listFile%" /q 1>nul 2>nul
set curPath = %cd%
move /y *.cs %curPath%
PAUSE

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6ec4eee53bc9b453595d114cc94e5cf3
timeCreated: 1484289962
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: ffbe7333b70144d6ca5a8938002e1ba2
folderAsset: yes
timeCreated: 1484616168
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,33 @@
-- xx单元
local _cell = {}
---@type Coolape.CLCellLua
local csSelf = nil
local transform = nil
local mData = nil
local uiobjs = {}
-- 初始化,只调用一次
function _cell.init(csObj)
csSelf = csObj
transform = csSelf.transform
--[[
上的组件getChild(transform, "offset", "Progress BarHong"):GetComponent("UISlider");
--]]
end
-- 显示,
-- 注意c#侧不会在调用show时调用refresh
function _cell.show(go, data)
mData = data
--[[
TODO:
--]]
end
-- 取得数据
function _cell.getData()
return mData
end
--------------------------------------------
return _cell

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5929db882a664488e82c677c59fee720
timeCreated: 1449642212
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,73 @@
-- xx界面
do
local #SCRIPTNAME# = {}
---@type Coolape.CLPanelLua
local csSelf = nil
---@type UnityEngine.Transform
local transform = nil
local uiobjs = {}
-- 初始化,只会调用一次
function #SCRIPTNAME#.init(csObj)
csSelf = csObj;
transform = csObj.transform;
--[[
上的组件getChild(transform, "offset", "Progress BarHong"):GetComponent("UISlider");
--]]
end
-- 设置数据
function #SCRIPTNAME#.setData(paras)
end
--当有通用背板显示时的回调
function #SCRIPTNAME#.onShowFrame( )
end
-- 显示在c#中。show为调用refreshshow和refresh的区别在于当页面已经显示了的情况当页面再次出现在最上层时只会调用refresh
function #SCRIPTNAME#.show()
end
-- 刷新
function #SCRIPTNAME#.refresh()
end
-- 关闭页面
function #SCRIPTNAME#.hide()
end
-- 网络请求的回调cmd指命succ成功失败msg消息paras服务器下行数据
function #SCRIPTNAME#.procNetwork (cmd, succ, msg, paras)
--[[
if(succ == NetSuccess) then
if(cmd == "xxx") then
-- TODO:
end
end
--]]
end
-- 处理ui上的事件例如点击等
function #SCRIPTNAME#.uiEventDelegate( go )
local goName = go.name;
--[[
if(goName == "xxx") then
--TODO:
end
--]]
end
-- 当顶层页面发生变化时回调
function #SCRIPTNAME#.onTopPanelChange( topPanel )
end
-- 当按了返回键时关闭自己返值为true时关闭
function #SCRIPTNAME#.hideSelfOnKeyBack( )
return true;
end
--------------------------------------------
return #SCRIPTNAME#;
end

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 64a05c33e4afa48eb944b4a8b1faa45d
timeCreated: 1449641174
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 3eae4be05fdb54d7890e4265db7966f5
folderAsset: yes
timeCreated: 1484616171
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,10 @@
using UnityEngine;
using System.Collections;
using Coolape;
public class #SCRIPTNAME# : CLCfgBase
{
public static int mode = 0;
public string default_UID = "";
//TODO:
}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 45816809994dd46e6ab7c18a92dbca94
timeCreated: 1484536330
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,16 @@
using UnityEngine;
using System.Collections;
using Coolape;
public class #SCRIPTNAME# : CLMainBase
{
public override void init ()
{
base.init ();
}
public override void doOffline ()
{
base.doOffline ();
}
}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5b75b7eaf2c0e40ac9fc208549d28eca
timeCreated: 1484536167
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,338 @@
//配置的详细介绍请看Doc下《XLua的配置.doc》
using System;
using UnityEngine;
using XLua;
using Coolape;
using System.Collections;
using System.IO;
using System.Collections.Generic;
public static class XluaGenCodeConfig
{
//lua中要使用到C#库的配置比如C#标准库或者Unity API第三方库等。
[LuaCallCSharp]
public static System.Collections.Generic.List<Type> LuaCallCSharp = new System.Collections.Generic.List<Type>() {
typeof(System.Object),
typeof(UnityEngine.Object),
typeof(Vector2),
typeof(Vector3),
typeof(Vector4),
typeof(Rect),
typeof(Quaternion),
typeof(Color),
typeof(Ray),
typeof(Ray2D),
typeof(Bounds),
typeof(Time),
typeof(GameObject),
typeof(Component),
typeof(Behaviour),
typeof(Transform),
typeof(Resources),
typeof(TextAsset),
typeof(Keyframe),
typeof(AnimationCurve),
typeof(AnimationClip),
typeof(MonoBehaviour),
typeof(ParticleSystem),
typeof(SkinnedMeshRenderer),
typeof(Renderer),
typeof(WWW),
typeof(System.Collections.Generic.List<int>),
typeof(Action<string>),
typeof(UnityEngine.Debug),
typeof(Hashtable),
typeof(ArrayList),
typeof(Queue),
typeof(Stack),
typeof(GC),
typeof(File),
typeof(Directory),
typeof(Application),
typeof(SystemInfo),
typeof(RaycastHit),
typeof(System.IO.Path),
typeof(System.IO.MemoryStream),
typeof(Screen),
typeof(PlayerPrefs),
typeof(Shader),
//NGUI
typeof(UICamera),
typeof(Localization),
typeof(NGUITools),
typeof(UIRect),
typeof(UIWidget),
typeof(UIWidgetContainer),
typeof(UILabel),
typeof(UIToggle),
typeof(UIBasicSprite),
typeof(UITexture),
typeof(UISprite),
typeof(UIProgressBar),
typeof(UISlider),
typeof(UIGrid),
typeof(UITable),
typeof(UIInput),
typeof(UIScrollView),
typeof(UITweener),
typeof(TweenWidth),
typeof(TweenRotation),
typeof(TweenPosition),
typeof(TweenScale),
typeof(TweenAlpha),
typeof(UICenterOnChild),
typeof(UIAtlas),
typeof(UILocalize),
typeof(UIPlayTween),
typeof(UIRect.AnchorPoint),
//Coolape
typeof(CLAssetsManager),
typeof(CLAssetsPoolBase<UnityEngine.Object>),
typeof(B2InputStream),
typeof(B2OutputStream),
typeof(CLBulletBase),
typeof(CLBulletPool),
typeof(CLEffect),
typeof(CLEffectPool),
typeof(CLMaterialPool),
typeof(CLRolePool),
typeof(CLSoundPool),
typeof(CLSharedAssets),
typeof(CLSharedAssets.CLMaterialInfor),
typeof(CLTexturePool),
typeof(CLThingsPool),
typeof(CLBaseLua),
typeof(CLBehaviour4Lua),
typeof(CLUtlLua),
typeof(CLMainBase),
typeof(Net),
typeof(Net.NetWorkType),
typeof(CLCfgBase),
typeof(CLPathCfg),
typeof(CLVerManager),
typeof(CLAssetType),
typeof(CLRoleAction),
typeof(CLRoleAvata),
typeof(CLUnit),
typeof(ColorEx),
typeof(BlockWordsTrie),
typeof(DateEx),
typeof(FileEx),
typeof(HttpEx),
typeof(JSON),
typeof(ListEx),
typeof(MapEx),
typeof(MyMainCamera),
typeof(MyTween),
typeof(NewList),
typeof(NewMap),
typeof(SoundEx),
typeof(NumEx),
typeof(ObjPool),
typeof(PStr),
typeof(SScreenShakes),
typeof(StrEx),
typeof(Utl),
typeof(WWWEx),
typeof(ZipEx),
typeof(XXTEA),
typeof(CLButtonMsgLua),
typeof(CLJoystick),
typeof(CLUIDrag4World),
typeof(CLUILoopGrid),
typeof(CLUILoopTable),
// typeof(CLUILoopGrid2),
typeof(CLUIPlaySound),
typeof(TweenSpriteFill),
typeof(UIDragPage4Lua),
typeof(UIDragPageContents),
typeof(UIGridPage),
typeof(UIMoveToCell),
typeof(UISlicedSprite),
typeof(CLAlert),
typeof(CLCellBase),
typeof(CLCellLua),
typeof(CLPanelBase),
typeof(CLPanelLua),
typeof(CLPanelManager),
typeof(CLPanelMask4Panel),
typeof(CLPBackplate),
typeof(CLUIInit),
typeof(CLUIOtherObjPool),
typeof(CLUIRenderQueue),
typeof(CLUIUtl),
typeof(EffectNum),
typeof(TweenProgress),
typeof(B2Int),
typeof(AngleEx),
typeof(CLGridPoints),
//==========================
typeof(MyMain),
typeof(MyCfg),
};
//C#静态调用Lua的配置包括事件的原型仅可以配delegateinterface
[CSharpCallLua]
public static System.Collections.Generic.List<Type> CSharpCallLua = new System.Collections.Generic.List<Type>() {
typeof(Action),
typeof(Func<double, double, double>),
typeof(Action<string>),
typeof(Action<double>),
typeof(UnityEngine.Events.UnityAction),
typeof(Coolape.Callback),
};
//黑名单
[BlackList]
public static List<List<string>> BlackList = new List<List<string>>() {
new List<string>(){ "UnityEngine.WWW", "movie" },
new List<string>(){ "UnityEngine.Texture2D", "alphaIsTransparency" },
new List<string>(){ "UnityEngine.Security", "GetChainOfTrustValue" },
new List<string>(){ "UnityEngine.CanvasRenderer", "onRequestRebuild" },
new List<string>(){ "UnityEngine.Light", "areaSize" },
new List<string>(){ "UnityEngine.AnimatorOverrideController", "PerformOverrideClipListCleanup" },
#if !UNITY_WEBPLAYER
new List<string>(){ "UnityEngine.Application", "ExternalEval" },
#endif
new List<string>(){ "UnityEngine.GameObject", "networkView" }, //4.6.2 not support
new List<string>(){ "UnityEngine.Component", "networkView" }, //4.6.2 not support
new List<string>() {
"System.IO.FileInfo",
"GetAccessControl",
"System.Security.AccessControl.AccessControlSections"
},
new List<string>() {
"System.IO.FileInfo",
"SetAccessControl",
"System.Security.AccessControl.FileSecurity"
},
new List<string>() {
"System.IO.DirectoryInfo",
"GetAccessControl",
"System.Security.AccessControl.AccessControlSections"
},
new List<string>() {
"System.IO.DirectoryInfo",
"SetAccessControl",
"System.Security.AccessControl.DirectorySecurity"
},
new List<string>() {
"System.IO.DirectoryInfo",
"CreateSubdirectory",
"System.String",
"System.Security.AccessControl.DirectorySecurity"
},
new List<string>() {
"System.IO.DirectoryInfo",
"Create",
"System.Security.AccessControl.DirectorySecurity"
},
new List<string>() {
"System.IO.Directory",
"CreateDirectory",
"System.String",
"System.Security.AccessControl.DirectorySecurity"
},
new List<string>() {
"System.IO.Directory",
"SetAccessControl",
"System.String",
"System.Security.AccessControl.DirectorySecurity"
},
new List<string>() {
"System.IO.Directory",
"GetAccessControl",
"System.String"
},
new List<string>() {
"System.IO.Directory",
"GetAccessControl",
"System.String",
"System.Security.AccessControl.AccessControlSections"
},
new List<string>() {
"System.IO.File",
"Create",
"System.String",
"System.Int32",
"System.IO.FileOptions"
},
new List<string>() {
"System.IO.File",
"Create",
"System.String",
"System.Int32",
"System.IO.FileOptions",
"System.Security.AccessControl.FileSecurity"
},
new List<string>() {
"System.IO.File",
"GetAccessControl",
"System.String",
},
new List<string>() {
"System.IO.File",
"GetAccessControl",
"System.String",
"System.Security.AccessControl.AccessControlSections",
},
new List<string>() {
"System.IO.File",
"SetAccessControl",
"System.String",
"System.Security.AccessControl.FileSecurity",
},
new List<string>() {
"Coolape.CLUnit",
"OnDrawGizmos",
},
#if UNITY_ANDROID || UNITY_IOS
new List<string>() {
"UIInput",
"ProcessEvent",
"UnityEngine.Event",
},
#endif
new List<string>() {
"UIWidget",
"showHandlesWithMoveTool",
},
new List<string>() {
"UIWidget",
"showHandles",
},
new List<string>() {
"Coolape.PStr",
"a",
"System.Byte",
},
new List<string>() {
"Coolape.PStr",
"a",
"System.Byte[]",
},
new List<string>() {
"UnityEngine.MonoBehaviour",
"runInEditMode",
},
new List<string>() {
"Coolape.CLAssetsManager",
"debugKey",
},
new List<string>() {
"MyCfg",
"default_UID",
},
};
}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2c06c9eabbbca455ea9c2abcb66bcc73
timeCreated: 1484381331
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 12100b554930a4bc4a51b76eaaf14eaf
folderAsset: yes
timeCreated: 1484616168
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1 @@
{"0000":true}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5ebb5dc6d2b3244e8baf2254ef23db11
timeCreated: 1486630864
licenseType: Pro
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,4 @@
{
"upgraderVer":0,
"channelVer":"",
}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: dcd22637974034e36b9ec48fcdbacda6
timeCreated: 1484486006
licenseType: Pro
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 160867476f4fe472c95d373c668735e6
timeCreated: 1484207121
licenseType: Pro
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9fb25258f1c854f54b98b5b11d0b563c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: bab3d11a79c6848e98d8bc5f37ef9ba4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a22e6ce457db245eb9af242bf0688cb8
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: