예제 #1
0
 public ValidationResult ValidateAttack(ClientGameState currentState, InteractionAttack attackInteraction)
 {
     //TODO: implement validation
     return(new ValidationResult()
     {
         IsOk = true
     });
 }
예제 #2
0
        public void ProcessAttack(ServerGameState fullState, InteractionAttack interactionAttack)
        {
            var newEvent = new EventCharacterAttacks()
            {
                Attacker = interactionAttack.Attacker, Attacked = interactionAttack.Target
            };

            eventProcessor.ProcessEvent(fullState, newEvent);
        }