Adds BufferReader and BufferWriter. Updates UOP handling. (#101)

This commit is contained in:
Kamron Batman 2020-04-12 21:33:24 -07:00 • committed by GitHub
parent 2c0d97cd36
commit 038c3be258
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
98 changed files with 2458 additions and 2185 deletions

View file

@ -1,31 +1,23 @@
namespace Server.Misc
{
public class Animations
public static class Animations
{
public static void Initialize()
{
EventSink.AnimateRequest += EventSink_AnimateRequest;
}
private static void EventSink_AnimateRequest(AnimateRequestEventArgs e)
private static void EventSink_AnimateRequest(Mobile from, string actionName)
{
Mobile from = e.Mobile;
int action;
switch (e.Action)
int action = actionName switch
{
case "bow":
action = 32;
break;
case "salute":
action = 33;
break;
default: return;
}
"bow" => 32,
"salute" => 33,
_ => 0,
};
if (from.Alive && !from.Mounted && from.Body.IsHuman)
if (action > 0 && from.Alive && !from.Mounted && from.Body.IsHuman)
from.Animate(action, 5, 1, true, false, 0);
}
}
}
}