fixed attribute naming
This commit is contained in:
parent
3945a492f7
commit
95744e9e33
|
|
@ -4,10 +4,10 @@ using mine2d.engine.system.annotations;
|
||||||
|
|
||||||
namespace mine2d.backend.interactor;
|
namespace mine2d.backend.interactor;
|
||||||
|
|
||||||
[InteractorAttribute]
|
[Interactor]
|
||||||
public class Breaking
|
public class Breaking
|
||||||
{
|
{
|
||||||
[InteractionAttribute(InteractorKind.Hybrid, "tick")]
|
[Interaction(InteractorKind.Hybrid, "tick")]
|
||||||
public static void TickHybrid()
|
public static void TickHybrid()
|
||||||
{
|
{
|
||||||
var ctx = Context.Get();
|
var ctx = Context.Get();
|
||||||
|
|
@ -35,7 +35,7 @@ public class Breaking
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
[InteractionAttribute(InteractorKind.Server, "break")]
|
[Interaction(InteractorKind.Server, "break")]
|
||||||
public static void BreakServer(BreakPacket packet)
|
public static void BreakServer(BreakPacket packet)
|
||||||
{
|
{
|
||||||
var ctx = Context.Get();
|
var ctx = Context.Get();
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@ using mine2d.state;
|
||||||
|
|
||||||
namespace mine2d.backend.interactor;
|
namespace mine2d.backend.interactor;
|
||||||
|
|
||||||
[InteractorAttribute]
|
[Interactor]
|
||||||
public class Connect
|
public class Connect
|
||||||
{
|
{
|
||||||
[InteractionAttribute(InteractorKind.Server, "connect")]
|
[Interaction(InteractorKind.Server, "connect")]
|
||||||
public static void ConnectServer(ConnectPacket packet)
|
public static void ConnectServer(ConnectPacket packet)
|
||||||
{
|
{
|
||||||
var ctx = Context.Get();
|
var ctx = Context.Get();
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@ using mine2d.engine.system.annotations;
|
||||||
|
|
||||||
namespace mine2d.backend.interactor;
|
namespace mine2d.backend.interactor;
|
||||||
|
|
||||||
[InteractorAttribute]
|
[Interactor]
|
||||||
public class Move
|
public class Move
|
||||||
{
|
{
|
||||||
[InteractionAttribute(InteractorKind.Hybrid, "move")]
|
[Interaction(InteractorKind.Hybrid, "move")]
|
||||||
public static void MoveHybrid(MovePacket packet)
|
public static void MoveHybrid(MovePacket packet)
|
||||||
{
|
{
|
||||||
var ctx = Context.Get();
|
var ctx = Context.Get();
|
||||||
|
|
@ -18,7 +18,7 @@ public class Move
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[InteractionAttribute(InteractorKind.Hybrid, "tick")]
|
[Interaction(InteractorKind.Hybrid, "tick")]
|
||||||
public static void TickHybrid()
|
public static void TickHybrid()
|
||||||
{
|
{
|
||||||
var ctx = Context.Get();
|
var ctx = Context.Get();
|
||||||
|
|
@ -26,7 +26,7 @@ public class Move
|
||||||
ctx.GameState.Players.ForEach(PlayerEntity.Collide);
|
ctx.GameState.Players.ForEach(PlayerEntity.Collide);
|
||||||
}
|
}
|
||||||
|
|
||||||
[InteractionAttribute(InteractorKind.Client, "tick")]
|
[Interaction(InteractorKind.Client, "tick")]
|
||||||
public static void SelfMovedClient()
|
public static void SelfMovedClient()
|
||||||
{
|
{
|
||||||
var camera = Context.Get().FrontendGameState.Camera;
|
var camera = Context.Get().FrontendGameState.Camera;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue