private void targetItem_OnUserWalksOffFurni(object sender, UserWalksOnArgs e) { if (requiredCycles > 0) { UserWalksFurniValue obj = new UserWalksFurniValue(e.user, (RoomItem)sender); lock (requestQueue.SyncRoot) { requestQueue.Enqueue(obj); } handler.RequestCycle(this); } else { handler.RequestStackHandle(item.Coordinate, (RoomItem)sender, e.user, Games.Team.none); handler.OnEvent(item.Id); } }
private void targetItem_OnUserWalksOnFurni(object sender, UserWalksOnArgs e) { RoomItem onItem = (RoomItem)sender; if (onItem.GetBaseItem().IsSeat) { if (onItem.TotalHeight - onItem.GetBaseItem().Height != e.user.Z) { return; } } else { if (onItem.TotalHeight != e.user.Z) { return; } } handler.RequestStackHandle(item, (RoomItem)sender, e.user, e.user.team); //InteractorGenericSwitch.DoAnimation(item); }
private void targetItem_OnUserWalksOffFurni(object sender, UserWalksOnArgs e) { handler.RequestStackHandle(item, (RoomItem)sender, e.user, e.user.team); InteractorGenericSwitch.DoAnimation(item); }
private void targetItem_OnUserWalksOffFurni(object sender, UserWalksOnArgs e) { if (requiredCycles > 0) { UserWalksFurniValue obj = new UserWalksFurniValue(e.user, (RoomItem)sender); lock (requestQueue.SyncRoot) { requestQueue.Enqueue(obj); } handler.RequestCycle(this); } else { GenericTriggerWithModes.DoAnimation(this.item); handler.RequestStackHandle(item.GetX, item.GetY, (RoomItem)sender, e.user, Games.Team.none, item.Room); handler.OnEvent(item.Id); } }
private void targetItem_OnUserWalksOffFurni(object sender, UserWalksOnArgs e) { if (requiredCycles > 0) { UserWalksFurniValue obj = new UserWalksFurniValue(e.user, (RoomItem)sender); lock (requestQueue.SyncRoot) { requestQueue.Enqueue(obj); } handler.RequestCycle(this); } else { handler.RequestStackHandle(item.Coordinate, (RoomItem)sender, e.user, Games.Team.none); handler.OnEvent(item.Id); } }