-
Notifications
You must be signed in to change notification settings - Fork 241
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
MovementEvent Action Queue #230
Conversation
There was a problem hiding this 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.
Source/ACE/Entity/Player.cs
Outdated
@@ -663,6 +663,18 @@ public void ActionApplyVisualEffect(PlayScript effect, ObjectGuid objectId) | |||
AddToActionQueue(action); | |||
} | |||
|
|||
public void ActionMovementEvent(GeneralMotion motion, ObjectGuid objectId) |
There was a problem hiding this comment.
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"
Source/ACE/Entity/Player.cs
Outdated
|
||
// public void MovementEvent(GeneralMotion motion, MotionStance stance, MotionItem item, MotionCommand command, WorldObject sender) | ||
public void MovementEvent(GeneralMotion motion, WorldObject sender) | ||
{ |
There was a problem hiding this comment.
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; } | ||
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 :|
Ideally this is merged after #226 if this acceptable for merging.