Skip to content

Commit

Permalink
初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
LiShengYang-yiyi committed Aug 3, 2024
1 parent c709bb6 commit 7f7f090
Show file tree
Hide file tree
Showing 32 changed files with 831 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ET Package

on:
workflow_dispatch:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Binary file added ET.YIUISourceGenerator.dll
Binary file not shown.
79 changes: 79 additions & 0 deletions ET.YIUISourceGenerator.dll.meta

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

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# cn.etetet.yiuiinvoke
# YIUI Invoke

# [YIUI 文档](https://lib9kmxvq7k.feishu.cn/wiki/TpyYwbWIUizhfKkcubocTZgInse)

# YIUI框架讨论群

![二维码](https://github.com/LiShengYang-yiyi/YIUI/blob/main/Readme/YIUI框架讨论群二维码.png)
7 changes: 7 additions & 0 deletions README.md.meta

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

8 changes: 8 additions & 0 deletions Scripts.meta

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

8 changes: 8 additions & 0 deletions Scripts/Core.meta

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

3 changes: 3 additions & 0 deletions Scripts/Core/Attribute.meta

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

9 changes: 9 additions & 0 deletions Scripts/Core/Attribute/YIUIInvokeAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

namespace ET
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class YIUIInvokeAttribute : BaseAttribute
{
}
}
3 changes: 3 additions & 0 deletions Scripts/Core/Attribute/YIUIInvokeAttribute.cs.meta

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

12 changes: 12 additions & 0 deletions Scripts/Core/Attribute/YIUIInvokeSystemAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace ET
{
public class YIUIInvokeSystemAttribute : BaseAttribute
{
public string Type { get; }

public YIUIInvokeSystemAttribute(string type)
{
this.Type = type;
}
}
}
3 changes: 3 additions & 0 deletions Scripts/Core/Attribute/YIUIInvokeSystemAttribute.cs.meta

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

15 changes: 15 additions & 0 deletions Scripts/Core/Attribute/YIUIInvokeSystemOfAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*using System;
namespace ET
{
[AttributeUsage(AttributeTargets.Class)]
public class YIUIInvokeSystemOfAttribute : EnableClassAttribute
{
public Type type;
public YIUIInvokeSystemOfAttribute(Type type, bool ignoreAwake = false)
{
this.type = type;
}
}
}*/
3 changes: 3 additions & 0 deletions Scripts/Core/Attribute/YIUIInvokeSystemOfAttribute.cs.meta

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

3 changes: 3 additions & 0 deletions Scripts/Core/Handler.meta

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

154 changes: 154 additions & 0 deletions Scripts/Core/Handler/YIUIInvokeHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
using System;

namespace ET
{
public interface IYIUIInvokeHnadler : ISystemType
{
void Invoke(Entity self);
}

public interface IYIUIInvokeHnadler<in P1> : ISystemType
{
void Invoke(Entity self, P1 p1);
}

public interface IYIUIInvokeHnadler<in P1, in P2> : ISystemType
{
void Invoke(Entity self, P1 p1, P2 p2);
}

public interface IYIUIInvokeHnadler<in P1, in P2, in P3> : ISystemType
{
void Invoke(Entity self, P1 p1, P2 p2, P3 p3);
}

public interface IYIUIInvokeHnadler<in P1, in P2, in P3, in P4> : ISystemType
{
void Invoke(Entity self, P1 p1, P2 p2, P3 p3, P4 p4);
}

public interface IYIUIInvokeHnadler<in P1, in P2, in P3, in P4, in P5> : ISystemType
{
void Invoke(Entity self, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5);
}

public abstract class YIUIInvokeHandler<T> : SystemObject, IYIUIInvokeHnadler where T : Entity
{
Type ISystemType.Type()
{
return typeof(T);
}

Type ISystemType.SystemType()
{
return typeof(IYIUIInvokeHnadler);
}

public void Invoke(Entity self)
{
Invoke((T)self);
}

protected abstract void Invoke(T self);
}

public abstract class YIUIInvokeHandler<T, P1> : SystemObject, IYIUIInvokeHnadler<P1> where T : Entity
{
Type ISystemType.Type()
{
return typeof(T);
}

Type ISystemType.SystemType()
{
return typeof(IYIUIInvokeHnadler<P1>);
}

public void Invoke(Entity self, P1 p1)
{
Invoke((T)self, p1);
}

protected abstract void Invoke(T self, P1 p1);
}

public abstract class YIUIInvokeHandler<T, P1, P2> : SystemObject, IYIUIInvokeHnadler<P1, P2> where T : Entity
{
Type ISystemType.Type()
{
return typeof(T);
}

Type ISystemType.SystemType()
{
return typeof(IYIUIInvokeHnadler<P1, P2>);
}

public void Invoke(Entity self, P1 p1, P2 p2)
{
Invoke((T)self, p1, p2);
}

protected abstract void Invoke(T self, P1 p1, P2 p2);
}

public abstract class YIUIInvokeHandler<T, P1, P2, P3> : SystemObject, IYIUIInvokeHnadler<P1, P2, P3> where T : Entity
{
Type ISystemType.Type()
{
return typeof(T);
}

Type ISystemType.SystemType()
{
return typeof(IYIUIInvokeHnadler<P1, P2, P3>);
}

public void Invoke(Entity self, P1 p1, P2 p2, P3 p3)
{
Invoke((T)self, p1, p2, p3);
}

protected abstract void Invoke(T self, P1 p1, P2 p2, P3 p3);
}

public abstract class YIUIInvokeHandler<T, P1, P2, P3, P4> : SystemObject, IYIUIInvokeHnadler<P1, P2, P3, P4> where T : Entity
{
Type ISystemType.Type()
{
return typeof(T);
}

Type ISystemType.SystemType()
{
return typeof(IYIUIInvokeHnadler<P1, P2, P3, P4>);
}

public void Invoke(Entity self, P1 p1, P2 p2, P3 p3, P4 p4)
{
Invoke((T)self, p1, p2, p3, p4);
}

protected abstract void Invoke(T self, P1 p1, P2 p2, P3 p3, P4 p4);
}

public abstract class YIUIInvokeHandler<T, P1, P2, P3, P4, P5> : SystemObject, IYIUIInvokeHnadler<P1, P2, P3, P4, P5> where T : Entity
{
Type ISystemType.Type()
{
return typeof(T);
}

Type ISystemType.SystemType()
{
return typeof(IYIUIInvokeHnadler<P1, P2, P3, P4, P5>);
}

public void Invoke(Entity self, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5)
{
Invoke((T)self, p1, p2, p3, p4, p5);
}

protected abstract void Invoke(T self, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5);
}
}
3 changes: 3 additions & 0 deletions Scripts/Core/Handler/YIUIInvokeHandler.cs.meta

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

Loading

0 comments on commit 7f7f090

Please sign in to comment.