Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MovementEvent Action Queue #230

Merged
merged 8 commits into from
Apr 12, 2017

Conversation

LtRipley36706
Copy link
Member

Ideally this is merged after #226 if this acceptable for merging.

Copy link
Contributor

@Mogwai-TheFurry Mogwai-TheFurry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Methods need renaming. Hard to read as is and I'm on limited time.

@@ -663,6 +663,18 @@ public void ActionApplyVisualEffect(PlayScript effect, ObjectGuid objectId)
AddToActionQueue(action);
}

public void ActionMovementEvent(GeneralMotion motion, ObjectGuid objectId)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function names like this should usually have a verb. in this case, your verb is "Enqueue". Full method name: "EnqueueActionMovementEvent"


// public void MovementEvent(GeneralMotion motion, MotionStance stance, MotionItem item, MotionCommand command, WorldObject sender)
public void MovementEvent(GeneralMotion motion, WorldObject sender)
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SendSessionMovementEvent

public uint ObjectId { get; private set; }

public uint SecondaryObjectId { get; private set; }

public GameActionType ActionType { get; private set; }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concerned about the growth of this object. Just something to keep an eye on.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a lot of things we're gonna need queues for, I don't see how this doesn't keep growing :|

@Mogwai-TheFurry Mogwai-TheFurry merged commit 144e0b6 into ACEmulator:master Apr 12, 2017
@LtRipley36706 LtRipley36706 deleted the MovementEventQueue branch April 21, 2017 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants