Beispiel #1
0
        public void CreatureActionChanged(string guid, CreatureAction newAction)
        {
            SerializableCreatureAction creatureAction = null;

            /*
             * Example for next implementation:
             *
             * if (newAction.GetType() == typeof(SwimToPoint))
             * {
             *  creatureAction = new SwimToPointAction(((SwimToPoint)newAction).Target);
             * }*/

            if (creatureAction != null)
            {
                CreatureActionChanged actionChanged = new CreatureActionChanged(guid, creatureAction);
                packetSender.Send(actionChanged);
            }
        }
Beispiel #2
0
 public CreatureActionChanged(NitroxId id, SerializableCreatureAction newAction)
 {
     Id        = id;
     NewAction = newAction;
 }
 public CreatureActionChanged(string guid, SerializableCreatureAction newAction)
 {
     Guid      = guid;
     NewAction = newAction;
 }