Exemplo n.º 1
0
        public static UpdateEvent NewActorAdditionEvent(ActorExt src, ActorExt target, byte session, ushort additionSession, uint additionID, ExtraUpdateModes mode)
        {
            UpdateEvent evt = new UpdateEvent()
            {
                Actor             = src,
                Target            = target,
                SkillSession      = session,
                AdditionID        = additionID,
                AdditionSession   = additionSession,
                ExtraActivateMode = mode,
                UpdateType        = UpdateTypes.Actor
            };

            return(evt);
        }
Exemplo n.º 2
0
        public static UpdateEvent NewActorAdditionExtEvent(ActorExt src, byte session, ushort additionSession, uint additionID, int restTime, ExtraUpdateModes mode)
        {
            UpdateEvent evt = new UpdateEvent()
            {
                Actor             = src,
                AdditionSession   = additionSession,
                AdditionID        = additionID,
                RestTime          = restTime,
                SkillSession      = session,
                ExtraActivateMode = mode,
                UpdateType        = UpdateTypes.ActorExtension
            };

            return(evt);
        }