public void SendEntityMovement(int entityId, Vector2Int[] path) { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) MoveEntityCmd moveEntityCmd = new MoveEntityCmd { EntityId = entityId }; int num = path.Length; for (int i = 1; i < num; i++) { Vector2Int value = path[i]; moveEntityCmd.Path.Add(value.ToCellCoord()); } SendCommandAndLockUserInteraction(moveEntityCmd); }
public void SendEntityAttack(int attackerId, Vector2Int[] path, int defenderId) { //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) MoveEntityCmd moveEntityCmd = new MoveEntityCmd { EntityId = attackerId, EntityToAttackId = defenderId }; int num = path.Length; for (int i = 1; i < num; i++) { Vector2Int value = path[i]; moveEntityCmd.Path.Add(value.ToCellCoord()); } SendCommandAndLockUserInteraction(moveEntityCmd); }