-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
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}} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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框架讨论群 | ||
|
||
 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 | ||
{ | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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; | ||
} | ||
} | ||
}*/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.